fix(仪表板): 下拉过滤器选择多字段枚举值出现空白选项

This commit is contained in:
fit2cloud-chenyw 2022-07-03 21:21:33 +08:00
parent c100179997
commit b9d989b4f2

View File

@ -1,5 +1,6 @@
<template>
<el-select
v-if="show"
ref="visualSelect"
v-model="selectValue"
:class="classId"
@ -52,7 +53,8 @@ export default {
maxLength: 9, // 9
itemHeight: 34, // select
maxHeightDom: null,
defaultFirst: false
defaultFirst: false,
show: true
}
},
watch: {
@ -69,9 +71,13 @@ export default {
},
list() {
this.resetList()
this.show = false
this.$nextTick(() => {
this.show = true
this.$nextTick(() => {
this.init()
})
})
}
},
mounted() {