把要紧用的内容加上一个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禁用时不置灰还是原来不禁用时的样式
2025/11/27 9:16:36
来源:https://blog.csdn.net/qq_33769914/article/details/144260621
浏览:
次
关键词:element-ui radio和checkbox禁用时不置灰还是原来不禁用时的样式
版权声明:
本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。
我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com
