@pisell/materials 6.11.239 → 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/PisellTabbar/template/Template1/PisellTabbar.d.ts +2 -0
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +47 -22
- 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/PisellTabbar/template/Template1/PisellTabbar.d.ts +2 -0
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +71 -35
- 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 -119
- 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 -119
- 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,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,119 +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
|
-
paddingLeft?: number;
|
|
54
|
-
/** 卡片圆角;未传时使用模板默认值 */
|
|
55
|
-
borderRadius?: number | string;
|
|
56
|
-
/** 卡片文字对齐方式;未传时居中 */
|
|
57
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
58
|
-
/** 是否展示分类数据中的 icon */
|
|
59
|
-
showIcon?: boolean;
|
|
60
|
-
/** 分类图标尺寸 */
|
|
61
|
-
iconSize?: number;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* 展开配置
|
|
65
|
-
*/
|
|
66
|
-
export interface ExpandConfig {
|
|
67
|
-
/** 激活状态配置 */
|
|
68
|
-
active: {
|
|
69
|
-
icon: string;
|
|
70
|
-
text: string;
|
|
71
|
-
};
|
|
72
|
-
/** 未激活状态配置 */
|
|
73
|
-
inactive: {
|
|
74
|
-
icon: string;
|
|
75
|
-
text: string;
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* 展开状态
|
|
80
|
-
*/
|
|
81
|
-
export interface ExpandState {
|
|
82
|
-
level1: boolean;
|
|
83
|
-
level2: boolean;
|
|
84
|
-
level3: boolean;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* 层级类型
|
|
88
|
-
*/
|
|
89
|
-
export declare type LevelType = 'level1' | 'level2' | 'level3';
|
|
90
|
-
/**
|
|
91
|
-
* PisellTabbar 组件属性
|
|
92
|
-
*/
|
|
93
|
-
export interface PisellTabbarProps {
|
|
94
|
-
/** 数据源 */
|
|
95
|
-
dataSource?: TabbarDataSource[];
|
|
96
|
-
/** 当前选中的值(多层级 key 数组) */
|
|
97
|
-
value?: (string | number)[];
|
|
98
|
-
/** 值变化回调 */
|
|
99
|
-
onChange?: (value: (string | number)[]) => void;
|
|
100
|
-
/** 自定义类名 */
|
|
101
|
-
className?: string;
|
|
102
|
-
/** 自定义样式 */
|
|
103
|
-
style?: CSSProperties;
|
|
104
|
-
/** 层级配置(可按层级自定义) */
|
|
105
|
-
levelConfig?: Partial<Record<LevelType, Partial<TabbarLevelConfig>>>;
|
|
106
|
-
/** 展开配置 */
|
|
107
|
-
expandConfig?: ExpandConfig;
|
|
108
|
-
/** 最大层级数 */
|
|
109
|
-
maxLevel?: 1 | 2 | 3;
|
|
110
|
-
onSearch?: (value: string) => void;
|
|
111
|
-
/** 透传给内部 PisellFind 的搜索配置(如 inputRender 插槽)。 */
|
|
112
|
-
searchProps?: Record<string, any>;
|
|
113
|
-
/** 追加在一级分类末尾、且不参与分类选中态的操作卡片。 */
|
|
114
|
-
level1Actions?: TabbarActionItem[];
|
|
115
|
-
__designMode?: boolean;
|
|
116
|
-
}
|
|
117
|
-
export interface PisellTabbarRef {
|
|
118
|
-
closeSearchMode: () => void;
|
|
119
|
-
}
|
|
@@ -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;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EditableItemLayer - 编辑态图元层:拖拽、缩放、选中、吸附
|
|
3
|
-
*/
|
|
4
|
-
import React, { type CSSProperties } from 'react';
|
|
5
|
-
import type { FloorMapItemBase, FloorMapMergedItem, FloorMapRenderOptions } from '../types';
|
|
6
|
-
import { type AlignGuide } from '../utils/alignSnap';
|
|
7
|
-
import { type FloorMapEditQuickActionLabels } from './FloorMapEditQuickActions';
|
|
8
|
-
import './EditableItemLayer.less';
|
|
9
|
-
export interface EditableItemLayerProps<T extends FloorMapItemBase = FloorMapMergedItem> {
|
|
10
|
-
items: T[];
|
|
11
|
-
renderItem: (item: T, index: number, options?: FloorMapRenderOptions) => React.ReactNode;
|
|
12
|
-
rowKey?: string | ((item: T, index: number) => string);
|
|
13
|
-
cellSize: number;
|
|
14
|
-
itemUnit?: 'cell' | 'pixel';
|
|
15
|
-
itemGap?: number;
|
|
16
|
-
contentWidth: number;
|
|
17
|
-
contentHeight: number;
|
|
18
|
-
/** 内容区 X/Y 偏移(画布包围盒向左/上扩展时,图元层整体平移) */
|
|
19
|
-
contentOffsetX?: number;
|
|
20
|
-
contentOffsetY?: number;
|
|
21
|
-
selectedId: string | null;
|
|
22
|
-
onSelect: (id: string | null) => void;
|
|
23
|
-
onUpdateItem: (itemId: string, patch: Partial<{
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
width: number;
|
|
27
|
-
height: number;
|
|
28
|
-
}>) => void;
|
|
29
|
-
/**
|
|
30
|
-
* 一次提交多个图元的坐标变更(选区分组拖拽时整组落库),用于一步撤销。
|
|
31
|
-
* 未传时分组拖拽降级为不落库(仅预览)。
|
|
32
|
-
*/
|
|
33
|
-
onUpdateItemsBatch?: (patches: Array<{
|
|
34
|
-
id: string;
|
|
35
|
-
patch: Partial<{
|
|
36
|
-
x: number;
|
|
37
|
-
y: number;
|
|
38
|
-
width: number;
|
|
39
|
-
height: number;
|
|
40
|
-
}>;
|
|
41
|
-
}>) => void;
|
|
42
|
-
snapStep?: number;
|
|
43
|
-
/** 画布当前缩放,用于将屏幕位移转为内容位移 */
|
|
44
|
-
scale?: number;
|
|
45
|
-
/** 拖拽/缩放图元时通知父组件,用于禁用画布平移,避免松手时画布跟着动 */
|
|
46
|
-
onInteractionChange?: (active: boolean) => void;
|
|
47
|
-
/**
|
|
48
|
-
* 拖拽/缩放过程中的像素矩形(内容坐标),用于 EdgeLayer 实时重算连线。
|
|
49
|
-
* itemId 为 null 表示结束交互。
|
|
50
|
-
*/
|
|
51
|
-
onLiveRectChange?: (itemId: string | null, rect: {
|
|
52
|
-
left: number;
|
|
53
|
-
top: number;
|
|
54
|
-
width: number;
|
|
55
|
-
height: number;
|
|
56
|
-
} | null) => void;
|
|
57
|
-
/**
|
|
58
|
-
* 选区分组拖拽过程中,选区与全部成员的实时像素矩形(内容坐标),用于 EdgeLayer 重算连线。
|
|
59
|
-
* 传 null 表示结束分组交互。
|
|
60
|
-
*/
|
|
61
|
-
onLiveRectsChange?: (rects: Record<string, {
|
|
62
|
-
left: number;
|
|
63
|
-
top: number;
|
|
64
|
-
width: number;
|
|
65
|
-
height: number;
|
|
66
|
-
}> | null) => void;
|
|
67
|
-
/**
|
|
68
|
-
* 对齐阈值(屏幕像素,组件内会按 scale 折算到内容坐标)。
|
|
69
|
-
* 0 或负数关闭对齐。
|
|
70
|
-
*/
|
|
71
|
-
alignSnapThresholdPx?: number;
|
|
72
|
-
/** 命中的对齐辅助线变化;交互结束时回调一次空数组 */
|
|
73
|
-
onAlignGuidesChange?: (guides: AlignGuide[]) => void;
|
|
74
|
-
/** 对齐辅助线颜色(推荐用主题 token `alignGuideStroke`) */
|
|
75
|
-
alignGuideStroke?: string;
|
|
76
|
-
/** 每项外层容器额外样式(与定位样式合并) */
|
|
77
|
-
getMergedItemWrapperStyle?: (item: T, index: number) => CSSProperties | undefined;
|
|
78
|
-
className?: string;
|
|
79
|
-
/** 编辑态选中时图元旁快捷栏(上锁 / 复制 / 删除) */
|
|
80
|
-
editQuickBar?: {
|
|
81
|
-
labels: FloorMapEditQuickActionLabels;
|
|
82
|
-
isLocked: boolean;
|
|
83
|
-
onToggleLock: () => void;
|
|
84
|
-
onDuplicate: () => void;
|
|
85
|
-
onDelete: () => void;
|
|
86
|
-
} | null;
|
|
87
|
-
}
|
|
88
|
-
export declare function EditableItemLayer<T extends FloorMapItemBase>(props: EditableItemLayerProps<T>): React.JSX.Element;
|
|
89
|
-
export default EditableItemLayer;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FloorMapEditPanel - 选中图元后的编辑面板:画布属性 + 可选数据绑定 + 数据源记录表单
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import type { FloorMapEditPanelParams, FloorMapViewConfig, FloorMapDataSources } from '../types';
|
|
6
|
-
import './FloorMapEditPanel.less';
|
|
7
|
-
export interface FloorMapEditPanelProps extends FloorMapEditPanelParams {
|
|
8
|
-
config: FloorMapViewConfig;
|
|
9
|
-
dataSources: FloorMapDataSources;
|
|
10
|
-
savingRecord?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function FloorMapEditPanel(props: FloorMapEditPanelProps): React.JSX.Element;
|
|
14
|
-
export default FloorMapEditPanel;
|