From a20a47e10850c5844ccb81254a433ca047df7bd1 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期五, 18 十月 2024 09:43:18 +0800 Subject: [PATCH] update 滚动样式 --- components/tree-filter/tree-filter.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/components/tree-filter/tree-filter.vue b/components/tree-filter/tree-filter.vue index 2a31d26..8a1c006 100644 --- a/components/tree-filter/tree-filter.vue +++ b/components/tree-filter/tree-filter.vue @@ -78,6 +78,7 @@ }; }, methods: { + async updateSearch() { //todo 递归搜索下面的数据,,并标记为可展示的 console.log('updateSearch', this.localdata) @@ -95,6 +96,9 @@ // this.selectedClear() // } // }, 200) + }, + initData(){ + }, //数据 selectedClear() { @@ -148,7 +152,7 @@ show() { this.isOpened = true setTimeout(() => { - this.$refs.pickerView.updateData({ + this.$refs.pickerView&&this.$refs.pickerView.updateData({ treeData: this._treeData, selected: this.selected, selectedIndex: this.selectedIndex @@ -226,6 +230,9 @@ .tree-filter-nodes { padding-left: 40rpx; padding-right: 40rpx; + overflow-y: scroll; + max-height: calc(75vh - 140rpx); + padding-bottom: 60rpx; .tree-filter-node { display: flex; -- Gitblit v1.9.3