@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,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')[]>;
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 一级 Tabbar 操作项。
|
|
4
|
-
*
|
|
5
|
-
* 操作项复用一级卡片样式,但点击时不进入分类选中态。
|
|
6
|
-
*/
|
|
7
|
-
export interface TabbarActionItem {
|
|
8
|
-
/** 唯一标识 */
|
|
9
|
-
key: string | number;
|
|
10
|
-
/** 卡片图标 */
|
|
11
|
-
icon: ReactNode;
|
|
12
|
-
/** 可选的卡片文案;未传时只显示图标 */
|
|
13
|
-
label?: ReactNode;
|
|
14
|
-
/** 无障碍名称 */
|
|
15
|
-
ariaLabel: string;
|
|
16
|
-
/** 点击回调 */
|
|
17
|
-
onClick: () => void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Tabbar 数据源项类型
|
|
21
|
-
*/
|
|
22
|
-
export interface TabbarDataSource {
|
|
23
|
-
/** 唯一标识 */
|
|
24
|
-
id: string | number;
|
|
25
|
-
/** 店铺ID */
|
|
26
|
-
shop_id?: number;
|
|
27
|
-
/** 父级ID */
|
|
28
|
-
parent_id?: number;
|
|
29
|
-
/** 显示名称 */
|
|
30
|
-
name: string;
|
|
31
|
-
/** URL slug */
|
|
32
|
-
slug?: string;
|
|
33
|
-
/** 图标 URL 或图标名称 */
|
|
34
|
-
icon?: string;
|
|
35
|
-
/** 子级数据 */
|
|
36
|
-
children?: TabbarDataSource[];
|
|
37
|
-
/** 自定义点击事件标识 */
|
|
38
|
-
customClick?: boolean;
|
|
39
|
-
/** 唯一 key */
|
|
40
|
-
key?: string;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* 层级配置
|
|
44
|
-
*/
|
|
45
|
-
export interface TabbarLevelConfig {
|
|
46
|
-
/** SuperTabs 背景色 */
|
|
47
|
-
superTabsBg: string;
|
|
48
|
-
/** 卡片宽度 */
|
|
49
|
-
cardWidth: number;
|
|
50
|
-
/** 卡片高度 */
|
|
51
|
-
cardHeight: number;
|
|
52
|
-
/** 卡片背景色;未传时使用模板默认白色 */
|
|
53
|
-
cardBackground?: string;
|
|
54
|
-
/** 卡片选中背景色;未传时使用模板默认紫色 */
|
|
55
|
-
activeBackground?: string;
|
|
56
|
-
/** 左侧缩进 */
|
|
57
|
-
paddingLeft?: number;
|
|
58
|
-
/** 卡片圆角;未传时使用模板默认值 */
|
|
59
|
-
borderRadius?: number | string;
|
|
60
|
-
/** 卡片文字对齐方式;未传时居中 */
|
|
61
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
62
|
-
/** 是否展示分类数据中的 icon */
|
|
63
|
-
showIcon?: boolean;
|
|
64
|
-
/** 分类图标尺寸 */
|
|
65
|
-
iconSize?: number;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* 展开配置
|
|
69
|
-
*/
|
|
70
|
-
export interface ExpandConfig {
|
|
71
|
-
/** 激活状态配置 */
|
|
72
|
-
active: {
|
|
73
|
-
icon: string;
|
|
74
|
-
text: string;
|
|
75
|
-
};
|
|
76
|
-
/** 未激活状态配置 */
|
|
77
|
-
inactive: {
|
|
78
|
-
icon: string;
|
|
79
|
-
text: string;
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* 展开状态
|
|
84
|
-
*/
|
|
85
|
-
export interface ExpandState {
|
|
86
|
-
level1: boolean;
|
|
87
|
-
level2: boolean;
|
|
88
|
-
level3: boolean;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* 层级类型
|
|
92
|
-
*/
|
|
93
|
-
export declare type LevelType = 'level1' | 'level2' | 'level3';
|
|
94
|
-
/**
|
|
95
|
-
* PisellTabbar 组件属性
|
|
96
|
-
*/
|
|
97
|
-
export interface PisellTabbarProps {
|
|
98
|
-
/** 数据源 */
|
|
99
|
-
dataSource?: TabbarDataSource[];
|
|
100
|
-
/** 当前选中的值(多层级 key 数组) */
|
|
101
|
-
value?: (string | number)[];
|
|
102
|
-
/** 值变化回调 */
|
|
103
|
-
onChange?: (value: (string | number)[]) => void;
|
|
104
|
-
/** 自定义类名 */
|
|
105
|
-
className?: string;
|
|
106
|
-
/** 自定义样式 */
|
|
107
|
-
style?: CSSProperties;
|
|
108
|
-
/** 层级配置(可按层级自定义) */
|
|
109
|
-
levelConfig?: Partial<Record<LevelType, Partial<TabbarLevelConfig>>>;
|
|
110
|
-
/** 展开配置 */
|
|
111
|
-
expandConfig?: ExpandConfig;
|
|
112
|
-
/** 最大层级数 */
|
|
113
|
-
maxLevel?: 1 | 2 | 3;
|
|
114
|
-
onSearch?: (value: string) => void;
|
|
115
|
-
/** 透传给内部 PisellFind 的搜索配置(如 inputRender 插槽)。 */
|
|
116
|
-
searchProps?: Record<string, any>;
|
|
117
|
-
/** 追加在一级分类末尾、且不参与分类选中态的操作卡片。 */
|
|
118
|
-
level1Actions?: TabbarActionItem[];
|
|
119
|
-
__designMode?: boolean;
|
|
120
|
-
}
|
|
121
|
-
export interface PisellTabbarRef {
|
|
122
|
-
closeSearchMode: () => void;
|
|
123
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MenuProps, ButtonProps } from 'antd';
|
|
3
|
-
export interface ButtonGroupListItemProps {
|
|
4
|
-
id?: string;
|
|
5
|
-
isMore?: boolean;
|
|
6
|
-
menuData?: MenuProps['items'];
|
|
7
|
-
buttonProps?: ButtonProps;
|
|
8
|
-
}
|
|
9
|
-
interface ButtonConfigProps {
|
|
10
|
-
[id: string]: ButtonGroupListItemProps;
|
|
11
|
-
}
|
|
12
|
-
export declare type ButtonGroupListProps = ButtonGroupListItemProps[][];
|
|
13
|
-
interface ButtonGroupPreviewProps {
|
|
14
|
-
buttonConfig?: ButtonConfigProps;
|
|
15
|
-
buttonGroupList?: ButtonGroupListProps;
|
|
16
|
-
updateButtonProps?: ButtonGroupListItemProps;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonGroupPreviewProps & React.RefAttributes<any>>>;
|
|
19
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModeType } from "../../dataSourceForm/type";
|
|
3
|
-
export interface TranslationValue {
|
|
4
|
-
en: string;
|
|
5
|
-
'zh-CN': string;
|
|
6
|
-
'zh-HK': string;
|
|
7
|
-
'ja': string;
|
|
8
|
-
'pt': string;
|
|
9
|
-
original: string;
|
|
10
|
-
}
|
|
11
|
-
export interface TranslationProps {
|
|
12
|
-
renderMode: ModeType;
|
|
13
|
-
value?: TranslationValue;
|
|
14
|
-
onChange?: (value: TranslationValue) => void;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
className?: string;
|
|
18
|
-
type?: 'text' | 'textarea';
|
|
19
|
-
maxLength?: number;
|
|
20
|
-
inputStyle?: React.CSSProperties;
|
|
21
|
-
allowClear?: boolean;
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PisellFloorMapLayout - 空间布局视图
|
|
3
|
-
* 支持两种用法:1) 仅传入 items + renderItem(原有用法);2) 传入 floorMapConfig + dataSources + mode 使用平面图视图(含多画布/编辑态)
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { FloorMapItemBase, PisellFloorMapLayoutProps, PisellFloorMapLayoutRef } from './types';
|
|
7
|
-
import './PisellFloorMapLayout.less';
|
|
8
|
-
/** 空间布局根组件:阅读/编辑、列表与平面图双模式,ref 见 {@link PisellFloorMapLayoutRef} */
|
|
9
|
-
declare const PisellFloorMapLayout: <T extends FloorMapItemBase = FloorMapItemBase>(props: PisellFloorMapLayoutProps<T> & {
|
|
10
|
-
ref?: React.Ref<PisellFloorMapLayoutRef | null> | undefined;
|
|
11
|
-
}) => React.ReactElement;
|
|
12
|
-
export { PisellFloorMapLayout };
|
|
13
|
-
export default PisellFloorMapLayout;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CanvasTabs - 多画布 Tab,支持切换、动态添加、删除与重命名(编辑态)
|
|
3
|
-
* - 展示名:可选 `nameKey` + `locales.getText`,否则用 `name`(字符串或多语言对象)
|
|
4
|
-
* - 角标:可选 `tabBadge` 或由布局层注入合并后的数量
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import type { FloorMapCanvas, FloorMapCanvasNameI18n } from '../types';
|
|
8
|
-
import './CanvasTabs.less';
|
|
9
|
-
export interface CanvasTabsProps {
|
|
10
|
-
/** 画布列表 */
|
|
11
|
-
canvases: FloorMapCanvas[];
|
|
12
|
-
/** 当前画布 id */
|
|
13
|
-
currentCanvasId: string | null;
|
|
14
|
-
/** 切换画布 */
|
|
15
|
-
onTabChange: (canvasId: string) => void;
|
|
16
|
-
/** 是否允许添加/删除/重命名画布(编辑态) */
|
|
17
|
-
canEdit?: boolean;
|
|
18
|
-
/** 添加画布 */
|
|
19
|
-
onAddCanvas?: () => void;
|
|
20
|
-
/** 删除画布(至少保留一个画布时可调用) */
|
|
21
|
-
onRemoveCanvas?: (canvasId: string) => void;
|
|
22
|
-
/** 重命名画布(对象写入 `name`,并清除 `nameKey`) */
|
|
23
|
-
onRenameCanvas?: (canvasId: string, name: string | FloorMapCanvasNameI18n) => void;
|
|
24
|
-
className?: string;
|
|
25
|
-
}
|
|
26
|
-
export declare function CanvasTabs(props: CanvasTabsProps): React.JSX.Element;
|
|
27
|
-
export default CanvasTabs;
|