修改el-input、textarea、el-checkbox的禁用状态下的颜色

注意要加到全局文件样式里面

//checkBox自定义禁用样式
.el-checkbox__input.is-disabled + .el-checkbox__label {
  color: #808080 !important;
}

.el-checkbox__input.is-disabled.is-checked + .el-checkbox__label {
  color: #1890ff !important;
}

.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
  background-color: #1890ff !important;
  border-color: #1890ff !important;
}

//输入框 还有 textarea 禁用状态下颜色改变
.el-input.is-disabled .el-input__inner,textarea:disabled{
  color: #606266 !important;
}

你可能感兴趣的:(vue.js,前端,elementui)