forked from github/dataease
fix(仪表板): 下拉过滤器选择多字段枚举值出现空白选项
This commit is contained in:
parent
c100179997
commit
b9d989b4f2
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-select
|
<el-select
|
||||||
|
v-if="show"
|
||||||
ref="visualSelect"
|
ref="visualSelect"
|
||||||
v-model="selectValue"
|
v-model="selectValue"
|
||||||
:class="classId"
|
:class="classId"
|
||||||
@ -52,7 +53,8 @@ export default {
|
|||||||
maxLength: 9, // 弹出框最大支持9个条目
|
maxLength: 9, // 弹出框最大支持9个条目
|
||||||
itemHeight: 34, // select组件选项高度
|
itemHeight: 34, // select组件选项高度
|
||||||
maxHeightDom: null,
|
maxHeightDom: null,
|
||||||
defaultFirst: false
|
defaultFirst: false,
|
||||||
|
show: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -69,8 +71,12 @@ export default {
|
|||||||
},
|
},
|
||||||
list() {
|
list() {
|
||||||
this.resetList()
|
this.resetList()
|
||||||
|
this.show = false
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.init()
|
this.show = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.init()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user