From f8867b8df117d1ac0f1311970994e15059c3da03 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期四, 05 九月 2024 15:57:36 +0800 Subject: [PATCH] add 兼容扫码问题 --- components/tree-filter/tree-filter.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/components/tree-filter/tree-filter.vue b/components/tree-filter/tree-filter.vue index 2a31d26..db015cd 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,8 @@ .tree-filter-nodes { padding-left: 40rpx; padding-right: 40rpx; + overflow-y: scroll; + max-height: 80vh; .tree-filter-node { display: flex; -- Gitblit v1.9.3