在src目录下 新建一个common.less文件,在main.js里面引入 这个文件

common.less 覆盖原先的样式

/*覆盖ant-design-vue 样式**/
.ant-input[disabled] {
  color: rgba(0, 0, 0, 0.6);
  background-color: #f9f9f9;
}

.ant-select-disabled {
  color: rgba(0, 0, 0, 0.6);
}
.ant-select-disabled .ant-select-selection {
  background: #f9f9f9;
  cursor: not-allowed;
}

改前和改后的对比图:

  

改后:

 

 

Logo

前往低代码交流专区

更多推荐