perf: 优化数字输入框样式

This commit is contained in:
fit2cloud-chenyw 2021-10-08 18:31:19 +08:00
parent 64dba996fe
commit 9341d63914
2 changed files with 25 additions and 1 deletions

View File

@ -257,6 +257,14 @@ export default {
value: val
})
}
if (this.uiInfo['ui.themeStr'] && this.uiInfo['ui.themeStr'].paramValue) {
if (this.uiInfo['ui.themeStr'].paramValue === 'dark') {
document.body.className = 'blackTheme'
} else if (this.uiInfo['ui.themeStr'].paramValue === 'light') {
document.body.className = ''
}
}
this.axiosFinished = true
})
},

View File

@ -386,15 +386,31 @@ div:focus {
}
}
.blackTheme .el-textarea__inner {
background-color: var(--MainBG) !important;
}
.blackTheme .el-textarea__inner:not(:focus) {
border-color: var(--border-color-input) !important;
}
.blackTheme .el-input__inner {
background-color: var(--MainBG) !important;
}
.blackTheme .el-input__inner:not(:focus) {
// border: none !important;
border-color: var(--border-color-input) !important;
}
.blackTheme .el-input-number__decrease {
background-color: var(--MainBG) !important;
border: none !important;
}
.blackTheme .el-input-number__increase {
background-color: var(--MainBG) !important;
border: none !important;
}
.el-pagination {
button:disabled {