question-answer icon indicating copy to clipboard operation
question-answer copied to clipboard

使用cube-recycle-list,怎么实现搜索列表的功能

Open wangjuanlsx opened this issue 5 years ago • 1 comments

onFetch() { let items = []; /this.items1 = [];/ /this.recycleId = 0;/ return new Promise((resolve) => { for (let i = 0; i < this.size; i++) { items.push(this.menuDataOptions[this.recycleId++]) /items = this.menuDataOptions;/ } resolve(items) }) } this.menuDataOptions 的值在输入值改变的时候已经搜索出相应的内容了,但是渲染出来的列表不是搜索出来的内容

wangjuanlsx avatar Jul 09 '19 06:07 wangjuanlsx

目测可以利用 reset API 来实现你的需求 每次改变的时候 需要重置组件

dolymood avatar Jul 17 '19 02:07 dolymood