@pisell/materials 6.11.240 → 6.11.241
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.js +16 -16
- package/build/lowcode/view.js +15 -15
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/pisellFind/index.d.ts +2 -0
- package/es/components/pisellFind/index.js +11 -0
- package/es/components/pisellLookup/PisellLookup.js +22 -6
- package/es/components/pisellLookup/components/LookupResultHost.js +56 -38
- package/es/components/pisellLookup/components/LookupTrigger.js +2 -0
- package/es/components/pisellLookup/types.d.ts +36 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/pisellFind/index.d.ts +2 -0
- package/lib/components/pisellFind/index.js +19 -0
- package/lib/components/pisellLookup/PisellLookup.js +18 -4
- package/lib/components/pisellLookup/components/LookupResultHost.js +50 -35
- package/lib/components/pisellLookup/components/LookupTrigger.js +2 -0
- package/lib/components/pisellLookup/types.d.ts +36 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -0
- package/package.json +3 -3
- package/es/components/PisellGroupView/PisellGroupView.d.ts +0 -9
- package/es/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
- package/es/components/PisellGroupView/index.d.ts +0 -6
- package/es/components/PisellGroupView/types.d.ts +0 -124
- package/es/components/PisellGroupView/utils/index.d.ts +0 -20
- package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/es/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/es/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
- package/es/components/PisellScrollView/hooks/useScrollState.d.ts +0 -13
- package/es/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
- package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/es/components/PisellTabbar/constants.d.ts +0 -47
- package/es/components/PisellTabbar/types.d.ts +0 -123
- package/es/components/buttonGroupPreview/index.d.ts +0 -19
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -89
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
- package/es/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -64
- package/es/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -49
- package/es/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +0 -13
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
- package/es/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
- package/es/components/pisellFloorMapLayout/index.d.ts +0 -39
- package/es/components/pisellFloorMapLayout/locales-ja.d.ts +0 -184
- package/es/components/pisellFloorMapLayout/locales-pt.d.ts +0 -184
- package/es/components/pisellFloorMapLayout/locales.d.ts +0 -969
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -80
- package/es/components/pisellFloorMapLayout/types.d.ts +0 -769
- package/es/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/es/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/es/components/pisellFloorMapLayout/utils/floorMapSelectionZone.d.ts +0 -24
- package/es/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/es/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -34
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -102
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -30
- package/es/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarAxis.d.ts +0 -32
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -330
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -52
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -22
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +0 -57
- package/es/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -26
- package/es/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/es/components/pisellRecordBoard/types.d.ts +0 -899
- package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/es/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -36
- package/es/components/pisellTimeRangeDisplay/types.d.ts +0 -145
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/es/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/es/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -23
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -15
- package/es/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
- package/es/components/productCard/lineItem/components/Holders/index.d.ts +0 -10
- package/es/components/productCard/lineItem/components/Resources/index.d.ts +0 -7
- package/es/components/productCard/lineItem/index.d.ts +0 -72
- package/es/components/productCard/lineItem/locales.d.ts +0 -38
- package/es/components/productCard/types.d.ts +0 -98
- package/es/components/select-time/RightPanel/index.d.ts +0 -10
- package/es/components/select-time/index.d.ts +0 -16
- package/es/components/table/hooks/useTableSetting.d.ts +0 -21
- package/es/components/virtual-keyboard/Time/index.d.ts +0 -14
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/es/hooks/useTranslationOriginal.d.ts +0 -4
- package/es/locales/en-US.d.ts +0 -566
- package/es/locales/ja.d.ts +0 -534
- package/es/locales/pt.d.ts +0 -534
- package/es/locales/zh-CN.d.ts +0 -561
- package/es/locales/zh-TW.d.ts +0 -561
- package/lib/components/PisellGroupView/PisellGroupView.d.ts +0 -9
- package/lib/components/PisellGroupView/PisellGroupView.stories.d.ts +0 -27
- package/lib/components/PisellGroupView/index.d.ts +0 -6
- package/lib/components/PisellGroupView/types.d.ts +0 -124
- package/lib/components/PisellGroupView/utils/index.d.ts +0 -20
- package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +0 -163
- package/lib/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/lib/components/PisellScrollView/PisellScrollView.stories.d.ts +0 -87
- package/lib/components/PisellScrollView/hooks/useScrollState.d.ts +0 -13
- package/lib/components/PisellSteps/PisellSteps.stories.d.ts +0 -155
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/lib/components/PisellTabbar/constants.d.ts +0 -47
- package/lib/components/PisellTabbar/types.d.ts +0 -123
- package/lib/components/buttonGroupPreview/index.d.ts +0 -19
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/components/CanvasTabs.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/components/EditableItemLayer.d.ts +0 -89
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.d.ts +0 -14
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditTopBar.d.ts +0 -64
- package/lib/components/pisellFloorMapLayout/components/FloorMapOverview.d.ts +0 -49
- package/lib/components/pisellFloorMapLayout/components/FloorMapSelectionZoneElement.d.ts +0 -13
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbar.d.ts +0 -84
- package/lib/components/pisellFloorMapLayout/components/FloorMapToolbarViewAllModal.d.ts +0 -20
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +0 -94
- package/lib/components/pisellFloorMapLayout/index.d.ts +0 -39
- package/lib/components/pisellFloorMapLayout/locales-ja.d.ts +0 -184
- package/lib/components/pisellFloorMapLayout/locales-pt.d.ts +0 -184
- package/lib/components/pisellFloorMapLayout/locales.d.ts +0 -969
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.d.ts +0 -10
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanPure.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanTypes.d.ts +0 -80
- package/lib/components/pisellFloorMapLayout/types.d.ts +0 -769
- package/lib/components/pisellFloorMapLayout/utils/floorMapCanvasDisplay.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapConfigMerge.d.ts +0 -8
- package/lib/components/pisellFloorMapLayout/utils/floorMapFallbackRender.d.ts +0 -11
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/lib/components/pisellFloorMapLayout/utils/floorMapSelectionZone.d.ts +0 -24
- package/lib/components/pisellRecordBoard/PisellRecordBoard.d.ts +0 -9
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/BookingCalendar.d.ts +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarInternalTypes.d.ts +0 -43
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/bookingCalendarViewShared.d.ts +0 -34
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -102
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/BookingCalendarOverflowListLayer.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowListModal.d.ts +0 -30
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/modal/OverflowPopover.d.ts +0 -9
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarAxis.d.ts +0 -32
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarDateUtils.d.ts +0 -330
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarDayView.d.ts +0 -52
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarMonthView.d.ts +0 -22
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarResourceView.d.ts +0 -57
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/view/BookingCalendarWeekView.d.ts +0 -26
- package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.d.ts +0 -14
- package/lib/components/pisellRecordBoard/types.d.ts +0 -899
- package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.d.ts +0 -32
- package/lib/components/pisellTimeRangeDisplay/components/TimeRangeBlock.d.ts +0 -36
- package/lib/components/pisellTimeRangeDisplay/types.d.ts +0 -145
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -4
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
- package/lib/components/productCard/cartSkuCard/components/inlineActions/index.d.ts +0 -15
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -22
- package/lib/components/productCard/cartSkuCard/components/weighing/index.d.ts +0 -23
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -15
- package/lib/components/productCard/lineItem/BookingLineItem.d.ts +0 -23
- package/lib/components/productCard/lineItem/components/Holders/index.d.ts +0 -10
- package/lib/components/productCard/lineItem/components/Resources/index.d.ts +0 -7
- package/lib/components/productCard/lineItem/index.d.ts +0 -72
- package/lib/components/productCard/lineItem/locales.d.ts +0 -38
- package/lib/components/productCard/types.d.ts +0 -98
- package/lib/components/select-time/RightPanel/index.d.ts +0 -10
- package/lib/components/select-time/index.d.ts +0 -16
- package/lib/components/table/hooks/useTableSetting.d.ts +0 -21
- package/lib/components/virtual-keyboard/Time/index.d.ts +0 -14
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/hooks/useTranslationOriginal.d.ts +0 -4
- package/lib/locales/en-US.d.ts +0 -566
- package/lib/locales/ja.d.ts +0 -534
- package/lib/locales/pt.d.ts +0 -534
- package/lib/locales/zh-CN.d.ts +0 -561
- package/lib/locales/zh-TW.d.ts +0 -561
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import type { GroupKey, GroupResult } from '@pisell/utils';
|
|
3
|
-
/**
|
|
4
|
-
* 单个分组的数据模型
|
|
5
|
-
* @template T - 数据项类型
|
|
6
|
-
* @description 复用 `@pisell/utils` 的 `GroupResult`,包含 groupId、keys、keyMap、items 等
|
|
7
|
-
*/
|
|
8
|
-
export declare type GroupModel<T> = GroupResult<T>;
|
|
9
|
-
/**
|
|
10
|
-
* 主体(第三块)渲染单条数据时的上下文
|
|
11
|
-
* @template T - 数据项类型
|
|
12
|
-
*/
|
|
13
|
-
export interface ItemContext<T> {
|
|
14
|
-
/** 当前数据所属分组 */
|
|
15
|
-
group: GroupModel<T>;
|
|
16
|
-
/** 当前数据在分组内的下标 */
|
|
17
|
-
index: number;
|
|
18
|
-
/**
|
|
19
|
-
* 参与分组的字段名列表
|
|
20
|
-
* @description
|
|
21
|
-
* 调用方可据此在卡片中省略「头部已展示」的字段,避免重复展示。
|
|
22
|
-
* 当使用自定义函数分组时,该数组为空。
|
|
23
|
-
*/
|
|
24
|
-
groupKeys: string[];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* 主体(第三块)的布局配置
|
|
28
|
-
* @description
|
|
29
|
-
* - `'stack'`:纵向堆叠每条卡片(默认)
|
|
30
|
-
* - 对象:透传给内部 `PisellBasicGrid` 实现多列/横向布局
|
|
31
|
-
*/
|
|
32
|
-
export declare type ItemLayout = 'stack' | {
|
|
33
|
-
/** 一行显示的卡片数 */
|
|
34
|
-
columns?: number;
|
|
35
|
-
/** 卡片间距 */
|
|
36
|
-
gap?: number | string;
|
|
37
|
-
/** 排列方向 */
|
|
38
|
-
direction?: 'horizontal' | 'vertical';
|
|
39
|
-
/** 是否换行 */
|
|
40
|
-
wrap?: 'wrap' | 'nowrap';
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* 一个分组渲染出的四块内容
|
|
44
|
-
* @description 透传给 `renderGroup`,便于调用方自定义整组容器但复用四块默认内容
|
|
45
|
-
*/
|
|
46
|
-
export interface GroupBlocks {
|
|
47
|
-
/** ① 头部:分组条件对应的相同信息 */
|
|
48
|
-
header: ReactNode;
|
|
49
|
-
/** ② 统计栏:来自分组数据的统计信息 */
|
|
50
|
-
stats: ReactNode;
|
|
51
|
-
/** ③ 主体:分组内所有条目(卡片) */
|
|
52
|
-
body: ReactNode;
|
|
53
|
-
/** ④ 操作区:批量操作 */
|
|
54
|
-
actions: ReactNode;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* 多端 variant
|
|
58
|
-
* @description 仅用于在根节点追加 `--${variant}` class,由 Less 控制展示差异
|
|
59
|
-
*/
|
|
60
|
-
export declare type GroupViewVariant = 'desktop' | 'tablet' | 'pos' | 'phone';
|
|
61
|
-
/**
|
|
62
|
-
* PisellGroupView 组件 Props
|
|
63
|
-
* @template T - 数据项类型
|
|
64
|
-
* @description
|
|
65
|
-
* 通用、数据无关的「分组展示容器」:先按 `groupBy` 将 `dataSource` 分组,
|
|
66
|
-
* 再为每个分组渲染头部 / 统计 / 主体 / 操作四块,各块均可由外部自定义渲染。
|
|
67
|
-
*/
|
|
68
|
-
export interface PisellGroupViewProps<T = unknown> {
|
|
69
|
-
/** 数据源(应为外部已映射好的列表) */
|
|
70
|
-
dataSource: T[];
|
|
71
|
-
/**
|
|
72
|
-
* 分组规则
|
|
73
|
-
* @description
|
|
74
|
-
* - `string`:单字段路径,支持 `'a.b.c'` 点路径
|
|
75
|
-
* - `string[]`:多字段组合(如 `['productId', 'time']`)
|
|
76
|
-
* - `(item, index) => GroupKey | GroupKey[]`:完全自定义
|
|
77
|
-
*/
|
|
78
|
-
groupBy: string | string[] | ((item: T, index: number) => GroupKey | GroupKey[]);
|
|
79
|
-
/** 自定义分组 id 生成,默认各键以 `|` 拼接 */
|
|
80
|
-
getGroupId?: (keys: GroupKey[]) => string;
|
|
81
|
-
/** 分组之间的排序;不传保持首次出现顺序 */
|
|
82
|
-
sortGroups?: (a: GroupModel<T>, b: GroupModel<T>) => number;
|
|
83
|
-
/** 分组内数据项的排序;不传保持原始相对顺序 */
|
|
84
|
-
sortItems?: (a: T, b: T) => number;
|
|
85
|
-
/** ① 头部:分组条件对应的相同信息(时间、商品名、客户等) */
|
|
86
|
-
renderHeader?: (group: GroupModel<T>) => ReactNode;
|
|
87
|
-
/** ② 统计栏:可自定义展示,数据来源于分组后的数据 */
|
|
88
|
-
renderStats?: (group: GroupModel<T>) => ReactNode;
|
|
89
|
-
/** ③ 主体:渲染分组内的单条数据为卡片 */
|
|
90
|
-
renderItem?: (item: T, ctx: ItemContext<T>) => ReactNode;
|
|
91
|
-
/** ④ 操作区:批量操作(加时、编辑等) */
|
|
92
|
-
renderActions?: (group: GroupModel<T>) => ReactNode;
|
|
93
|
-
/**
|
|
94
|
-
* 主体布局
|
|
95
|
-
* @default 'stack'
|
|
96
|
-
*/
|
|
97
|
-
itemLayout?: ItemLayout;
|
|
98
|
-
/**
|
|
99
|
-
* 自定义主体容器
|
|
100
|
-
* @param group - 当前分组
|
|
101
|
-
* @param defaultBody - 组件按 `itemLayout` + `renderItem` 渲染出的默认主体
|
|
102
|
-
*/
|
|
103
|
-
renderBody?: (group: GroupModel<T>, defaultBody: ReactNode) => ReactNode;
|
|
104
|
-
/**
|
|
105
|
-
* 自定义整组容器
|
|
106
|
-
* @param group - 当前分组
|
|
107
|
-
* @param blocks - 四块默认内容(header/stats/body/actions)
|
|
108
|
-
* @description 提供后将完全接管单个分组的结构,调用方可自由编排四块顺序与包裹
|
|
109
|
-
*/
|
|
110
|
-
renderGroup?: (group: GroupModel<T>, blocks: GroupBlocks) => ReactNode;
|
|
111
|
-
/** 数据源为空时的渲染 */
|
|
112
|
-
renderEmpty?: () => ReactNode;
|
|
113
|
-
/**
|
|
114
|
-
* 主体内单条卡片的 key
|
|
115
|
-
* @description 不传时使用 index(仅在列表无增删改时安全)
|
|
116
|
-
*/
|
|
117
|
-
rowKey?: string | ((item: T, index: number) => string);
|
|
118
|
-
/** 多端 variant,仅追加根节点 class */
|
|
119
|
-
variant?: GroupViewVariant;
|
|
120
|
-
/** 自定义类名 */
|
|
121
|
-
className?: string;
|
|
122
|
-
/** 自定义样式 */
|
|
123
|
-
style?: CSSProperties;
|
|
124
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { PisellGroupViewProps } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 组件样式前缀
|
|
4
|
-
*/
|
|
5
|
-
export declare const COMPONENT_PREFIX = "pisell-group-view";
|
|
6
|
-
/**
|
|
7
|
-
* 解析参与分组的字段名列表
|
|
8
|
-
* @param groupBy - 组件的 groupBy 配置
|
|
9
|
-
* @returns 字段名数组;自定义函数分组时返回空数组
|
|
10
|
-
* @description 用于透传给 `renderItem`,让调用方据此省略头部已展示的字段
|
|
11
|
-
*/
|
|
12
|
-
export declare const getGroupFieldNames: <T>(groupBy: string | string[] | ((item: T, index: number) => any)) => string[];
|
|
13
|
-
/**
|
|
14
|
-
* 获取主体内单条数据的稳定 key
|
|
15
|
-
* @param item - 数据项
|
|
16
|
-
* @param index - 索引
|
|
17
|
-
* @param rowKey - rowKey 配置
|
|
18
|
-
* @returns key 字符串
|
|
19
|
-
*/
|
|
20
|
-
export declare const resolveItemKey: <T>(item: T, index: number, rowKey?: string | ((item: T, index: number) => string) | undefined) => string;
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import PisellProcedure from './PisellProcedure';
|
|
3
|
-
/**
|
|
4
|
-
* PisellProcedure 流程容器组件
|
|
5
|
-
*
|
|
6
|
-
* 用于管理多步骤流程的复合容器组件,基于 PisellLayout 实现三段式布局
|
|
7
|
-
* 包含头部区域(步骤条)、主体区域(内容区+信息区)、底部区域(操作按钮)
|
|
8
|
-
*/
|
|
9
|
-
declare const meta: Meta<typeof PisellProcedure>;
|
|
10
|
-
export default meta;
|
|
11
|
-
declare type Story = StoryObj<typeof PisellProcedure>;
|
|
12
|
-
/**
|
|
13
|
-
* 基础用法
|
|
14
|
-
* @description 默认流程容器,包含头部、主体、底部三个区域
|
|
15
|
-
*/
|
|
16
|
-
export declare const Default: Story;
|
|
17
|
-
/**
|
|
18
|
-
* 页面模式
|
|
19
|
-
* @description 默认模式,支持响应式和移动端适配
|
|
20
|
-
*/
|
|
21
|
-
export declare const PageMode: Story;
|
|
22
|
-
/**
|
|
23
|
-
* 弹窗模式
|
|
24
|
-
* @description 用于弹窗场景,不应用移动端适配
|
|
25
|
-
*/
|
|
26
|
-
export declare const ModalMode: Story;
|
|
27
|
-
/**
|
|
28
|
-
* 步骤控制
|
|
29
|
-
* @description 使用 onStepsChange 监听步骤变化
|
|
30
|
-
*/
|
|
31
|
-
export declare const StepControl: Story;
|
|
32
|
-
/**
|
|
33
|
-
* 步骤拦截
|
|
34
|
-
* @description 通过 onNext/onPrev 返回 false 阻止步骤切换
|
|
35
|
-
*/
|
|
36
|
-
export declare const StepIntercept: Story;
|
|
37
|
-
/**
|
|
38
|
-
* 无侧边栏
|
|
39
|
-
*/
|
|
40
|
-
export declare const WithoutSidebar: Story;
|
|
41
|
-
/**
|
|
42
|
-
* 无头部
|
|
43
|
-
*/
|
|
44
|
-
export declare const WithoutHeader: Story;
|
|
45
|
-
/**
|
|
46
|
-
* 无底部
|
|
47
|
-
*/
|
|
48
|
-
export declare const WithoutFooter: Story;
|
|
49
|
-
/**
|
|
50
|
-
* 最小配置
|
|
51
|
-
* @description 仅显示主体内容
|
|
52
|
-
*/
|
|
53
|
-
export declare const MinimalConfig: Story;
|
|
54
|
-
/**
|
|
55
|
-
* 头部插槽顺序 - 默认
|
|
56
|
-
* @description left 在左,right 在右
|
|
57
|
-
*/
|
|
58
|
-
export declare const HeaderSlotDefault: Story;
|
|
59
|
-
/**
|
|
60
|
-
* 头部插槽顺序 - 反转
|
|
61
|
-
* @description left 在右,right 在左
|
|
62
|
-
*/
|
|
63
|
-
export declare const HeaderSlotReverse: Story;
|
|
64
|
-
/**
|
|
65
|
-
* 隐藏步骤条
|
|
66
|
-
* @description 仅显示头部插槽,不显示步骤条
|
|
67
|
-
*/
|
|
68
|
-
export declare const HideSteps: Story;
|
|
69
|
-
/**
|
|
70
|
-
* 第一步显示返回按钮
|
|
71
|
-
* @description 通过 showBackOnFirstStep 控制
|
|
72
|
-
*/
|
|
73
|
-
export declare const ShowBackOnFirstStep: Story;
|
|
74
|
-
/**
|
|
75
|
-
* 返回确认弹窗
|
|
76
|
-
* @description 点击返回时弹出确认弹窗
|
|
77
|
-
*/
|
|
78
|
-
export declare const BackConfirmModal: Story;
|
|
79
|
-
/**
|
|
80
|
-
* 关闭确认弹窗
|
|
81
|
-
* @description 点击关闭时弹出确认弹窗
|
|
82
|
-
*/
|
|
83
|
-
export declare const CloseConfirmModal: Story;
|
|
84
|
-
/**
|
|
85
|
-
* 主体布局 - 比例布局
|
|
86
|
-
* @description 使用比例分配内容区和侧边栏宽度
|
|
87
|
-
*/
|
|
88
|
-
export declare const BodyRatioLayout: Story;
|
|
89
|
-
/**
|
|
90
|
-
* 主体布局 - 固定宽度
|
|
91
|
-
* @description 侧边栏使用固定宽度
|
|
92
|
-
*/
|
|
93
|
-
export declare const BodyFixedLayout: Story;
|
|
94
|
-
/**
|
|
95
|
-
* 主体布局 - 垂直布局
|
|
96
|
-
* @description 内容区和侧边栏上下排列
|
|
97
|
-
*/
|
|
98
|
-
export declare const BodyVerticalLayout: Story;
|
|
99
|
-
/**
|
|
100
|
-
* 主体布局 - 内容顺序反转
|
|
101
|
-
* @description 侧边栏在左/上,内容区在右/下
|
|
102
|
-
*/
|
|
103
|
-
export declare const BodyContentOrderReverse: Story;
|
|
104
|
-
/**
|
|
105
|
-
* 底部位置 - 悬浮在侧边栏
|
|
106
|
-
* @description 默认位置,底部悬浮在侧边栏区域
|
|
107
|
-
*/
|
|
108
|
-
export declare const FooterFloatSidebar: Story;
|
|
109
|
-
/**
|
|
110
|
-
* 底部位置 - 固定在整体底部
|
|
111
|
-
*/
|
|
112
|
-
export declare const FooterFixedBottom: Story;
|
|
113
|
-
/**
|
|
114
|
-
* 底部位置 - 悬浮在整体区域
|
|
115
|
-
* @description 移动端默认使用此模式
|
|
116
|
-
*/
|
|
117
|
-
export declare const FooterFloatAll: Story;
|
|
118
|
-
/**
|
|
119
|
-
* 底部位置 - 悬浮在内容区
|
|
120
|
-
*/
|
|
121
|
-
export declare const FooterFloatContent: Story;
|
|
122
|
-
/**
|
|
123
|
-
* 底部位置 - 内嵌在内容区底部
|
|
124
|
-
*/
|
|
125
|
-
export declare const FooterFixedContentBottom: Story;
|
|
126
|
-
/**
|
|
127
|
-
* 底部位置 - 内嵌在侧边栏底部
|
|
128
|
-
*/
|
|
129
|
-
export declare const FooterFixedSidebarBottom: Story;
|
|
130
|
-
/**
|
|
131
|
-
* 移动端总结按钮
|
|
132
|
-
* @description 移动端显示总结按钮,点击可查看侧边栏内容
|
|
133
|
-
*/
|
|
134
|
-
export declare const MobileSummaryButton: Story;
|
|
135
|
-
/**
|
|
136
|
-
* 溢出收纳功能
|
|
137
|
-
* @description 当宽度不足时,按钮会被收纳到 More 菜单中
|
|
138
|
-
*/
|
|
139
|
-
export declare const OverflowActions: Story;
|
|
140
|
-
/**
|
|
141
|
-
* 禁用溢出收纳
|
|
142
|
-
* @description 不启用溢出收纳,按钮会换行显示
|
|
143
|
-
*/
|
|
144
|
-
export declare const DisableOverflow: Story;
|
|
145
|
-
/**
|
|
146
|
-
* 完整示例 - 购物流程
|
|
147
|
-
* @description 模拟真实的购物流程
|
|
148
|
-
*/
|
|
149
|
-
export declare const ShoppingFlow: Story;
|
|
150
|
-
/**
|
|
151
|
-
* 完整示例 - 注册流程
|
|
152
|
-
* @description 模拟用户注册流程
|
|
153
|
-
*/
|
|
154
|
-
export declare const RegistrationFlow: Story;
|
|
155
|
-
/**
|
|
156
|
-
* 完整示例 - 表单向导
|
|
157
|
-
* @description 多步表单向导
|
|
158
|
-
*/
|
|
159
|
-
export declare const FormWizard: Story;
|
|
160
|
-
/**
|
|
161
|
-
* 交互测试 - 组件渲染
|
|
162
|
-
*/
|
|
163
|
-
export declare const InteractionTest: Story;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellScrollViewProps, PisellScrollViewRef } from './types';
|
|
3
|
-
import './PisellScrollView.less';
|
|
4
|
-
declare const PisellScrollView: React.ForwardRefExoticComponent<Omit<PisellScrollViewProps, "ref"> & React.RefAttributes<PisellScrollViewRef>>;
|
|
5
|
-
export default PisellScrollView;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import PisellScrollView from './PisellScrollView';
|
|
3
|
-
/**
|
|
4
|
-
* PisellScrollView 滚动视图组件
|
|
5
|
-
*
|
|
6
|
-
* 提供丰富的滚动功能,包括滚动方向控制、滚动条样式、滚动按钮、滚动事件监听、
|
|
7
|
-
* 视图监听、吸附滚动等功能
|
|
8
|
-
*/
|
|
9
|
-
declare const meta: Meta<typeof PisellScrollView>;
|
|
10
|
-
export default meta;
|
|
11
|
-
declare type Story = StoryObj<typeof PisellScrollView>;
|
|
12
|
-
/**
|
|
13
|
-
* 基础用法 - 垂直滚动
|
|
14
|
-
*/
|
|
15
|
-
export declare const Default: Story;
|
|
16
|
-
/**
|
|
17
|
-
* 水平滚动
|
|
18
|
-
*/
|
|
19
|
-
export declare const HorizontalScroll: Story;
|
|
20
|
-
/**
|
|
21
|
-
* 双向滚动
|
|
22
|
-
*/
|
|
23
|
-
export declare const BothDirections: Story;
|
|
24
|
-
/**
|
|
25
|
-
* 滚动条样式 - 细滚动条
|
|
26
|
-
*/
|
|
27
|
-
export declare const ThinScrollbar: Story;
|
|
28
|
-
/**
|
|
29
|
-
* 滚动条样式 - 隐藏滚动条
|
|
30
|
-
*/
|
|
31
|
-
export declare const HiddenScrollbar: Story;
|
|
32
|
-
/**
|
|
33
|
-
* 滚动按钮 - 右侧箭头
|
|
34
|
-
*/
|
|
35
|
-
export declare const RightArrows: Story;
|
|
36
|
-
/**
|
|
37
|
-
* 滚动按钮 - 左右箭头
|
|
38
|
-
*/
|
|
39
|
-
export declare const LeftRightArrows: Story;
|
|
40
|
-
/**
|
|
41
|
-
* 滚动按钮 - 返回顶部
|
|
42
|
-
*/
|
|
43
|
-
export declare const BackToTop: Story;
|
|
44
|
-
/**
|
|
45
|
-
* 滚动事件监听
|
|
46
|
-
*/
|
|
47
|
-
export declare const ScrollEvents: Story;
|
|
48
|
-
/**
|
|
49
|
-
* 吸附滚动 - 垂直方向
|
|
50
|
-
*/
|
|
51
|
-
export declare const SnapScrollVertical: Story;
|
|
52
|
-
/**
|
|
53
|
-
* 吸附滚动 - 水平方向
|
|
54
|
-
*/
|
|
55
|
-
export declare const SnapScrollHorizontal: Story;
|
|
56
|
-
/**
|
|
57
|
-
* 视图监听 - IntersectionObserver
|
|
58
|
-
*/
|
|
59
|
-
export declare const IntersectionObserver: Story;
|
|
60
|
-
/**
|
|
61
|
-
* Ref 方法调用
|
|
62
|
-
*/
|
|
63
|
-
export declare const RefMethods: Story;
|
|
64
|
-
/**
|
|
65
|
-
* 滚动到指定元素
|
|
66
|
-
*/
|
|
67
|
-
export declare const ScrollToElement: Story;
|
|
68
|
-
/**
|
|
69
|
-
* 自定义尺寸
|
|
70
|
-
*/
|
|
71
|
-
export declare const CustomSize: Story;
|
|
72
|
-
/**
|
|
73
|
-
* 综合示例 - 商品列表
|
|
74
|
-
*/
|
|
75
|
-
export declare const ProductList: Story;
|
|
76
|
-
/**
|
|
77
|
-
* 综合示例 - 横向标签页
|
|
78
|
-
*/
|
|
79
|
-
export declare const HorizontalTabs: Story;
|
|
80
|
-
/**
|
|
81
|
-
* 交互测试 - 验证组件渲染
|
|
82
|
-
*/
|
|
83
|
-
export declare const RenderTest: Story;
|
|
84
|
-
/**
|
|
85
|
-
* 交互测试 - 滚动按钮点击
|
|
86
|
-
*/
|
|
87
|
-
export declare const ScrollButtonTest: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
import { ScrollEventData, PisellScrollViewProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* 滚动状态管理 Hook
|
|
5
|
-
* @description 管理滚动容器的状态,包括滚动位置、溢出检测等
|
|
6
|
-
*/
|
|
7
|
-
export declare const useScrollState: ({ containerRef, overflow, }: {
|
|
8
|
-
containerRef: RefObject<HTMLElement>;
|
|
9
|
-
overflow: PisellScrollViewProps['overflow'];
|
|
10
|
-
}) => {
|
|
11
|
-
scrollState: ScrollEventData;
|
|
12
|
-
updateScrollState: () => void;
|
|
13
|
-
};
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import PisellSteps from './PisellSteps';
|
|
3
|
-
/**
|
|
4
|
-
* PisellSteps 步骤条组件
|
|
5
|
-
*
|
|
6
|
-
* 基于 Ant Design Steps 组件进行二次封装和增强
|
|
7
|
-
* 支持多种展示样式、布局方式和丰富的交互功能
|
|
8
|
-
*/
|
|
9
|
-
declare const meta: Meta<typeof PisellSteps>;
|
|
10
|
-
export default meta;
|
|
11
|
-
declare type Story = StoryObj<typeof PisellSteps>;
|
|
12
|
-
/**
|
|
13
|
-
* 基础用法 - 默认步骤条
|
|
14
|
-
*/
|
|
15
|
-
export declare const Default: Story;
|
|
16
|
-
/**
|
|
17
|
-
* 非受控模式
|
|
18
|
-
* @description 使用 defaultCurrent 设置初始步骤
|
|
19
|
-
*/
|
|
20
|
-
export declare const Uncontrolled: Story;
|
|
21
|
-
/**
|
|
22
|
-
* 垂直方向
|
|
23
|
-
*/
|
|
24
|
-
export declare const Vertical: Story;
|
|
25
|
-
/**
|
|
26
|
-
* 点状步骤条
|
|
27
|
-
* @description 通过 progressDot 属性启用点状样式
|
|
28
|
-
*/
|
|
29
|
-
export declare const Dot: Story;
|
|
30
|
-
/**
|
|
31
|
-
* 自定义点状渲染
|
|
32
|
-
* @description 使用函数自定义点状图标的渲染
|
|
33
|
-
*/
|
|
34
|
-
export declare const CustomProgressDot: Story;
|
|
35
|
-
/**
|
|
36
|
-
* 导航步骤条
|
|
37
|
-
*/
|
|
38
|
-
export declare const Navigation: Story;
|
|
39
|
-
/**
|
|
40
|
-
* 小尺寸
|
|
41
|
-
*/
|
|
42
|
-
export declare const Small: Story;
|
|
43
|
-
/**
|
|
44
|
-
* 大尺寸
|
|
45
|
-
*/
|
|
46
|
-
export declare const Large: Story;
|
|
47
|
-
/**
|
|
48
|
-
* 标签垂直布局
|
|
49
|
-
* @description 标签在图标下方显示
|
|
50
|
-
*/
|
|
51
|
-
export declare const LabelVertical: Story;
|
|
52
|
-
/**
|
|
53
|
-
* 错误状态
|
|
54
|
-
*/
|
|
55
|
-
export declare const ErrorStatus: Story;
|
|
56
|
-
/**
|
|
57
|
-
* 自定义步骤状态
|
|
58
|
-
* @description 每个步骤可以单独设置状态
|
|
59
|
-
*/
|
|
60
|
-
export declare const CustomStatus: Story;
|
|
61
|
-
/**
|
|
62
|
-
* 可点击步骤
|
|
63
|
-
*/
|
|
64
|
-
export declare const Clickable: Story;
|
|
65
|
-
/**
|
|
66
|
-
* 禁止点击已完成步骤
|
|
67
|
-
* @description 设置 allowClickFinished 为 false
|
|
68
|
-
*/
|
|
69
|
-
export declare const DisallowClickFinished: Story;
|
|
70
|
-
/**
|
|
71
|
-
* 禁用特定步骤
|
|
72
|
-
* @description 通过 disabled 属性禁用某个步骤
|
|
73
|
-
*/
|
|
74
|
-
export declare const DisabledStep: Story;
|
|
75
|
-
/**
|
|
76
|
-
* 自定义图标
|
|
77
|
-
*/
|
|
78
|
-
export declare const CustomIcon: Story;
|
|
79
|
-
/**
|
|
80
|
-
* 完成图标
|
|
81
|
-
*/
|
|
82
|
-
export declare const FinishIcon: Story;
|
|
83
|
-
/**
|
|
84
|
-
* 栅格布局
|
|
85
|
-
* @description 启用栅格布局,自定义列数
|
|
86
|
-
*/
|
|
87
|
-
export declare const GridLayout: Story;
|
|
88
|
-
/**
|
|
89
|
-
* 自定义图标与文本间距
|
|
90
|
-
* @description 通过 itemGap 属性自定义间距
|
|
91
|
-
*/
|
|
92
|
-
export declare const CustomItemGap: Story;
|
|
93
|
-
/**
|
|
94
|
-
* 移动端 - 完整模式
|
|
95
|
-
* @description 移动端显示完整步骤条
|
|
96
|
-
*/
|
|
97
|
-
export declare const MobileModeFull: Story;
|
|
98
|
-
/**
|
|
99
|
-
* 移动端 - 当前步骤模式
|
|
100
|
-
* @description 只显示当前步骤信息
|
|
101
|
-
*/
|
|
102
|
-
export declare const MobileModeCurrent: Story;
|
|
103
|
-
/**
|
|
104
|
-
* 移动端 - 自动模式
|
|
105
|
-
* @description 根据屏幕宽度自动切换显示模式
|
|
106
|
-
*/
|
|
107
|
-
export declare const MobileModeAuto: Story;
|
|
108
|
-
/**
|
|
109
|
-
* 自定义移动端断点
|
|
110
|
-
* @description 通过 mobileBreakpoint 自定义断点宽度
|
|
111
|
-
*/
|
|
112
|
-
export declare const CustomMobileBreakpoint: Story;
|
|
113
|
-
/**
|
|
114
|
-
* 自定义起始索引
|
|
115
|
-
* @description 通过 initial 设置起始步骤索引
|
|
116
|
-
*/
|
|
117
|
-
export declare const InitialIndex: Story;
|
|
118
|
-
/**
|
|
119
|
-
* 隐藏特定步骤
|
|
120
|
-
* @description 通过 hidden 属性动态隐藏步骤
|
|
121
|
-
*/
|
|
122
|
-
export declare const HiddenStep: Story;
|
|
123
|
-
/**
|
|
124
|
-
* 带子标题
|
|
125
|
-
* @description 步骤可以包含子标题
|
|
126
|
-
*/
|
|
127
|
-
export declare const WithSubTitle: Story;
|
|
128
|
-
/**
|
|
129
|
-
* 响应式步骤条
|
|
130
|
-
* @description 开启响应式后会自动调整布局
|
|
131
|
-
*/
|
|
132
|
-
export declare const Responsive: Story;
|
|
133
|
-
/**
|
|
134
|
-
* 完整功能演示
|
|
135
|
-
* @description 展示多种功能的组合使用
|
|
136
|
-
*/
|
|
137
|
-
export declare const FullFeature: Story;
|
|
138
|
-
/**
|
|
139
|
-
* 多步骤流程
|
|
140
|
-
* @description 更多步骤的场景
|
|
141
|
-
*/
|
|
142
|
-
export declare const ManySteps: Story;
|
|
143
|
-
/**
|
|
144
|
-
* 购物流程示例
|
|
145
|
-
* @description 模拟真实的购物流程
|
|
146
|
-
*/
|
|
147
|
-
export declare const ShoppingFlow: Story;
|
|
148
|
-
/**
|
|
149
|
-
* 交互测试 - 点击步骤
|
|
150
|
-
*/
|
|
151
|
-
export declare const InteractionTest: Story;
|
|
152
|
-
/**
|
|
153
|
-
* 交互测试 - 验证组件渲染
|
|
154
|
-
*/
|
|
155
|
-
export declare const RenderTest: Story;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './PisellSuperTabs.less';
|
|
3
|
-
import type { PisellSuperTabsProps } from './types';
|
|
4
|
-
interface PisellSuperTabsRef {
|
|
5
|
-
scrollItemByRowKey: (key: string) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: React.ForwardRefExoticComponent<PisellSuperTabsProps<unknown> & React.RefAttributes<PisellSuperTabsRef>>;
|
|
8
|
-
export default _default;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { TabbarLevelConfig, ExpandConfig, LevelType } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* 默认层级配置
|
|
4
|
-
*/
|
|
5
|
-
export declare const DEFAULT_LEVEL_CONFIG: Record<LevelType, TabbarLevelConfig>;
|
|
6
|
-
/**
|
|
7
|
-
* 获取展开配置
|
|
8
|
-
*/
|
|
9
|
-
export declare const getExpandConfig: () => ExpandConfig;
|
|
10
|
-
/**
|
|
11
|
-
* 默认数据项配置
|
|
12
|
-
*/
|
|
13
|
-
export declare const DEFAULT_ITEMS: {
|
|
14
|
-
all: {
|
|
15
|
-
id: string;
|
|
16
|
-
shop_id: number;
|
|
17
|
-
parent_id: number;
|
|
18
|
-
name: any;
|
|
19
|
-
slug: string;
|
|
20
|
-
icon: string;
|
|
21
|
-
};
|
|
22
|
-
search: {
|
|
23
|
-
id: string;
|
|
24
|
-
shop_id: number;
|
|
25
|
-
parent_id: number;
|
|
26
|
-
name: any;
|
|
27
|
-
text: any;
|
|
28
|
-
slug: string;
|
|
29
|
-
key: string;
|
|
30
|
-
icon: string;
|
|
31
|
-
customClick: boolean;
|
|
32
|
-
};
|
|
33
|
-
expand: {
|
|
34
|
-
id: string;
|
|
35
|
-
shop_id: number;
|
|
36
|
-
parent_id: number;
|
|
37
|
-
key: string;
|
|
38
|
-
icon: string;
|
|
39
|
-
name: string;
|
|
40
|
-
slug: string;
|
|
41
|
-
customClick: boolean;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* 获取层级对应的添加项配置
|
|
46
|
-
*/
|
|
47
|
-
export declare const LEVEL_ADD_ITEMS: Record<LevelType, ('all' | 'search' | 'expand')[]>;
|