forked from github/dataease
fix: 仪表板文本下拉组件(多选)右侧滚动条一直虚化滚动 #4776
This commit is contained in:
parent
5d91026e17
commit
b6fcd93984
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user