Merge pull request #4790 from dataease/pr@dev_memory_component

Pr@dev memory component
This commit is contained in:
dataeaseShu 2023-03-15 10:46:06 +08:00 committed by GitHub
commit 83eaffb5e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)) {