- 在组件中新增 exclude 和 include 属性,支持对数据进行筛选 - 使用 useMemo 优化实际展示数据的计算逻辑 - 引入工具函数 getMatchedItems 和 getUnmatchedItems 进行数据过滤 - 修改回调函数和 options 渲染为基于过滤后的数据 - 通过 onGetData 返回过滤后的数据列表 |
||
|---|---|---|
| .. | ||
| components | ||
| css | ||
| enum | ||
| hooks | ||
| json | ||
| regular | ||
| utils | ||
- 在组件中新增 exclude 和 include 属性,支持对数据进行筛选 - 使用 useMemo 优化实际展示数据的计算逻辑 - 引入工具函数 getMatchedItems 和 getUnmatchedItems 进行数据过滤 - 修改回调函数和 options 渲染为基于过滤后的数据 - 通过 onGetData 返回过滤后的数据列表 |
||
|---|---|---|
| .. | ||
| components | ||
| css | ||
| enum | ||
| hooks | ||
| json | ||
| regular | ||
| utils | ||