@pisell/materials 6.11.107 → 6.11.109
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/Pagination/index.d.ts +0 -1
- package/es/components/PisellTabbar/constants.d.ts +47 -0
- package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
- package/es/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/es/components/PisellTabbar/types.d.ts +90 -0
- package/es/components/PisellTabbar/utils/index.d.ts +69 -0
- package/es/components/SafeAreaTop/index.d.ts +5 -0
- package/es/components/SafeAreaTop/types.d.ts +9 -0
- package/es/components/appVersionControl/index.d.ts +0 -1
- package/es/components/buttonGroupPreview/index.js +2 -1
- package/es/components/cardPro/index.d.ts +3 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/es/components/filter/components/Dropdown/types.d.ts +15 -0
- package/es/components/filter/components/FilterButton/types.d.ts +29 -0
- package/es/components/filter/types.d.ts +52 -0
- package/es/components/iconfont/index.d.ts +8 -0
- package/es/components/page/index.d.ts +0 -1
- package/es/components/pisell-config-provider/context.d.ts +22 -0
- package/es/components/pisellAdjustPrice/index.d.ts +0 -1
- package/es/components/pisellAdjustPrice/status.d.ts +32 -0
- package/es/components/pisellAdjustPrice/type.d.ts +22 -0
- package/es/components/pisellFilter/index.d.ts +0 -1
- package/es/components/pisellFilter/type.d.ts +7 -0
- package/es/components/pisellFind/index.d.ts +34 -12
- package/es/components/pisellFind/index.js +114 -18
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +6 -1
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +6 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +24 -18
- package/es/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.js +4 -6
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/es/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/es/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
- package/es/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/es/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/es/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/es/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/es/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +4 -2
- package/es/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/es/components/pisellShellFrame/types.d.ts +62 -0
- package/es/components/pisellToast/squareToast/index.d.ts +15 -0
- package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/es/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
- package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.js +3 -14
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.less +2 -3
- package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +6 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +4 -11
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -8
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/resources/index.less +4 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/specs/index.js +5 -1
- package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -24
- package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/weighing/index.js +1 -4
- package/es/components/productCard/cartSkuCard/components/weighing/index.less +2 -10
- package/es/components/productCard/cartSkuCard/index.less +0 -2
- package/es/components/productCard/cartSkuCard/locales.d.ts +203 -0
- package/es/components/productCard/components/Action/index.d.ts +3 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
- package/es/components/productCard/components/Header/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Sales/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
- package/es/components/productCard/lineItem/BookingLineItem.d.ts +3 -1
- package/es/components/productCard/lineItem/BookingLineItem.js +39 -21
- package/es/components/productCard/lineItem/components/Holders/index.d.ts +9 -0
- package/es/components/productCard/lineItem/components/Holders/index.js +74 -0
- package/es/components/productCard/lineItem/components/Holders/index.less +39 -0
- package/es/components/productCard/lineItem/components/TimeRange/index.d.ts +0 -1
- package/es/components/productCard/lineItem/index.d.ts +11 -7
- package/es/components/productCard/lineItem/index.js +89 -27
- package/es/components/productCard/lineItem/index.less +40 -3
- package/es/components/productCard/lineItem/locales.d.ts +23 -0
- package/es/components/productCard/lineItem/types.d.ts +4 -0
- package/es/components/productCard/locales.d.ts +138 -0
- package/es/components/productCard/types.d.ts +1 -0
- package/es/components/select/index.d.ts +9 -0
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/table/BasicTable/index.d.ts +0 -1
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/es/hooks/useResponsive.d.ts +1 -1
- package/es/locales/en-US.d.ts +565 -0
- package/es/locales/ja.d.ts +533 -0
- package/es/locales/pt.d.ts +533 -0
- package/es/locales/zh-CN.d.ts +560 -0
- package/es/locales/zh-TW.d.ts +560 -0
- package/lib/components/Pagination/index.d.ts +0 -1
- package/lib/components/PisellTabbar/constants.d.ts +47 -0
- package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
- package/lib/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/lib/components/PisellTabbar/types.d.ts +90 -0
- package/lib/components/PisellTabbar/utils/index.d.ts +69 -0
- package/lib/components/SafeAreaTop/index.d.ts +5 -0
- package/lib/components/SafeAreaTop/types.d.ts +9 -0
- package/lib/components/appVersionControl/index.d.ts +0 -1
- package/lib/components/buttonGroupPreview/index.js +2 -1
- package/lib/components/cardPro/index.d.ts +3 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
- package/lib/components/filter/components/Dropdown/types.d.ts +15 -0
- package/lib/components/filter/components/FilterButton/types.d.ts +29 -0
- package/lib/components/filter/types.d.ts +52 -0
- package/lib/components/iconfont/index.d.ts +8 -0
- package/lib/components/page/index.d.ts +0 -1
- package/lib/components/pisell-config-provider/context.d.ts +22 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
- package/lib/components/pisellFilter/index.d.ts +0 -1
- package/lib/components/pisellFilter/type.d.ts +7 -0
- package/lib/components/pisellFind/index.d.ts +34 -12
- package/lib/components/pisellFind/index.js +80 -5
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +6 -1
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +6 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +36 -17
- package/lib/components/pisellFloorMapLayout/shopFloorPlan/shopFloorPlanClient.js +3 -5
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.d.ts +6 -0
- package/lib/components/pisellHierarchicalSummaryList/PisellHierarchicalSummaryList.stories.d.ts +10 -0
- package/lib/components/pisellHierarchicalSummaryList/components/Row.d.ts +35 -0
- package/lib/components/pisellHierarchicalSummaryList/components/index.d.ts +1 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/index.d.ts +2 -0
- package/lib/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.d.ts +15 -0
- package/lib/components/pisellHierarchicalSummaryList/index.d.ts +5 -0
- package/lib/components/pisellHierarchicalSummaryList/types.d.ts +248 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellLookup/PisellLookup.d.ts +4 -0
- package/lib/components/pisellLookup/components/LookupResultHost.d.ts +7 -0
- package/lib/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
- package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +1 -1
- package/lib/components/pisellShellFrame/PisellShellFrame.d.ts +13 -0
- package/lib/components/pisellShellFrame/types.d.ts +62 -0
- package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
- package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
- package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
- package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.js +2 -11
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.less +2 -3
- package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +6 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +10 -22
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -8
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +4 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +11 -1
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -24
- package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/weighing/index.js +4 -6
- package/lib/components/productCard/cartSkuCard/components/weighing/index.less +2 -10
- package/lib/components/productCard/cartSkuCard/index.less +0 -2
- package/lib/components/productCard/cartSkuCard/locales.d.ts +203 -0
- package/lib/components/productCard/components/Action/index.d.ts +3 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
- package/lib/components/productCard/components/Header/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Sales/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
- package/lib/components/productCard/lineItem/BookingLineItem.d.ts +3 -1
- package/lib/components/productCard/lineItem/BookingLineItem.js +40 -48
- package/lib/components/productCard/lineItem/components/Holders/index.d.ts +9 -0
- package/lib/components/productCard/lineItem/components/Holders/index.js +83 -0
- package/lib/components/productCard/lineItem/components/Holders/index.less +39 -0
- package/lib/components/productCard/lineItem/components/TimeRange/index.d.ts +0 -1
- package/lib/components/productCard/lineItem/index.d.ts +11 -7
- package/lib/components/productCard/lineItem/index.js +63 -21
- package/lib/components/productCard/lineItem/index.less +40 -3
- package/lib/components/productCard/lineItem/locales.d.ts +23 -0
- package/lib/components/productCard/lineItem/types.d.ts +4 -0
- package/lib/components/productCard/locales.d.ts +138 -0
- package/lib/components/productCard/types.d.ts +1 -0
- package/lib/components/select/index.d.ts +9 -0
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/table/BasicTable/index.d.ts +0 -1
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
- package/lib/hooks/useResponsive.d.ts +1 -1
- package/lib/locales/en-US.d.ts +565 -0
- package/lib/locales/ja.d.ts +533 -0
- package/lib/locales/pt.d.ts +533 -0
- package/lib/locales/zh-CN.d.ts +560 -0
- package/lib/locales/zh-TW.d.ts +560 -0
- package/lowcode/pisell-find/meta.ts +19 -0
- package/package.json +1 -1
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -7
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/es/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/es/components/PisellScrollView/components/Actions/index.d.ts +0 -18
- package/es/components/PisellScrollView/types.d.ts +0 -203
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/login-and-register/index.d.ts +0 -82
- package/es/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -23
- package/es/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
- package/es/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/es/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/es/components/pisellGridPro/index.d.ts +0 -4
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
- package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -7
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
- package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
- package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
- package/lib/components/PisellScrollView/PisellScrollView.d.ts +0 -5
- package/lib/components/PisellScrollView/components/Actions/index.d.ts +0 -18
- package/lib/components/PisellScrollView/types.d.ts +0 -203
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/login-and-register/index.d.ts +0 -82
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditQuickActions.d.ts +0 -23
- package/lib/components/pisellFloorMapLayout/floorMapLayoutConstants.d.ts +0 -35
- package/lib/components/pisellFloorMapLayout/utils/alignSnap.d.ts +0 -64
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerDisplay.d.ts +0 -27
- package/lib/components/pisellFloorMapLayout/utils/floorMapResourcePickerTypes.d.ts +0 -109
- package/lib/components/pisellGridPro/index.d.ts +0 -4
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { PisellBasicCardProps } from '../../types';
|
|
3
|
-
import { PisellImageCardProps } from '../PisellImageCard/types';
|
|
4
|
-
/**
|
|
5
|
-
* 样式变体类型
|
|
6
|
-
*/
|
|
7
|
-
export declare type GraphicTextCardVariant = 'vertical-image' | 'vertical-icon' | 'horizontal' | 'card';
|
|
8
|
-
/**
|
|
9
|
-
* 尺寸类型
|
|
10
|
-
*/
|
|
11
|
-
export declare type GraphicTextCardSize = 'small' | 'default' | 'large';
|
|
12
|
-
/**
|
|
13
|
-
* 宽度模式
|
|
14
|
-
*/
|
|
15
|
-
export declare type GraphicTextCardWidthMode = 'auto' | 'fixed' | 'full';
|
|
16
|
-
/**
|
|
17
|
-
* 图形区域配置
|
|
18
|
-
*/
|
|
19
|
-
export interface GraphicConfig extends PisellImageCardProps {
|
|
20
|
-
hidden?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* 图形区域宽度(单位:px)
|
|
23
|
-
* 如不设置,将根据 variant 和 size 自动计算
|
|
24
|
-
*/
|
|
25
|
-
width?: number;
|
|
26
|
-
/**
|
|
27
|
-
* 图形区域高度(单位:px)
|
|
28
|
-
* 如不设置,将根据 variant 和 size 自动计算
|
|
29
|
-
*/
|
|
30
|
-
height?: number;
|
|
31
|
-
/**
|
|
32
|
-
* 图形区域圆角
|
|
33
|
-
*/
|
|
34
|
-
borderRadius?: number | string;
|
|
35
|
-
/**
|
|
36
|
-
* 图形区域背景色
|
|
37
|
-
*/
|
|
38
|
-
background?: string;
|
|
39
|
-
/**
|
|
40
|
-
* 图形区域边框
|
|
41
|
-
*/
|
|
42
|
-
border?: string;
|
|
43
|
-
/**
|
|
44
|
-
* 图形区域阴影
|
|
45
|
-
*/
|
|
46
|
-
boxShadow?: string;
|
|
47
|
-
/**
|
|
48
|
-
* 图形区域内边距
|
|
49
|
-
*/
|
|
50
|
-
padding?: number | string;
|
|
51
|
-
/**
|
|
52
|
-
* 图标大小(当使用 icon 时有效,单位:px)
|
|
53
|
-
*/
|
|
54
|
-
iconSize?: number;
|
|
55
|
-
/**
|
|
56
|
-
* 图标颜色(当使用 icon 时有效)
|
|
57
|
-
*/
|
|
58
|
-
iconColor?: string;
|
|
59
|
-
/**
|
|
60
|
-
* 自定义样式
|
|
61
|
-
*/
|
|
62
|
-
style?: CSSProperties;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* 角标类型
|
|
66
|
-
*/
|
|
67
|
-
export declare type BadgeType = 'dot' | 'number' | 'text';
|
|
68
|
-
/**
|
|
69
|
-
* 角标位置
|
|
70
|
-
*/
|
|
71
|
-
export declare type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
72
|
-
/**
|
|
73
|
-
* 角标配置
|
|
74
|
-
*/
|
|
75
|
-
export interface BadgeConfig {
|
|
76
|
-
/**
|
|
77
|
-
* 角标类型
|
|
78
|
-
* @default 'dot'
|
|
79
|
-
*/
|
|
80
|
-
type?: BadgeType;
|
|
81
|
-
/**
|
|
82
|
-
* 角标内容(数字或文本)
|
|
83
|
-
* 当 type 为 'number' 或 'text' 时有效
|
|
84
|
-
*/
|
|
85
|
-
content?: ReactNode;
|
|
86
|
-
/**
|
|
87
|
-
* 角标位置
|
|
88
|
-
* @default 'top-right'
|
|
89
|
-
*/
|
|
90
|
-
position?: BadgePosition;
|
|
91
|
-
/**
|
|
92
|
-
* 角标偏移量 [x, y]
|
|
93
|
-
* 正数向右/下偏移,负数向左/上偏移
|
|
94
|
-
*/
|
|
95
|
-
offset?: [number, number];
|
|
96
|
-
/**
|
|
97
|
-
* 角标颜色
|
|
98
|
-
*/
|
|
99
|
-
color?: string;
|
|
100
|
-
/**
|
|
101
|
-
* 角标自定义样式
|
|
102
|
-
*/
|
|
103
|
-
style?: CSSProperties;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* 文本配置
|
|
107
|
-
*/
|
|
108
|
-
export interface TextConfig {
|
|
109
|
-
/**
|
|
110
|
-
* 字体大小(单位:px)
|
|
111
|
-
*/
|
|
112
|
-
fontSize?: number;
|
|
113
|
-
/**
|
|
114
|
-
* 字体粗细
|
|
115
|
-
*/
|
|
116
|
-
fontWeight?: string | number;
|
|
117
|
-
/**
|
|
118
|
-
* 文本颜色
|
|
119
|
-
*/
|
|
120
|
-
color?: string;
|
|
121
|
-
/**
|
|
122
|
-
* 最大显示行数
|
|
123
|
-
* @default 1
|
|
124
|
-
*/
|
|
125
|
-
maxLines?: number;
|
|
126
|
-
/**
|
|
127
|
-
* 是否显示省略号
|
|
128
|
-
* @default true
|
|
129
|
-
*/
|
|
130
|
-
ellipsis?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* 文本对齐方式
|
|
133
|
-
* @default 'left'
|
|
134
|
-
*/
|
|
135
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* GraphicTextCard 组件 Props
|
|
139
|
-
* 基于 PisellBasicCardProps 扩展
|
|
140
|
-
* 注意:重写 onClick 为可选属性
|
|
141
|
-
*/
|
|
142
|
-
export interface GraphicTextCardProps extends Omit<PisellBasicCardProps, 'onClick'> {
|
|
143
|
-
/**
|
|
144
|
-
* 卡片显示的文本内容(必填)
|
|
145
|
-
*/
|
|
146
|
-
text: ReactNode;
|
|
147
|
-
/**
|
|
148
|
-
* 卡片样式变体
|
|
149
|
-
* @default 'vertical-image'
|
|
150
|
-
*/
|
|
151
|
-
variant?: GraphicTextCardVariant;
|
|
152
|
-
/**
|
|
153
|
-
* 卡片尺寸
|
|
154
|
-
* @default 'default'
|
|
155
|
-
*/
|
|
156
|
-
size?: GraphicTextCardSize;
|
|
157
|
-
/**
|
|
158
|
-
* 是否可点击
|
|
159
|
-
* @default true
|
|
160
|
-
*/
|
|
161
|
-
clickable?: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* 图片地址
|
|
164
|
-
* 与 icon 二选一,优先使用 image
|
|
165
|
-
*/
|
|
166
|
-
image?: string;
|
|
167
|
-
/**
|
|
168
|
-
* 图标
|
|
169
|
-
* 支持 ReactNode(如 antd Icon、svg 等)或图标 URL
|
|
170
|
-
* 与 image 二选一
|
|
171
|
-
*/
|
|
172
|
-
icon?: ReactNode;
|
|
173
|
-
/**
|
|
174
|
-
* 图形区域配置
|
|
175
|
-
* 用于自定义图形区域的样式和尺寸
|
|
176
|
-
*/
|
|
177
|
-
graphicConfig?: GraphicConfig;
|
|
178
|
-
/**
|
|
179
|
-
* 图形区域插槽
|
|
180
|
-
* 用于完全自定义图形区域,优先级高于 image 和 icon
|
|
181
|
-
*/
|
|
182
|
-
graphicSlot?: ReactNode;
|
|
183
|
-
/**
|
|
184
|
-
* 角标配置
|
|
185
|
-
* 用于显示红点、数字或文本提示
|
|
186
|
-
*/
|
|
187
|
-
badge?: BadgeConfig;
|
|
188
|
-
/**
|
|
189
|
-
* 前置插槽
|
|
190
|
-
* 用于在图形区域前添加自定义内容
|
|
191
|
-
*/
|
|
192
|
-
prefixSlot?: ReactNode;
|
|
193
|
-
/**
|
|
194
|
-
* 后置插槽
|
|
195
|
-
* 用于在文本内容后添加自定义内容
|
|
196
|
-
*/
|
|
197
|
-
suffixSlot?: ReactNode;
|
|
198
|
-
/**
|
|
199
|
-
* 文本配置
|
|
200
|
-
* 用于自定义文本样式和显示行为
|
|
201
|
-
*/
|
|
202
|
-
textConfig?: TextConfig;
|
|
203
|
-
/**
|
|
204
|
-
* 宽度模式
|
|
205
|
-
* - auto: 内容撑满,最大宽度 maxWidth
|
|
206
|
-
* - fixed: 固定宽度 width
|
|
207
|
-
* - full: 撑满父容器
|
|
208
|
-
* @default 'auto'
|
|
209
|
-
*/
|
|
210
|
-
widthMode?: GraphicTextCardWidthMode;
|
|
211
|
-
/**
|
|
212
|
-
* 固定宽度值
|
|
213
|
-
* 当 widthMode='fixed' 时有效
|
|
214
|
-
*/
|
|
215
|
-
width?: number | string;
|
|
216
|
-
/**
|
|
217
|
-
* 最大宽度
|
|
218
|
-
* 当 widthMode='auto' 时有效
|
|
219
|
-
* @default 400
|
|
220
|
-
*/
|
|
221
|
-
maxWidth?: number | string;
|
|
222
|
-
/**
|
|
223
|
-
* 点击事件
|
|
224
|
-
* 当 clickable=true 且不在 disabled/loading 状态时触发
|
|
225
|
-
* 注意:PisellBasicCardProps 中的 onClick 是必填的,这里重新定义为可选
|
|
226
|
-
*/
|
|
227
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
228
|
-
/**
|
|
229
|
-
* 自定义渲染函数
|
|
230
|
-
* 完全自定义组件的渲染内容
|
|
231
|
-
* 当提供此函数时,组件内置的渲染逻辑将被忽略
|
|
232
|
-
*/
|
|
233
|
-
render?: (props: GraphicTextCardProps) => ReactNode;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* GraphicArea 组件 Props
|
|
237
|
-
* 图形区域子组件
|
|
238
|
-
*/
|
|
239
|
-
export interface GraphicAreaProps {
|
|
240
|
-
/**
|
|
241
|
-
* 图片地址
|
|
242
|
-
*/
|
|
243
|
-
image?: string;
|
|
244
|
-
/**
|
|
245
|
-
* 图标内容
|
|
246
|
-
*/
|
|
247
|
-
icon?: ReactNode;
|
|
248
|
-
/**
|
|
249
|
-
* 图形配置
|
|
250
|
-
*/
|
|
251
|
-
config?: GraphicConfig;
|
|
252
|
-
/**
|
|
253
|
-
* 自定义类名
|
|
254
|
-
*/
|
|
255
|
-
className?: string;
|
|
256
|
-
aliWidth?: number;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* TextContent 组件 Props
|
|
260
|
-
* 文本内容子组件
|
|
261
|
-
*/
|
|
262
|
-
export interface TextContentProps {
|
|
263
|
-
/**
|
|
264
|
-
* 文本内容
|
|
265
|
-
*/
|
|
266
|
-
text: ReactNode;
|
|
267
|
-
/**
|
|
268
|
-
* 文本配置
|
|
269
|
-
*/
|
|
270
|
-
textConfig?: TextConfig;
|
|
271
|
-
/**
|
|
272
|
-
* 自定义类名
|
|
273
|
-
*/
|
|
274
|
-
className?: string;
|
|
275
|
-
active: PisellBasicCardProps['active'];
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* BadgeWrapper 组件 Props
|
|
279
|
-
* 角标包装子组件
|
|
280
|
-
*/
|
|
281
|
-
export interface BadgeWrapperProps {
|
|
282
|
-
/**
|
|
283
|
-
* 角标配置
|
|
284
|
-
*/
|
|
285
|
-
badge?: BadgeConfig;
|
|
286
|
-
/**
|
|
287
|
-
* 子元素
|
|
288
|
-
*/
|
|
289
|
-
children: ReactNode;
|
|
290
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BadgeWrapperProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* BadgeWrapper 角标包装组件
|
|
5
|
-
* 负责角标的渲染和定位,支持红点、数字、文本三种类型
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* // 红点角标
|
|
10
|
-
* <BadgeWrapper badge={{ type: 'dot' }}>
|
|
11
|
-
* <TextCard text="Item" />
|
|
12
|
-
* </BadgeWrapper>
|
|
13
|
-
*
|
|
14
|
-
* // 数字角标
|
|
15
|
-
* <BadgeWrapper badge={{ type: 'number', content: 99 }}>
|
|
16
|
-
* <TextCard text="Item" />
|
|
17
|
-
* </BadgeWrapper>
|
|
18
|
-
*
|
|
19
|
-
* // 文本角标
|
|
20
|
-
* <BadgeWrapper badge={{ type: 'text', content: 'New' }}>
|
|
21
|
-
* <TextCard text="Item" />
|
|
22
|
-
* </BadgeWrapper>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare const BadgeWrapper: React.FC<BadgeWrapperProps>;
|
|
26
|
-
export default BadgeWrapper;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TextContentProps } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* TextContent 文本内容组件
|
|
5
|
-
* 负责渲染主文本内容,处理文本省略逻辑
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <TextContent
|
|
10
|
-
* text="这是一段很长的文本内容"
|
|
11
|
-
* textConfig={{
|
|
12
|
-
* maxLines: 2,
|
|
13
|
-
* ellipsis: true,
|
|
14
|
-
* fontSize: 14,
|
|
15
|
-
* color: '#333'
|
|
16
|
-
* }}
|
|
17
|
-
* />
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
declare const TextContent: React.FC<TextContentProps>;
|
|
21
|
-
export default TextContent;
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { PisellBasicCardProps } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* 样式变体类型
|
|
5
|
-
*/
|
|
6
|
-
export declare type TextCardVariant = 'text' | 'filled' | 'outlined' | 'light' | 'gradient' | 'dashed';
|
|
7
|
-
/**
|
|
8
|
-
* 尺寸类型
|
|
9
|
-
*/
|
|
10
|
-
export declare type TextCardSize = 'small' | 'default' | 'large';
|
|
11
|
-
/**
|
|
12
|
-
* 宽度模式
|
|
13
|
-
*/
|
|
14
|
-
export declare type TextCardWidthMode = 'auto' | 'fixed' | 'full';
|
|
15
|
-
/**
|
|
16
|
-
* 图标配置
|
|
17
|
-
*/
|
|
18
|
-
export interface IconConfig {
|
|
19
|
-
/**
|
|
20
|
-
* 图标大小(单位:px)
|
|
21
|
-
*/
|
|
22
|
-
size?: number;
|
|
23
|
-
/**
|
|
24
|
-
* 图标颜色
|
|
25
|
-
*/
|
|
26
|
-
color?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* 标签配置
|
|
30
|
-
*/
|
|
31
|
-
export interface TagConfig {
|
|
32
|
-
/**
|
|
33
|
-
* 标签颜色
|
|
34
|
-
*/
|
|
35
|
-
color?: string;
|
|
36
|
-
/**
|
|
37
|
-
* 标签自定义样式
|
|
38
|
-
*/
|
|
39
|
-
style?: CSSProperties;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* 角标类型
|
|
43
|
-
*/
|
|
44
|
-
export declare type BadgeType = 'dot' | 'number' | 'text';
|
|
45
|
-
/**
|
|
46
|
-
* 角标位置
|
|
47
|
-
*/
|
|
48
|
-
export declare type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
49
|
-
/**
|
|
50
|
-
* 角标配置
|
|
51
|
-
*/
|
|
52
|
-
export interface BadgeConfig {
|
|
53
|
-
/**
|
|
54
|
-
* 角标类型
|
|
55
|
-
* @default 'dot'
|
|
56
|
-
*/
|
|
57
|
-
type?: BadgeType;
|
|
58
|
-
/**
|
|
59
|
-
* 角标内容(数字或文本)
|
|
60
|
-
* 当 type 为 'number' 或 'text' 时有效
|
|
61
|
-
*/
|
|
62
|
-
content?: ReactNode;
|
|
63
|
-
/**
|
|
64
|
-
* 角标位置
|
|
65
|
-
* @default 'top-right'
|
|
66
|
-
*/
|
|
67
|
-
position?: BadgePosition;
|
|
68
|
-
/**
|
|
69
|
-
* 角标偏移量 [x, y]
|
|
70
|
-
* 正数向右/下偏移,负数向左/上偏移
|
|
71
|
-
*/
|
|
72
|
-
offset?: [number, number];
|
|
73
|
-
/**
|
|
74
|
-
* 角标颜色
|
|
75
|
-
*/
|
|
76
|
-
color?: string;
|
|
77
|
-
/**
|
|
78
|
-
* 角标自定义样式
|
|
79
|
-
*/
|
|
80
|
-
style?: CSSProperties;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* 文本配置
|
|
84
|
-
*/
|
|
85
|
-
export interface TextConfig {
|
|
86
|
-
/**
|
|
87
|
-
* 字体大小(单位:px)
|
|
88
|
-
*/
|
|
89
|
-
fontSize?: number;
|
|
90
|
-
/**
|
|
91
|
-
* 字体粗细
|
|
92
|
-
*/
|
|
93
|
-
fontWeight?: string | number;
|
|
94
|
-
/**
|
|
95
|
-
* 文本颜色
|
|
96
|
-
*/
|
|
97
|
-
color?: string;
|
|
98
|
-
/**
|
|
99
|
-
* 最大显示行数
|
|
100
|
-
* @default 1
|
|
101
|
-
*/
|
|
102
|
-
maxLines?: number;
|
|
103
|
-
/**
|
|
104
|
-
* 是否显示省略号
|
|
105
|
-
* @default true
|
|
106
|
-
*/
|
|
107
|
-
ellipsis?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* 文本对齐方式
|
|
110
|
-
* @default 'left'
|
|
111
|
-
*/
|
|
112
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
113
|
-
flex?: string;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* TextCard 组件 Props
|
|
117
|
-
* 基于 PisellBasicCardProps 扩展
|
|
118
|
-
* 注意:重写 onClick 为可选属性
|
|
119
|
-
*/
|
|
120
|
-
export interface TextCardProps extends Omit<PisellBasicCardProps, 'onClick'> {
|
|
121
|
-
/**
|
|
122
|
-
* 卡片显示的文本内容(必填)
|
|
123
|
-
*/
|
|
124
|
-
text: ReactNode;
|
|
125
|
-
/**
|
|
126
|
-
* 卡片样式变体
|
|
127
|
-
* @default 'text'
|
|
128
|
-
*/
|
|
129
|
-
variant?: TextCardVariant;
|
|
130
|
-
/**
|
|
131
|
-
* 卡片尺寸
|
|
132
|
-
* @default 'default'
|
|
133
|
-
*/
|
|
134
|
-
size?: TextCardSize;
|
|
135
|
-
/**
|
|
136
|
-
* 是否可点击
|
|
137
|
-
* @default true
|
|
138
|
-
*/
|
|
139
|
-
clickable?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* 前置图标
|
|
142
|
-
* 支持 ReactNode(如 antd Icon、svg 等)
|
|
143
|
-
*/
|
|
144
|
-
prefixIcon?: ReactNode;
|
|
145
|
-
/**
|
|
146
|
-
* 后置图标
|
|
147
|
-
* 支持 ReactNode(如 antd Icon、svg 等)
|
|
148
|
-
*/
|
|
149
|
-
suffixIcon?: ReactNode;
|
|
150
|
-
/**
|
|
151
|
-
* 图标配置
|
|
152
|
-
* 统一配置前置和后置图标的大小和颜色
|
|
153
|
-
*/
|
|
154
|
-
iconConfig?: IconConfig;
|
|
155
|
-
/**
|
|
156
|
-
* 后置标签
|
|
157
|
-
* 支持 ReactNode(如 antd Tag、Badge 等)
|
|
158
|
-
*/
|
|
159
|
-
tag?: ReactNode;
|
|
160
|
-
/**
|
|
161
|
-
* 标签配置
|
|
162
|
-
*/
|
|
163
|
-
tagConfig?: TagConfig;
|
|
164
|
-
/**
|
|
165
|
-
* 角标配置
|
|
166
|
-
* 用于显示红点、数字或文本提示
|
|
167
|
-
*/
|
|
168
|
-
badge?: BadgeConfig;
|
|
169
|
-
/**
|
|
170
|
-
* 前置插槽
|
|
171
|
-
* 用于替换前置图标,优先级高于 prefixIcon
|
|
172
|
-
*/
|
|
173
|
-
prefixSlot?: ReactNode;
|
|
174
|
-
/**
|
|
175
|
-
* 后置插槽
|
|
176
|
-
* 用于替换后置图标和标签,优先级高于 suffixIcon 和 tag
|
|
177
|
-
*/
|
|
178
|
-
suffixSlot?: ReactNode;
|
|
179
|
-
/**
|
|
180
|
-
* 文本配置
|
|
181
|
-
* 用于自定义文本样式和显示行为
|
|
182
|
-
*/
|
|
183
|
-
textConfig?: TextConfig;
|
|
184
|
-
/**
|
|
185
|
-
* 宽度模式
|
|
186
|
-
* - auto: 内容撑满,最大宽度 maxWidth
|
|
187
|
-
* - fixed: 固定宽度 width
|
|
188
|
-
* - full: 撑满父容器,最小宽度 28px
|
|
189
|
-
* @default 'auto'
|
|
190
|
-
*/
|
|
191
|
-
widthMode?: TextCardWidthMode;
|
|
192
|
-
/**
|
|
193
|
-
* 固定宽度值
|
|
194
|
-
* 当 widthMode='fixed' 时有效
|
|
195
|
-
*/
|
|
196
|
-
width?: number | string;
|
|
197
|
-
/**
|
|
198
|
-
* 最大宽度
|
|
199
|
-
* 当 widthMode='auto' 时有效
|
|
200
|
-
* @default 400
|
|
201
|
-
*/
|
|
202
|
-
maxWidth?: number | string;
|
|
203
|
-
/**
|
|
204
|
-
* 点击事件
|
|
205
|
-
* 当 clickable=true 且不在 disabled/loading 状态时触发
|
|
206
|
-
* 注意:PisellBasicCardProps 中的 onClick 是必填的,这里重新定义为可选
|
|
207
|
-
*/
|
|
208
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
209
|
-
/**
|
|
210
|
-
* 自定义渲染函数
|
|
211
|
-
* 完全自定义组件的渲染内容
|
|
212
|
-
* 当提供此函数时,组件内置的渲染逻辑将被忽略
|
|
213
|
-
*/
|
|
214
|
-
render?: (props: TextCardProps) => ReactNode;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* TextContent 组件 Props
|
|
218
|
-
* 文本内容子组件
|
|
219
|
-
*/
|
|
220
|
-
export interface TextContentProps {
|
|
221
|
-
/**
|
|
222
|
-
* 文本内容
|
|
223
|
-
*/
|
|
224
|
-
text: ReactNode;
|
|
225
|
-
/**
|
|
226
|
-
* 文本配置
|
|
227
|
-
*/
|
|
228
|
-
textConfig?: TextConfig;
|
|
229
|
-
/**
|
|
230
|
-
* 自定义类名
|
|
231
|
-
*/
|
|
232
|
-
className?: string;
|
|
233
|
-
active?: PisellBasicCardProps['active'];
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* IconWrapper 组件 Props
|
|
237
|
-
* 图标包装子组件
|
|
238
|
-
*/
|
|
239
|
-
export interface IconWrapperProps {
|
|
240
|
-
/**
|
|
241
|
-
* 图标内容
|
|
242
|
-
*/
|
|
243
|
-
icon: ReactNode;
|
|
244
|
-
/**
|
|
245
|
-
* 图标配置
|
|
246
|
-
*/
|
|
247
|
-
config?: IconConfig;
|
|
248
|
-
/**
|
|
249
|
-
* 图标位置
|
|
250
|
-
*/
|
|
251
|
-
position: 'prefix' | 'suffix';
|
|
252
|
-
/**
|
|
253
|
-
* 自定义类名
|
|
254
|
-
*/
|
|
255
|
-
className?: string;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* BadgeWrapper 组件 Props
|
|
259
|
-
* 角标包装子组件
|
|
260
|
-
*/
|
|
261
|
-
export interface BadgeWrapperProps {
|
|
262
|
-
/**
|
|
263
|
-
* 角标配置
|
|
264
|
-
*/
|
|
265
|
-
badge?: BadgeConfig;
|
|
266
|
-
/**
|
|
267
|
-
* 子元素
|
|
268
|
-
*/
|
|
269
|
-
children: ReactNode;
|
|
270
|
-
}
|
|
@@ -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;
|