@bit-sun/business-component 4.2.1-alpha.8 → 4.2.1-alpha.8-longya

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,41 @@
1
+ export interface CurrentPageFilterColumn {
2
+ dataIndex?: string;
3
+ currentPageFilter?: boolean;
4
+ children?: CurrentPageFilterColumn[];
5
+ [key: string]: any;
6
+ }
7
+ export interface CurrentPageFilterOption {
8
+ text: string;
9
+ value: string;
10
+ }
11
+ /**
12
+ * SKU 选择弹框「当前页列筛选」默认字段(合并 BusinessSearchSelect / AddSkuSelect 命名)。
13
+ * Functional 层按 dataIndex 命中自动开启,业务列不必再散标 currentPageFilter。
14
+ */
15
+ export declare const SKU_CURRENT_PAGE_FILTER_DATA_INDEXES: string[];
16
+ /**
17
+ * 按 dataIndex 白名单为表格列打上 currentPageFilter。
18
+ *
19
+ * @param columns 原始表格列
20
+ * @param dataIndexes 需要开启当前页筛选的字段
21
+ * @returns 已标记的表格列
22
+ */
23
+ export declare const markCurrentPageFilterByDataIndex: (columns?: CurrentPageFilterColumn[], dataIndexes?: string[]) => CurrentPageFilterColumn[];
24
+ /**
25
+ * 从当前页数据中提取指定字段的筛选项,过滤空值后按名称去重、排序。
26
+ *
27
+ * @param dataSource 当前页表格数据
28
+ * @param dataIndex 作为筛选值的数据字段
29
+ * @returns 当前页可用的筛选项
30
+ */
31
+ export declare const getCurrentPageFilterOptions: (dataSource?: any[], dataIndex?: string) => CurrentPageFilterOption[];
32
+ /**
33
+ * 为声明了 currentPageFilter 的表格列注入当前页筛选能力。
34
+ *
35
+ * @param columns 原始表格列
36
+ * @param dataSource 当前页表格数据
37
+ * @param filteredValues 当前已选筛选值
38
+ * @param enabled 是否启用筛选;已选结果表仅移除内部配置,不启用筛选
39
+ * @returns 可直接传给 Ant Design Table 的表格列
40
+ */
41
+ export declare const buildCurrentPageFilterColumns: (columns?: CurrentPageFilterColumn[], dataSource?: any[], filteredValues?: Record<string, any[] | null>, enabled?: boolean) => CurrentPageFilterColumn[];
@@ -1,8 +1,8 @@
1
- export declare const SEARCH_SELECT_MODAL_DEFAULT_PAGE_SIZE = 100;
1
+ export declare const SEARCH_SELECT_MODAL_DEFAULT_PAGE_SIZE = 200;
2
2
  export declare const SEARCH_SELECT_MODAL_PAGE_SIZE_OPTIONS: number[];
3
3
  export declare const SEARCH_SELECT_MODAL_PAGE_SIZE_CACHE_KEY = "businessComponentSearchSelectPageSize";
4
4
  /**
5
- * 规范化选择器弹窗分页大小,缓存异常时统一回退到每页 100 条。
5
+ * 规范化选择器弹窗分页大小,缓存异常时统一回退到默认条数。
6
6
  *
7
7
  * @param pageSize 待校验的分页大小
8
8
  * @returns 合法的分页大小
@@ -11,7 +11,7 @@ export declare const normalizeSearchSelectModalPageSize: (pageSize: unknown) =>
11
11
  /**
12
12
  * 读取所有选择器弹窗共用的分页大小。
13
13
  *
14
- * @returns 缓存中的分页大小,无有效缓存时返回每页 100 条
14
+ * @returns 缓存中的分页大小,无有效缓存时返回默认条数
15
15
  */
16
16
  export declare const getSearchSelectModalPageSize: () => number;
17
17
  /**