fix: 仪表板文本下拉组件(多选)右侧滚动条一直虚化滚动 #4776

This commit is contained in:
dataeaseShu 2023-03-15 10:43:32 +08:00
parent 5d91026e17
commit b6fcd93984

View File

@ -160,7 +160,8 @@ export default {
selectDom.insertBefore(this.maxHeightDom, this.domList)
},
reCacularHeight() {
this.maxHeightDom.style.height = this.newList.length * this.itemHeight + 'px'
const h = this.$attrs.multiple ? 16 : 0
this.maxHeightDom.style.height = this.newList.length * this.itemHeight + h + 'px'
},
resetList(arrays) {
if (Array.isArray(arrays)) {