antdVue 重置select和input的样式 去掉蓝色换成灰色
2024-09-18 18:27:55
代码实现:
<template>
<div>
<a-select mode="tags" style="width: 200px" placeholder="请选择" @change="handleChange">
<a-select-option v-for="i in 25" :key="(i + 9).toString(36) + i">
{{ (i + 9).toString(36) + i }}
</a-select-option>
</a-select>
<a-input placeholder="请输入" style="width: 200px"/>
</div>
</template>
<script>
export default {
name: 'test',
methods:{
handleChange(value) {
console.log(`selected ${value}`);
},
}
}
</script>
<style>
/* 重置selectl开始 */
.ant-select-dropdown-menu-item-active,
.ant-select-dropdown-menu-item:hover {
background-color: #edf2f5;
}
.ant-select-focused .ant-select-selection,
.ant-select-selection:focus,
.ant-select-selection:active {
border-color: #cccccc;
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0);
} .ant-select-selection:hover {
border-color: #cccccc;
}
/* 重置selectl结束 */
/* 重置input开始 */
.ant-input,.ant-input:focus,
.ant-input:hover,
.ant-input:active,
.ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled)
{
border-color: #cccccc;
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0);
}
/* 重置input结束 */
</style>
最新文章
- 项目 CTR预估
- MD5 、 加密工具
- 夺命雷公狗-----React---24--小案例之react经典案例todos(单条任务的删除)
- 将 PAGE_VERIFY 数据库选项设置为 CHECKSUM
- js闭包问题
- direction:rtl demo
- iOS 之 手势
- 2017noip普及组赛前注意事项总结
- JAVA WEB快速入门之通过一个简单的Spring项目了解Spring的核心(AOP、IOC)
- linux中一些简便的命令之sort
- 解决问题:怎样在页面获取数组和List集合的长度
- windows 10安装docker一直挂起在Installing Components and Removing Files
- dis集群研究和实践(基于redis 3.0.5) 《转载》
- node.js生成二维码
- <;转>;安全测试思维导图
- Linux Shell 基本语法
- MySQL设置默认编码
- SpringCloud-容错处理Hystrix熔断器(五)
- java面试第十二天
- python标准库介绍——8 operator 模块详解