把要紧用的内容加上一个class="notEdit-page" z注意要在style里面写不能加上scoped
/*//checkBox自定义禁用样式*//*//checkBox自定义禁用样式*/ .notEdit-page .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after { border-color: #fff; } .notEdit-page .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { background-color: #409eff; border-color: #409eff; } .notEdit-page .el-checkbox__input.is-disabled + span.el-checkbox__label { color: #606266; } .notEdit-page .el-checkbox__input.is-disabled .el-checkbox__inner { background-color: #fff; } .notEdit-page .el-checkbox__input.is-checked + .el-checkbox__label{ color:#409eff !important; } /*radio禁用样式*/ .notEdit-page .el-radio__input.is-disabled.is-checked .el-radio__inner::after { background-color: #fff; } .notEdit-page .el-radio__input.is-disabled.is-checked .el-radio__inner { border-color: #409eff; background: #409eff; } .notEdit-page .el-radio__input.is-disabled .el-radio__inner { background-color: #fff; } .notEdit-page .el-radio__input.is-disabled+span.el-radio__label{ color:#606266; } .notEdit-page .el-radio__input.is-checked+.el-radio__label{ color:#409eff !important; }
element-ui radio和checkbox禁用时不置灰还是原来不禁用时的样式
于 2024-12-05 11:32:34 首次发布