perf: 优化 Platform 中自动化 select 的宽度

This commit is contained in:
ibuler
2023-07-19 11:35:20 +08:00
committed by Bryan
parent 93d866328c
commit b77440284f
4 changed files with 8 additions and 3 deletions

View File

@@ -48,6 +48,8 @@ export default {
},
methods: {
async getValue() {
console.log('ValueFormatter: ', this.row, this.col, this.cellValue)
this.loading = true
this.attr = this.formatterArgs.attrs.find(attr => attr.name === this.row.name)
this.match = this.row.match
this.$log.debug('ValueFormatter: ', this.attr, this.row.name)

View File

@@ -60,8 +60,8 @@ export function changeThemeColors(themeColors) {
return new Promise((resolve) => {
if (!originalStyle) {
axios.all([
axios.get('/theme/element-ui.css'),
axios.get('/theme/element-extra.css')
axios.get('/ui/theme/element-ui.css'),
axios.get('/ui/theme/element-extra.css')
]).then(
axios.spread((file, extraFile) => {
const fileData = file.data

View File

@@ -180,6 +180,9 @@ export default {
.el-form-item__content {
width: 70%;
}
.el-select {
width: 100%;
}
}
>>> .itemParamsKey.el-form-item {

View File

@@ -158,6 +158,6 @@ export default {
}
</script>
<style>
<style lang="scss" scoped>
</style>