@pisell/materials 6.12.1 → 6.12.2
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/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +14 -14
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
- package/es/components/drag-sort-tree/index.d.ts +0 -1
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
- package/es/components/pisellInformationEntry/Scan/index.d.ts +0 -1
- package/es/components/pisellInput/components/BankCard/index.d.ts +0 -1
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +8 -1
- package/es/components/pisellSort/index.d.ts +0 -1
- package/es/components/pisellTooltip/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +2 -2
- package/es/components/productCard/components/Packages/utils.d.ts +2 -2
- package/es/components/productCard/lineItem/BookingLineItem.d.ts +1 -0
- package/es/components/productCard/lineItem/components/Holders/index.d.ts +1 -0
- package/es/components/productCard/lineItem/index.d.ts +1 -0
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/es/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/hooks/useResponsive.d.ts +1 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/RecordListWrapper/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Tabs/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +14 -14
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/index.d.ts +0 -1
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +0 -1
- package/lib/components/pisellInput/components/BankCard/index.d.ts +0 -1
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +2 -1
- package/lib/components/pisellSort/index.d.ts +0 -1
- package/lib/components/pisellTooltip/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +2 -2
- package/lib/components/productCard/components/Packages/utils.d.ts +2 -2
- package/lib/components/productCard/lineItem/BookingLineItem.d.ts +1 -0
- package/lib/components/productCard/lineItem/components/Holders/index.d.ts +1 -0
- package/lib/components/productCard/lineItem/index.d.ts +1 -0
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +0 -1
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/hooks/useResponsive.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/platform.d.ts +1 -1
- package/package.json +1 -1
- package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/es/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/es/components/PisellScrollView/components/Actions/index.d.ts +0 -18
- package/es/components/PisellScrollView/hooks/useScrollState.d.ts +0 -13
- package/es/components/PisellScrollView/types.d.ts +0 -203
- package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
- package/es/components/PisellSuperTabs/types.d.ts +0 -212
- package/es/components/PisellTabbar/constants.d.ts +0 -47
- package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
- package/es/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
- package/es/components/PisellTabbar/types.d.ts +0 -92
- package/es/components/PisellTabbar/utils/index.d.ts +0 -69
- package/es/components/SafeAreaTop/index.d.ts +0 -5
- package/es/components/SafeAreaTop/types.d.ts +0 -9
- package/es/components/buttonGroupPreview/index.d.ts +0 -19
- package/es/components/cardPro/index.d.ts +0 -4
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- 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/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/es/components/filter/components/Dropdown/types.d.ts +0 -15
- package/es/components/filter/components/FilterButton/types.d.ts +0 -29
- package/es/components/filter/types.d.ts +0 -52
- package/es/components/keyboard/index.d.ts +0 -22
- package/es/components/pisell-config-provider/context.d.ts +0 -22
- package/es/components/pisell-config-provider/index.d.ts +0 -13
- package/es/components/pisellAdjustPrice/type.d.ts +0 -22
- package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -23
- package/es/components/pisellFloorMapLayout/components/HistoryIcons.d.ts +0 -39
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
- package/es/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.d.ts +0 -25
- package/es/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.d.ts +0 -18
- 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/shopFloorPlanTypes.d.ts +0 -80
- package/es/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
- package/es/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.d.ts +0 -59
- package/es/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -33
- package/es/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -50
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/es/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/es/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/es/components/pisellLookup/components/SearchHistory.d.ts +0 -7
- package/es/components/pisellLookup/types.d.ts +0 -761
- package/es/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.d.ts +0 -8
- package/es/components/pisellMobileDateRangePicker/index.d.ts +0 -2
- package/es/components/pisellMobileDateRangePicker/types.d.ts +0 -28
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +0 -4
- package/es/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -102
- package/es/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarAxis.d.ts +0 -32
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +0 -14
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +0 -18
- package/es/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +0 -2
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.d.ts +0 -8
- package/es/components/pisellReservationSchedule/locales.d.ts +0 -43
- package/es/components/pisellReservationSchedule/types.d.ts +0 -52
- package/es/components/pisellReservationScheduleBand/types.d.ts +0 -68
- package/es/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.d.ts +0 -9
- package/es/components/pisellShellFrame/PisellShellFrame.d.ts +0 -13
- package/es/components/pisellShellFrame/types.d.ts +0 -62
- package/es/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -29
- package/es/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -41
- package/es/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -40
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -37
- package/es/components/pisellTimeNavigator/timeNavigatorConstants.d.ts +0 -20
- package/es/components/pisellTimeNavigator/types.d.ts +0 -175
- package/es/components/pisellTimeNavigator/utils/index.d.ts +0 -79
- package/es/components/pisellTimeRangeDisplay/types.d.ts +0 -145
- package/es/components/pisellToast/squareToast/index.d.ts +0 -15
- package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/es/components/productCard/cartSkuCard/locales.d.ts +0 -203
- package/es/components/productCard/components/Action/index.d.ts +0 -4
- package/es/components/productCard/lineItem/components/Resources/index.d.ts +0 -7
- package/es/components/productCard/lineItem/locales.d.ts +0 -38
- package/es/components/productCard/lineItem/types.d.ts +0 -13
- package/es/components/productCard/locales.d.ts +0 -138
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -96
- package/es/components/select/index.d.ts +0 -9
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
- 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/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
- package/lib/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/lib/components/PisellScrollView/components/Actions/index.d.ts +0 -18
- package/lib/components/PisellScrollView/hooks/useScrollState.d.ts +0 -13
- package/lib/components/PisellScrollView/types.d.ts +0 -203
- package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
- package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
- package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
- package/lib/components/PisellSuperTabs/types.d.ts +0 -212
- package/lib/components/PisellTabbar/constants.d.ts +0 -47
- package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
- package/lib/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
- package/lib/components/PisellTabbar/types.d.ts +0 -92
- package/lib/components/PisellTabbar/utils/index.d.ts +0 -69
- package/lib/components/SafeAreaTop/index.d.ts +0 -5
- package/lib/components/SafeAreaTop/types.d.ts +0 -9
- package/lib/components/buttonGroupPreview/index.d.ts +0 -19
- package/lib/components/cardPro/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
- 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/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
- package/lib/components/filter/components/Dropdown/types.d.ts +0 -15
- package/lib/components/filter/components/FilterButton/types.d.ts +0 -29
- package/lib/components/filter/types.d.ts +0 -52
- package/lib/components/keyboard/index.d.ts +0 -22
- package/lib/components/pisell-config-provider/context.d.ts +0 -22
- package/lib/components/pisell-config-provider/index.d.ts +0 -13
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -23
- package/lib/components/pisellFloorMapLayout/components/HistoryIcons.d.ts +0 -39
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
- package/lib/components/pisellFloorMapLayout/hooks/floorMapViewportPersistence.d.ts +0 -25
- package/lib/components/pisellFloorMapLayout/hooks/useDraftConfigHistory.d.ts +0 -18
- 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/shopFloorPlanTypes.d.ts +0 -80
- package/lib/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
- package/lib/components/pisellFloorMapLayout/utils/floorMapBuiltinShapes.d.ts +0 -59
- package/lib/components/pisellFloorMapLayout/utils/floorMapDropUtils.d.ts +0 -33
- package/lib/components/pisellFloorMapLayout/utils/floorMapElementNameAsTitle.d.ts +0 -50
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/lib/components/pisellLookup/PisellLookup.d.ts +0 -4
- package/lib/components/pisellLookup/components/LookupResultHost.d.ts +0 -7
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
- package/lib/components/pisellLookup/components/SearchHistory.d.ts +0 -7
- package/lib/components/pisellLookup/types.d.ts +0 -761
- package/lib/components/pisellMobileDateRangePicker/PisellMobileDateRangePicker.d.ts +0 -8
- package/lib/components/pisellMobileDateRangePicker/index.d.ts +0 -2
- package/lib/components/pisellMobileDateRangePicker/types.d.ts +0 -28
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarI18n.d.ts +0 -4
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/calendarPersistGuard.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/const/bookingCalendarConstants.d.ts +0 -102
- package/lib/components/pisellRecordBoard/shellFrame/Calendar/utils/bookingCalendarAxis.d.ts +0 -32
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/NoteTicker.d.ts +0 -14
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/ResourceWallViewportToolbar.d.ts +0 -18
- package/lib/components/pisellRecordBoard/shellFrame/ResourceWall/resourceWallConstants.d.ts +0 -2
- package/lib/components/pisellRecordBoard/shellFrame/ToolBar/recordBoardToolBarConstants.d.ts +0 -8
- package/lib/components/pisellReservationSchedule/locales.d.ts +0 -43
- package/lib/components/pisellReservationSchedule/types.d.ts +0 -52
- package/lib/components/pisellReservationScheduleBand/types.d.ts +0 -68
- package/lib/components/pisellReservationScheduleBand/utils/formatScheduleAtLabel.d.ts +0 -9
- package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +0 -13
- package/lib/components/pisellShellFrame/types.d.ts +0 -62
- package/lib/components/pisellTimeNavigator/components/CursorLayer.d.ts +0 -29
- package/lib/components/pisellTimeNavigator/components/GestureLayer.d.ts +0 -41
- package/lib/components/pisellTimeNavigator/components/ScaleLayer.d.ts +0 -40
- package/lib/components/pisellTimeNavigator/hooks/useTimeAxis.d.ts +0 -37
- package/lib/components/pisellTimeNavigator/timeNavigatorConstants.d.ts +0 -20
- package/lib/components/pisellTimeNavigator/types.d.ts +0 -175
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +0 -79
- package/lib/components/pisellTimeRangeDisplay/types.d.ts +0 -145
- package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
- package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
- package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
- package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
- package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -203
- package/lib/components/productCard/components/Action/index.d.ts +0 -4
- package/lib/components/productCard/lineItem/components/Resources/index.d.ts +0 -7
- package/lib/components/productCard/lineItem/locales.d.ts +0 -38
- package/lib/components/productCard/lineItem/types.d.ts +0 -13
- package/lib/components/productCard/locales.d.ts +0 -138
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -96
- package/lib/components/select/index.d.ts +0 -9
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
- package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
- 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
|
@@ -20,7 +20,7 @@ declare const formFieldMap: {
|
|
|
20
20
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
21
21
|
onChange: (value: string) => void;
|
|
22
22
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
23
|
-
rootDomain: "custom" | "
|
|
23
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
24
24
|
customDomain?: string | undefined;
|
|
25
25
|
value?: string | undefined;
|
|
26
26
|
tenantId: string;
|
|
@@ -35,7 +35,7 @@ declare const formFieldMap: {
|
|
|
35
35
|
};
|
|
36
36
|
FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
37
37
|
options?: any;
|
|
38
|
-
optionSourceType?: "
|
|
38
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
39
39
|
labelField: string;
|
|
40
40
|
valueField: string;
|
|
41
41
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -62,7 +62,7 @@ declare const formFieldMap: {
|
|
|
62
62
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
63
63
|
FormItemRecordListWrapper: (props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
64
64
|
options?: any;
|
|
65
|
-
optionSourceType?: "
|
|
65
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
66
66
|
labelField: string;
|
|
67
67
|
valueField: string;
|
|
68
68
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -72,7 +72,7 @@ declare const formFieldMap: {
|
|
|
72
72
|
}) => JSX.Element;
|
|
73
73
|
FormItemTabs: (props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
74
74
|
options?: any;
|
|
75
|
-
optionSourceType?: "
|
|
75
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
76
76
|
labelField: string;
|
|
77
77
|
valueField: string;
|
|
78
78
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -81,13 +81,11 @@ declare const formFieldMap: {
|
|
|
81
81
|
extraParams?: Record<string, any> | undefined;
|
|
82
82
|
}) => JSX.Element;
|
|
83
83
|
};
|
|
84
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("
|
|
84
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
85
85
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
86
86
|
} & {
|
|
87
87
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
88
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> |
|
|
89
|
-
onChange: (value: string) => void;
|
|
90
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
88
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
91
89
|
JSON: import("react").FC<any>;
|
|
92
90
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
93
91
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -100,29 +98,31 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
100
98
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
101
99
|
onChange: (value: string) => void;
|
|
102
100
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
103
|
-
rootDomain: "custom" | "
|
|
101
|
+
rootDomain: "custom" | "xzero" | "saas";
|
|
104
102
|
customDomain?: string | undefined;
|
|
105
103
|
value?: string | undefined;
|
|
106
104
|
tenantId: string;
|
|
107
105
|
name?: string | undefined;
|
|
108
106
|
fieldKey?: string | undefined;
|
|
109
107
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
110
|
-
}) |
|
|
108
|
+
}) | (import("react").FC<{}> & {
|
|
111
109
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
112
110
|
} & {
|
|
113
111
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
114
112
|
}) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
115
113
|
options?: any;
|
|
116
|
-
optionSourceType?: "
|
|
114
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
117
115
|
labelField: string;
|
|
118
116
|
valueField: string;
|
|
119
117
|
extraParams?: Record<string, any> | undefined;
|
|
120
118
|
} & {
|
|
121
119
|
dataSource?: any;
|
|
122
120
|
extraParams?: Record<string, any> | undefined;
|
|
123
|
-
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./
|
|
121
|
+
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
122
|
+
onChange: (value: string) => void;
|
|
123
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("./RecordListWrapper/type").RecordListWrapperProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
124
124
|
options?: any;
|
|
125
|
-
optionSourceType?: "
|
|
125
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
126
126
|
labelField: string;
|
|
127
127
|
valueField: string;
|
|
128
128
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -131,7 +131,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
131
131
|
extraParams?: Record<string, any> | undefined;
|
|
132
132
|
}) => JSX.Element) | ((props: import("./Tabs/type").TabsProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
|
|
133
133
|
options?: any;
|
|
134
|
-
optionSourceType?: "
|
|
134
|
+
optionSourceType?: "default" | "custom" | "api" | undefined;
|
|
135
135
|
labelField: string;
|
|
136
136
|
valueField: string;
|
|
137
137
|
extraParams?: Record<string, any> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const useDataSourceKey: () => {
|
|
3
|
-
dataSourceKey: string |
|
|
4
|
-
dataSourceKeyRef: import("react").MutableRefObject<string |
|
|
3
|
+
dataSourceKey: string | undefined;
|
|
4
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
5
5
|
};
|
|
6
6
|
export default useDataSourceKey;
|
|
@@ -414,6 +414,7 @@ var RecordBoardGridView = (props) => {
|
|
|
414
414
|
infiniteScrollFetching
|
|
415
415
|
]);
|
|
416
416
|
const { summary: _userSummaryOmitted, ...gridTablePropsWithoutSummary } = gridTableProps;
|
|
417
|
+
const tableLoading = gridInfiniteScroll && dataSource.length > 0 ? false : ctx.loading;
|
|
417
418
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
418
419
|
"div",
|
|
419
420
|
{
|
|
@@ -450,7 +451,7 @@ var RecordBoardGridView = (props) => {
|
|
|
450
451
|
scroll: tableScroll,
|
|
451
452
|
rowKey: tableRowKey,
|
|
452
453
|
dataSource: ctx.data ?? [],
|
|
453
|
-
loading:
|
|
454
|
+
loading: tableLoading,
|
|
454
455
|
columns,
|
|
455
456
|
rowSelection,
|
|
456
457
|
pagination: false
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @Author: WangHan
|
|
7
7
|
* @Date: 2024-11-22 10:01
|
|
8
8
|
*/
|
|
9
|
-
export declare const minusSign: (item: any, type?: string) => "" | "
|
|
9
|
+
export declare const minusSign: (item: any, type?: string) => "-" | "";
|
|
10
10
|
/**
|
|
11
11
|
* @title: 金额格式化
|
|
12
12
|
* @description:
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @Author: WangHan
|
|
7
7
|
* @Date: 2024-11-22 10:01
|
|
8
8
|
*/
|
|
9
|
-
export declare const minusSign: (item: any, type?: string) => "" | "
|
|
9
|
+
export declare const minusSign: (item: any, type?: string) => "-" | "";
|
|
10
10
|
/**
|
|
11
11
|
* @title: 金额格式化
|
|
12
12
|
* @description:
|
|
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
|
17
17
|
* @Author: WangHan
|
|
18
18
|
* @Date: 2024-11-22 10:58
|
|
19
19
|
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) =>
|
|
20
|
+
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
|
|
@@ -198,12 +198,12 @@ export declare const fieldList: ({
|
|
|
198
198
|
field_icon: string;
|
|
199
199
|
field_name: string;
|
|
200
200
|
field_type: string;
|
|
201
|
-
default_value:
|
|
201
|
+
default_value: boolean;
|
|
202
202
|
} | {
|
|
203
203
|
field_icon: string;
|
|
204
204
|
field_name: string;
|
|
205
205
|
field_type: string;
|
|
206
|
-
default_value:
|
|
206
|
+
default_value: string;
|
|
207
207
|
} | {
|
|
208
208
|
field_icon: string;
|
|
209
209
|
field_name: string;
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("filters" | "
|
|
158
|
+
}) => ("filters" | "group_by" | "column_setting" | "order_by" | "view_mode" | "gallery_setting" | "filter_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare type ResponsiveConfig = Record<string, number>;
|
|
2
2
|
export declare function configResponsive(config: ResponsiveConfig): void;
|
|
3
|
-
export default function useResponsive(): "
|
|
3
|
+
export default function useResponsive(): "phone" | "pc" | "ipad";
|
|
4
4
|
export {};
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/platform.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isMobile: () =>
|
|
1
|
+
export declare const isMobile: () => boolean;
|
package/package.json
CHANGED
|
@@ -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,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ScrollEventData, PisellScrollViewProps, ScrollActionsConfig } from '../../types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface ActionsContainerProps {
|
|
5
|
-
scrollState: ScrollEventData;
|
|
6
|
-
overflow: PisellScrollViewProps['overflow'];
|
|
7
|
-
scrollActionsConfig: ScrollActionsConfig;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
9
|
-
onClick: (direction: 'left' | 'right' | 'top' | 'bottom') => void;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* ActionsContainer 根据 scrollActionsConfig 渲染滚动辅助操作。
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* <ActionsContainer scrollActionsConfig={{ show: true, type: 'indicator' }} />
|
|
16
|
-
*/
|
|
17
|
-
declare const ActionsContainer: ({ containerRef, scrollState, overflow, scrollActionsConfig, onClick, }: ActionsContainerProps) => JSX.Element | null;
|
|
18
|
-
export default ActionsContainer;
|
|
@@ -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,203 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* 滚动位置配置
|
|
4
|
-
*/
|
|
5
|
-
export interface ScrollPosition {
|
|
6
|
-
/** 竖向滚动位置(像素) */
|
|
7
|
-
scrollTop?: number;
|
|
8
|
-
/** 横向滚动位置(像素) */
|
|
9
|
-
scrollLeft?: number;
|
|
10
|
-
/** 滚动行为 */
|
|
11
|
-
behavior?: 'auto' | 'smooth';
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 滚动到元素配置
|
|
15
|
-
*/
|
|
16
|
-
export interface ScrollToElementConfig {
|
|
17
|
-
/** 目标元素 ID */
|
|
18
|
-
targetId: string;
|
|
19
|
-
/** 对齐方式 */
|
|
20
|
-
align?: 'start' | 'center' | 'end' | 'nearest';
|
|
21
|
-
/** 滚动行为 */
|
|
22
|
-
behavior?: 'auto' | 'smooth';
|
|
23
|
-
/** 偏移量 */
|
|
24
|
-
offset?: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* 滚动百分比配置
|
|
28
|
-
*/
|
|
29
|
-
export interface ScrollPercentage {
|
|
30
|
-
/** 竖向滚动百分比 (0-100) */
|
|
31
|
-
percentY?: number;
|
|
32
|
-
/** 横向滚动百分比 (0-100) */
|
|
33
|
-
percentX?: number;
|
|
34
|
-
/** 滚动行为 */
|
|
35
|
-
behavior?: 'auto' | 'smooth';
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* 滚动按钮配置
|
|
39
|
-
*/
|
|
40
|
-
export interface ScrollActionsConfig {
|
|
41
|
-
show?: boolean;
|
|
42
|
-
/** 按钮类型 */
|
|
43
|
-
type: "backTop" | "rArrows" | "lrArrows" | "tbArrows" | "indicator" | "custom";
|
|
44
|
-
style?: CSSProperties;
|
|
45
|
-
scrollDistance?: number;
|
|
46
|
-
/** 按钮配置 根据type不同,配置不同 */
|
|
47
|
-
config?: any;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* 滚动事件数据
|
|
51
|
-
*/
|
|
52
|
-
export interface ScrollEventData {
|
|
53
|
-
/** 当前滚动位置 */
|
|
54
|
-
scrollTop: number;
|
|
55
|
-
scrollLeft: number;
|
|
56
|
-
/** 滚动百分比 */
|
|
57
|
-
percentY: number;
|
|
58
|
-
percentX: number;
|
|
59
|
-
/** 可滚动高度/宽度 */
|
|
60
|
-
scrollHeight: number;
|
|
61
|
-
scrollWidth: number;
|
|
62
|
-
/** 容器尺寸 */
|
|
63
|
-
clientHeight: number;
|
|
64
|
-
clientWidth: number;
|
|
65
|
-
/** 滚动方向 */
|
|
66
|
-
direction: 'up' | 'down' | 'left' | 'right' | null;
|
|
67
|
-
/** 是否滚动到顶部 */
|
|
68
|
-
isScrollToTop: boolean;
|
|
69
|
-
/** 是否滚动到底部 */
|
|
70
|
-
isScrollToBottom: boolean;
|
|
71
|
-
/** 是否滚动到左边 */
|
|
72
|
-
isScrollToLeft: boolean;
|
|
73
|
-
/** 是否滚动到右边 */
|
|
74
|
-
isScrollToRight: boolean;
|
|
75
|
-
/** 是否已经产生滚动条 */
|
|
76
|
-
isOverflows: boolean;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* 视图监听配置
|
|
80
|
-
*/
|
|
81
|
-
export interface IntersectionConfig {
|
|
82
|
-
/** 是否启用视图监听 */
|
|
83
|
-
enabled?: boolean;
|
|
84
|
-
/** 交叉阈值 (0-1) */
|
|
85
|
-
threshold?: number | number[];
|
|
86
|
-
/** 根边距 */
|
|
87
|
-
rootMargin?: string;
|
|
88
|
-
/** 元素进入视图回调 */
|
|
89
|
-
onEnterViewport?: (entry: IntersectionObserverEntry, element: Element) => void;
|
|
90
|
-
/** 元素离开视图回调 */
|
|
91
|
-
onLeaveViewport?: (entry: IntersectionObserverEntry, element: Element) => void;
|
|
92
|
-
/** 可见度变化回调 */
|
|
93
|
-
onVisibilityChange?: (entry: IntersectionObserverEntry, element: Element) => void;
|
|
94
|
-
/** 需要监听的元素选择器 */
|
|
95
|
-
targetSelector?: string;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* 吸附滚动配置
|
|
99
|
-
*/
|
|
100
|
-
export interface SnapScrollConfig {
|
|
101
|
-
/** 是否启用吸附滚动 */
|
|
102
|
-
enabled?: boolean;
|
|
103
|
-
/** 吸附类型 */
|
|
104
|
-
type?: 'mandatory' | 'proximity';
|
|
105
|
-
/** 吸附对齐方式 */
|
|
106
|
-
align?: 'start' | 'center' | 'end';
|
|
107
|
-
/** 吸附开始回调 */
|
|
108
|
-
onSnapStart?: (targetIndex: number, targetPosition: number) => void;
|
|
109
|
-
/** 吸附结束回调 */
|
|
110
|
-
onSnapEnd?: (currentIndex: number, currentPosition: number) => void;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* PisellScrollView 组件 Props
|
|
114
|
-
*/
|
|
115
|
-
export interface PisellScrollViewProps {
|
|
116
|
-
/** 子元素 */
|
|
117
|
-
children?: ReactNode;
|
|
118
|
-
/** 自定义类名 */
|
|
119
|
-
className?: string;
|
|
120
|
-
/** 自定义样式 */
|
|
121
|
-
style?: CSSProperties;
|
|
122
|
-
/** 滚动方向 */
|
|
123
|
-
overflow?: 'auto' | 'scroll' | 'hidden' | 'x' | 'y' | 'both';
|
|
124
|
-
/** 滚动条样式 */
|
|
125
|
-
scrollbarStyle?: 'default' | 'thin' | 'minimal' | 'rounded' | 'overlay' | 'custom' | 'none';
|
|
126
|
-
/** 自定义滚动条类名(当 scrollbarStyle 为 'custom' 时使用) */
|
|
127
|
-
scrollbarClassName?: string;
|
|
128
|
-
/** 是否显示滚动按钮 */
|
|
129
|
-
showScrollButtons?: boolean;
|
|
130
|
-
/** 箭头操作 */
|
|
131
|
-
scrollActionsConfig?: ScrollActionsConfig;
|
|
132
|
-
/** 滚动时触发 */
|
|
133
|
-
onScroll?: (data: ScrollEventData) => void;
|
|
134
|
-
/** 开始滚动时触发 */
|
|
135
|
-
onScrollStart?: (data: ScrollEventData) => void;
|
|
136
|
-
/** 滚动结束时触发(防抖延迟,默认 150ms) */
|
|
137
|
-
onScrollEnd?: (data: ScrollEventData) => void;
|
|
138
|
-
/** 滚动结束防抖延迟时间(ms) */
|
|
139
|
-
scrollEndDelay?: number;
|
|
140
|
-
/** 到达顶部时触发 */
|
|
141
|
-
onReachTop?: (data: ScrollEventData) => void;
|
|
142
|
-
/** 到达底部时触发 */
|
|
143
|
-
onReachBottom?: (data: ScrollEventData) => void;
|
|
144
|
-
/** 到达左边时触发 */
|
|
145
|
-
onReachLeft?: (data: ScrollEventData) => void;
|
|
146
|
-
/** 到达右边时触发 */
|
|
147
|
-
onReachRight?: (data: ScrollEventData) => void;
|
|
148
|
-
/** 边界阈值(到达边界的像素阈值) */
|
|
149
|
-
reachThreshold?: number;
|
|
150
|
-
/** IntersectionObserver 配置 */
|
|
151
|
-
intersection?: IntersectionConfig;
|
|
152
|
-
/** 吸附滚动配置 */
|
|
153
|
-
snapScroll?: SnapScrollConfig;
|
|
154
|
-
/** 容器宽度 */
|
|
155
|
-
width?: number | string;
|
|
156
|
-
/** 容器高度 */
|
|
157
|
-
height?: number | string;
|
|
158
|
-
/** 最大宽度 */
|
|
159
|
-
maxWidth?: number | string;
|
|
160
|
-
/** 最大高度 */
|
|
161
|
-
maxHeight?: number | string;
|
|
162
|
-
/** 最小宽度 */
|
|
163
|
-
minWidth?: number | string;
|
|
164
|
-
/** 最小高度 */
|
|
165
|
-
minHeight?: number | string;
|
|
166
|
-
/** Ref 引用 */
|
|
167
|
-
ref?: React.Ref<PisellScrollViewRef>;
|
|
168
|
-
/** 设计模式 */
|
|
169
|
-
__designMode?: boolean;
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* 组件暴露的方法
|
|
173
|
-
*/
|
|
174
|
-
export interface PisellScrollViewRef {
|
|
175
|
-
/** 滚动到指定位置 */
|
|
176
|
-
scrollTo: (position: ScrollPosition) => void;
|
|
177
|
-
/** 滚动到指定元素 */
|
|
178
|
-
scrollToElement: (config: ScrollToElementConfig) => void;
|
|
179
|
-
/** 滚动到百分比位置 */
|
|
180
|
-
scrollToPercentage: (percentage: ScrollPercentage) => void;
|
|
181
|
-
/** 滚动到顶部 */
|
|
182
|
-
scrollToTop: (behavior?: 'auto' | 'smooth') => void;
|
|
183
|
-
/** 滚动到底部 */
|
|
184
|
-
scrollToBottom: (behavior?: 'auto' | 'smooth') => void;
|
|
185
|
-
/** 滚动到最左侧 */
|
|
186
|
-
scrollToLeft: (behavior?: 'auto' | 'smooth') => void;
|
|
187
|
-
/** 滚动到最右侧 */
|
|
188
|
-
scrollToRight: (behavior?: 'auto' | 'smooth') => void;
|
|
189
|
-
/** 获取当前滚动信息 */
|
|
190
|
-
getScrollData: () => ScrollEventData;
|
|
191
|
-
/** 获取滚动容器 DOM 元素 */
|
|
192
|
-
getScrollContainer: () => HTMLElement | null;
|
|
193
|
-
/** 滚动到指定吸附点(索引) */
|
|
194
|
-
scrollToSnapPoint: (index: number, behavior?: 'auto' | 'smooth') => void;
|
|
195
|
-
/** 获取所有吸附点位置 */
|
|
196
|
-
getSnapPoints: () => number[];
|
|
197
|
-
/** 获取当前吸附点索引 */
|
|
198
|
-
getCurrentSnapIndex: () => number;
|
|
199
|
-
/** 滚动到下一个吸附点 */
|
|
200
|
-
scrollToNextSnap: (behavior?: 'auto' | 'smooth') => void;
|
|
201
|
-
/** 滚动到上一个吸附点 */
|
|
202
|
-
scrollToPrevSnap: (behavior?: 'auto' | 'smooth') => void;
|
|
203
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './PisellSteps.less';
|
|
3
|
-
import type { PisellStepsProps } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* PisellSteps 步骤条组件
|
|
6
|
-
*
|
|
7
|
-
* 基于 Ant Design Steps 组件进行二次封装和增强
|
|
8
|
-
* 支持多种展示样式、布局方式和丰富的交互功能
|
|
9
|
-
*
|
|
10
|
-
* @author Pisell Team
|
|
11
|
-
* @version 1.0.0
|
|
12
|
-
*/
|
|
13
|
-
declare const PisellSteps: React.FC<PisellStepsProps>;
|
|
14
|
-
export default PisellSteps;
|
|
@@ -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;
|