perf: 整理 role permisson

This commit is contained in:
ibuler
2024-05-17 16:30:19 +08:00
parent ce2a62d198
commit f6cb3fb118
16 changed files with 53 additions and 49 deletions

View File

@@ -17,23 +17,24 @@ export function changeElementColor(themeColors) {
`
if (['primary', 'success', 'info', 'warning', 'danger'].includes(key)) {
const blendColor = mix('ffffff', value.replace(/#/g, ''), 35)
const darken = mix('000000', value.replace(/#/g, ''), 10)
colorsCssText = colorsCssText + `
.el-button--${key}:focus {
background-color: ${value}!important;
border-color: ${value}!important;
background-color: ${darken}!important;
}
.el-button--${key}.is-disabled,
.el-button--${key}.is-disabled:active,
.el-button--${key}.is-disabled:focus,
.el-button--${key}:hover{
.el-button--${key}.is-disabled:focus {
background-color: ${blendColor}!important;
border-color: ${blendColor}!important;
}
.el-button--${key}:hover{
background-color: ${darken}!important;
}
.el-link.el-link--${key}{
color: ${value}!important;
}
.el-link.el-link--${key}:hover {
color: ${blendColor}!important;
color: ${darken}!important;
}
.el-link.el-link--${key}.is-underline:hover:after,
.el-link.el-link--${key}:after {