From aa039a7e4ff36cee437c2addac0e5902c059e6ee Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Tue, 11 Aug 2026 15:01:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(select):=20=E6=94=AF=E6=8C=81=E6=8E=92?= =?UTF-8?q?=E9=99=A4=E5=92=8C=E5=8C=85=E5=90=AB=E9=80=89=E9=A1=B9=E7=9A=84?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在组件中新增 exclude 和 include 属性,支持对数据进行筛选 - 使用 useMemo 优化实际展示数据的计算逻辑 - 引入工具函数 getMatchedItems 和 getUnmatchedItems 进行数据过滤 - 修改回调函数和 options 渲染为基于过滤后的数据 - 通过 onGetData 返回过滤后的数据列表 --- src/components/Select/Basic/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Select/Basic/index.js b/src/components/Select/Basic/index.js index b59f34f..9bbe29f 100644 --- a/src/components/Select/Basic/index.js +++ b/src/components/Select/Basic/index.js @@ -1,6 +1,6 @@ import { Select } from "antd"; import { useEffect, useMemo } from "react"; -import { getMatchedItems, getUnmatchedItems } from "../../../utils/index.js"; +import { getMatchedItems, getUnmatchedItems } from "../../../utils"; /** * 基础下拉组件