@pisell/materials 1.0.998 → 1.0.999
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 +13 -13
- package/build/lowcode/assets-dev.json +4 -4
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +20 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +21 -21
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +163 -0
- package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.js +1041 -0
- package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +18 -7
- package/es/components/PisellCards/components/TextCard/TextCard.js +1 -2
- package/es/components/PisellCards/components/TextCard/TextCard.stories.d.ts +183 -0
- package/es/components/PisellCards/components/TextCard/TextCard.stories.js +1024 -0
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +1 -0
- package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.js +17 -8
- package/es/components/PisellCards/components/TextCard/components/TextContent.js +1 -1
- package/es/components/PisellCards/components/TextCard/types.d.ts +14 -7
- package/es/components/PisellSuperTabs/PisellSuperTabs.js +1 -1
- package/es/components/PisellTabbar/constants.d.ts +4 -4
- package/es/components/PisellTabbar/constants.js +5 -5
- package/es/components/PisellTabbar/index.d.ts +2 -0
- package/es/components/PisellTabbar/index.js +2 -0
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +20 -0
- package/es/components/PisellTabbar/template/Template1/PisellTabbar.js +427 -0
- package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/es/components/PisellTabbar/template/Template1/constants.js +33 -0
- package/es/components/PisellTabbar/template/Template1/index.d.ts +6 -0
- package/es/components/PisellTabbar/template/Template1/index.js +7 -0
- package/es/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
- package/es/components/PisellTabbar/template/Template1/utils/index.js +96 -0
- package/es/components/PisellTabbar/utils/index.d.ts +33 -0
- package/es/components/PisellTabbar/utils/index.js +3 -2
- package/es/components/auto-complete-number/index.d.ts +0 -1
- package/es/components/badge/index.d.ts +0 -1
- package/es/components/batch-editor/fields/index.d.ts +0 -1
- package/es/components/batch-editor/index.d.ts +0 -1
- package/es/components/calendar/index.d.ts +0 -1
- package/es/components/cardPro/index.d.ts +0 -1
- package/es/components/checkbox/index.d.ts +0 -1
- package/es/components/classicLayout/index.d.ts +0 -1
- package/es/components/colorPicker/index.d.ts +0 -1
- package/es/components/config-provider/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
- package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +10 -10
- package/es/components/date-picker/datePickerCpt.d.ts +0 -1
- package/es/components/date-picker/index.d.ts +0 -1
- package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
- package/es/components/dropdown/index.d.ts +0 -1
- package/es/components/filter/components/items/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/es/components/filter/components/items/text/index.d.ts +0 -1
- package/es/components/filter/index.d.ts +0 -1
- package/es/components/list/index.d.ts +0 -1
- package/es/components/lowCodePage/index.d.ts +0 -1
- package/es/components/media/index.d.ts +18 -0
- package/es/components/media/index.js +340 -0
- package/es/components/media/index.less +100 -0
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/es/components/pisellAdjustPrice/index.d.ts +0 -1
- package/es/components/pisellCard/index.d.ts +0 -1
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
- package/es/components/pisellDatePicker/index.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/Copy/index.d.ts +0 -1
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
- package/es/components/pisellInput/index.d.ts +0 -1
- package/es/components/pisellLoading/index.d.ts +0 -1
- package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/es/components/pisellModal/components/index.d.ts +0 -1
- package/es/components/pisellTooltip/index.d.ts +0 -1
- package/es/components/pisellUpload/index.d.ts +0 -1
- package/es/components/pisellVHFix/index.d.ts +13 -0
- package/es/components/pisellVHFix/index.js +36 -0
- package/es/components/pisellVHFix/index.less +10 -0
- package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
- 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/resources/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- package/es/components/productCard/components/Action/index.d.ts +0 -1
- package/es/components/productCard/components/Divider/index.d.ts +0 -1
- package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
- package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
- package/es/components/productCard/components/Note/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
- package/es/components/productCard/components/Packages/index.d.ts +0 -1
- package/es/components/productCard/components/Sales/index.d.ts +0 -1
- package/es/components/productCard/components/Time/components/Like/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/qrcode/index.d.ts +0 -1
- package/es/components/radio/index.d.ts +0 -1
- package/es/components/segmented/index.d.ts +0 -1
- package/es/components/select-time/RightPanel/index.d.ts +0 -1
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/skeleton/index.d.ts +0 -1
- package/es/components/slider/index.d.ts +0 -1
- package/es/components/sort/components/InlineMenu/index.d.ts +0 -1
- 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/GalleryItem/components/RenderFields/index.d.ts +0 -1
- package/es/components/table/Summary/index.d.ts +0 -1
- package/es/components/table/Table/SelectField/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/date/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/index.d.ts +2 -3
- package/es/components/table/Table/fields/link/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/link/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/number/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/search/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/select/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/text/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/es/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/es/components/table/TableFilter/SortIcon.d.ts +0 -1
- package/es/components/time-picker/index.d.ts +0 -1
- package/es/components/upload/index.d.ts +0 -1
- package/es/components/versionSelect/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
- package/es/components/walletCard/Guest/index.d.ts +0 -1
- package/es/components/walletCard/Guide/index.d.ts +0 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.d.ts +163 -0
- package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.js +870 -0
- package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +18 -7
- package/lib/components/PisellCards/components/TextCard/TextCard.js +0 -1
- package/lib/components/PisellCards/components/TextCard/TextCard.stories.d.ts +183 -0
- package/lib/components/PisellCards/components/TextCard/TextCard.stories.js +653 -0
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +1 -0
- package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.js +8 -4
- package/lib/components/PisellCards/components/TextCard/components/TextContent.js +1 -1
- package/lib/components/PisellCards/components/TextCard/types.d.ts +14 -7
- package/lib/components/PisellSuperTabs/PisellSuperTabs.js +2 -2
- package/lib/components/PisellTabbar/constants.d.ts +4 -4
- package/lib/components/PisellTabbar/constants.js +5 -5
- package/lib/components/PisellTabbar/index.d.ts +2 -0
- package/lib/components/PisellTabbar/index.js +6 -0
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.d.ts +20 -0
- package/lib/components/PisellTabbar/template/Template1/PisellTabbar.js +436 -0
- package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
- package/lib/components/PisellTabbar/template/Template1/constants.js +60 -0
- package/lib/components/PisellTabbar/template/Template1/index.d.ts +6 -0
- package/lib/components/PisellTabbar/template/Template1/index.js +36 -0
- package/lib/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
- package/lib/components/PisellTabbar/template/Template1/utils/index.js +68 -0
- package/lib/components/PisellTabbar/utils/index.d.ts +33 -0
- package/lib/components/PisellTabbar/utils/index.js +4 -1
- package/lib/components/auto-complete-number/index.d.ts +0 -1
- package/lib/components/badge/index.d.ts +0 -1
- package/lib/components/batch-editor/fields/index.d.ts +0 -1
- package/lib/components/batch-editor/index.d.ts +0 -1
- package/lib/components/calendar/index.d.ts +0 -1
- package/lib/components/cardPro/index.d.ts +0 -1
- package/lib/components/checkbox/index.d.ts +0 -1
- package/lib/components/classicLayout/index.d.ts +0 -1
- package/lib/components/colorPicker/index.d.ts +0 -1
- package/lib/components/config-provider/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
- package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +10 -10
- package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
- package/lib/components/date-picker/index.d.ts +0 -1
- package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -1
- package/lib/components/dropdown/index.d.ts +0 -1
- package/lib/components/filter/components/items/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
- package/lib/components/filter/components/items/text/index.d.ts +0 -1
- package/lib/components/filter/index.d.ts +0 -1
- package/lib/components/list/index.d.ts +0 -1
- package/lib/components/lowCodePage/index.d.ts +0 -1
- package/lib/components/media/index.d.ts +18 -0
- package/lib/components/media/index.js +265 -0
- package/lib/components/media/index.less +100 -0
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -1
- package/lib/components/pisellCard/index.d.ts +0 -1
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +0 -1
- package/lib/components/pisellDatePicker/index.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/Copy/index.d.ts +0 -1
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +0 -1
- package/lib/components/pisellInput/index.d.ts +0 -1
- package/lib/components/pisellLoading/index.d.ts +0 -1
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
- package/lib/components/pisellModal/components/index.d.ts +0 -1
- package/lib/components/pisellTooltip/index.d.ts +0 -1
- package/lib/components/pisellUpload/index.d.ts +0 -1
- package/lib/components/pisellVHFix/index.d.ts +13 -0
- package/lib/components/pisellVHFix/index.js +56 -0
- package/lib/components/pisellVHFix/index.less +10 -0
- package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -1
- 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/resources/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
- package/lib/components/productCard/components/Action/index.d.ts +0 -1
- package/lib/components/productCard/components/Divider/index.d.ts +0 -1
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
- package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
- package/lib/components/productCard/components/Note/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
- package/lib/components/productCard/components/Packages/index.d.ts +0 -1
- package/lib/components/productCard/components/Sales/index.d.ts +0 -1
- package/lib/components/productCard/components/Time/components/Like/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/qrcode/index.d.ts +0 -1
- package/lib/components/radio/index.d.ts +0 -1
- package/lib/components/segmented/index.d.ts +0 -1
- package/lib/components/select-time/RightPanel/index.d.ts +0 -1
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/skeleton/index.d.ts +0 -1
- package/lib/components/slider/index.d.ts +0 -1
- package/lib/components/sort/components/InlineMenu/index.d.ts +0 -1
- 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/GalleryItem/components/RenderFields/index.d.ts +0 -1
- package/lib/components/table/Summary/index.d.ts +0 -1
- package/lib/components/table/Table/SelectField/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/date/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/index.d.ts +2 -3
- package/lib/components/table/Table/fields/link/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/link/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/number/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/search/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/select/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/text/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +0 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +0 -1
- package/lib/components/table/TableFilter/SortIcon.d.ts +0 -1
- package/lib/components/time-picker/index.d.ts +0 -1
- package/lib/components/upload/index.d.ts +0 -1
- package/lib/components/versionSelect/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
- package/lib/components/walletCard/Guest/index.d.ts +0 -1
- package/lib/components/walletCard/Guide/index.d.ts +0 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +5 -2
- package/package.json +1 -1
|
@@ -0,0 +1,870 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/PisellCards/components/GraphicTextCard/GraphicTextCard.stories.tsx
|
|
30
|
+
var GraphicTextCard_stories_exports = {};
|
|
31
|
+
__export(GraphicTextCard_stories_exports, {
|
|
32
|
+
BadgeDot: () => BadgeDot,
|
|
33
|
+
BadgeNumber: () => BadgeNumber,
|
|
34
|
+
BadgePositions: () => BadgePositions,
|
|
35
|
+
BadgeShowZero: () => BadgeShowZero,
|
|
36
|
+
BadgeSizeAndOffset: () => BadgeSizeAndOffset,
|
|
37
|
+
BadgeSizes: () => BadgeSizes,
|
|
38
|
+
BadgeText: () => BadgeText,
|
|
39
|
+
ClickInteraction: () => ClickInteraction,
|
|
40
|
+
CompleteExample: () => CompleteExample,
|
|
41
|
+
Default: () => Default,
|
|
42
|
+
GraphicConfigIcon: () => GraphicConfigIcon,
|
|
43
|
+
GraphicConfigSize: () => GraphicConfigSize,
|
|
44
|
+
GraphicImagePriority: () => GraphicImagePriority,
|
|
45
|
+
GraphicSlot: () => GraphicSlot,
|
|
46
|
+
MultipleCards: () => MultipleCards,
|
|
47
|
+
NavigationMenu: () => NavigationMenu,
|
|
48
|
+
NotClickable: () => NotClickable,
|
|
49
|
+
PrefixSlot: () => PrefixSlot,
|
|
50
|
+
ProductCategories: () => ProductCategories,
|
|
51
|
+
ReactNodeText: () => ReactNodeText,
|
|
52
|
+
SizeDefault: () => SizeDefault,
|
|
53
|
+
SizeLarge: () => SizeLarge,
|
|
54
|
+
SizeSmall: () => SizeSmall,
|
|
55
|
+
StateActive: () => StateActive,
|
|
56
|
+
StateDisabled: () => StateDisabled,
|
|
57
|
+
StateLoading: () => StateLoading,
|
|
58
|
+
StatePriority: () => StatePriority,
|
|
59
|
+
SuffixSlot: () => SuffixSlot,
|
|
60
|
+
TextAlign: () => TextAlign,
|
|
61
|
+
TextConfig: () => TextConfig,
|
|
62
|
+
TextEllipsis: () => TextEllipsis,
|
|
63
|
+
VariantCard: () => VariantCard,
|
|
64
|
+
VariantHorizontal: () => VariantHorizontal,
|
|
65
|
+
VariantVerticalIcon: () => VariantVerticalIcon,
|
|
66
|
+
VariantVerticalImage: () => VariantVerticalImage,
|
|
67
|
+
WidthModeAuto: () => WidthModeAuto,
|
|
68
|
+
WidthModeFixed: () => WidthModeFixed,
|
|
69
|
+
WidthModeFull: () => WidthModeFull,
|
|
70
|
+
default: () => GraphicTextCard_stories_default
|
|
71
|
+
});
|
|
72
|
+
module.exports = __toCommonJS(GraphicTextCard_stories_exports);
|
|
73
|
+
var import_react = __toESM(require("react"));
|
|
74
|
+
var import_test = require("@storybook/test");
|
|
75
|
+
var import_icons = require("@ant-design/icons");
|
|
76
|
+
var import_antd = require("antd");
|
|
77
|
+
var import_GraphicTextCard = __toESM(require("./GraphicTextCard"));
|
|
78
|
+
var meta = {
|
|
79
|
+
title: "Atom Components/PisellCards/GraphicTextCard",
|
|
80
|
+
component: import_GraphicTextCard.default,
|
|
81
|
+
parameters: {
|
|
82
|
+
layout: "padded",
|
|
83
|
+
docs: {
|
|
84
|
+
description: {
|
|
85
|
+
component: "图文卡片组件,结合图标/图片、文本和状态标识。支持 4 种样式变体、3 种尺寸、4 种状态。"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
tags: ["autodocs"],
|
|
90
|
+
argTypes: {
|
|
91
|
+
text: {
|
|
92
|
+
control: "text",
|
|
93
|
+
description: "卡片显示的文本内容(必填)"
|
|
94
|
+
},
|
|
95
|
+
variant: {
|
|
96
|
+
control: "select",
|
|
97
|
+
options: ["vertical-image", "vertical-icon", "horizontal", "card"],
|
|
98
|
+
description: "卡片样式变体"
|
|
99
|
+
},
|
|
100
|
+
size: {
|
|
101
|
+
control: "select",
|
|
102
|
+
options: ["small", "default", "large"],
|
|
103
|
+
description: "卡片尺寸"
|
|
104
|
+
},
|
|
105
|
+
clickable: {
|
|
106
|
+
control: "boolean",
|
|
107
|
+
description: "是否可点击"
|
|
108
|
+
},
|
|
109
|
+
widthMode: {
|
|
110
|
+
control: "select",
|
|
111
|
+
options: ["auto", "fixed", "full"],
|
|
112
|
+
description: "宽度模式"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
var GraphicTextCard_stories_default = meta;
|
|
117
|
+
var Default = {
|
|
118
|
+
args: {
|
|
119
|
+
text: "分类一",
|
|
120
|
+
image: "https://via.placeholder.com/80"
|
|
121
|
+
},
|
|
122
|
+
play: async ({ canvasElement }) => {
|
|
123
|
+
const canvas = (0, import_test.within)(canvasElement);
|
|
124
|
+
await (0, import_test.expect)(canvas.getByText("分类一")).toBeInTheDocument();
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
var MultipleCards = {
|
|
128
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(import_GraphicTextCard.default, { text: "分类一", image: "https://via.placeholder.com/80" }), /* @__PURE__ */ import_react.default.createElement(import_GraphicTextCard.default, { text: "分类二", image: "https://via.placeholder.com/80" }), /* @__PURE__ */ import_react.default.createElement(import_GraphicTextCard.default, { text: "分类三", image: "https://via.placeholder.com/80" }))
|
|
129
|
+
};
|
|
130
|
+
var ReactNodeText = {
|
|
131
|
+
args: {
|
|
132
|
+
text: /* @__PURE__ */ import_react.default.createElement("span", { style: { color: "blue" } }, "自定义文本"),
|
|
133
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
134
|
+
variant: "vertical-icon"
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
var VariantVerticalImage = {
|
|
138
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
139
|
+
import_GraphicTextCard.default,
|
|
140
|
+
{
|
|
141
|
+
text: "分类一",
|
|
142
|
+
image: "https://via.placeholder.com/80",
|
|
143
|
+
variant: "vertical-image"
|
|
144
|
+
}
|
|
145
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
146
|
+
import_GraphicTextCard.default,
|
|
147
|
+
{
|
|
148
|
+
text: "分类二",
|
|
149
|
+
image: "https://via.placeholder.com/80",
|
|
150
|
+
variant: "vertical-image",
|
|
151
|
+
active: { value: true }
|
|
152
|
+
}
|
|
153
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
154
|
+
import_GraphicTextCard.default,
|
|
155
|
+
{
|
|
156
|
+
text: "分类三",
|
|
157
|
+
image: "https://via.placeholder.com/80",
|
|
158
|
+
variant: "vertical-image",
|
|
159
|
+
disabled: { value: true }
|
|
160
|
+
}
|
|
161
|
+
))
|
|
162
|
+
};
|
|
163
|
+
var VariantVerticalIcon = {
|
|
164
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
165
|
+
import_GraphicTextCard.default,
|
|
166
|
+
{
|
|
167
|
+
text: "首页",
|
|
168
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
169
|
+
variant: "vertical-icon"
|
|
170
|
+
}
|
|
171
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
172
|
+
import_GraphicTextCard.default,
|
|
173
|
+
{
|
|
174
|
+
text: "商城",
|
|
175
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ShoppingOutlined, null),
|
|
176
|
+
variant: "vertical-icon",
|
|
177
|
+
active: { value: true }
|
|
178
|
+
}
|
|
179
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
180
|
+
import_GraphicTextCard.default,
|
|
181
|
+
{
|
|
182
|
+
text: "我的",
|
|
183
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.UserOutlined, null),
|
|
184
|
+
variant: "vertical-icon"
|
|
185
|
+
}
|
|
186
|
+
))
|
|
187
|
+
};
|
|
188
|
+
var VariantHorizontal = {
|
|
189
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { direction: "vertical" }, /* @__PURE__ */ import_react.default.createElement(
|
|
190
|
+
import_GraphicTextCard.default,
|
|
191
|
+
{
|
|
192
|
+
text: "商品分类",
|
|
193
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.AppstoreOutlined, null),
|
|
194
|
+
variant: "horizontal"
|
|
195
|
+
}
|
|
196
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
197
|
+
import_GraphicTextCard.default,
|
|
198
|
+
{
|
|
199
|
+
text: "热门推荐",
|
|
200
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.AppstoreOutlined, null),
|
|
201
|
+
variant: "horizontal",
|
|
202
|
+
active: { value: true }
|
|
203
|
+
}
|
|
204
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
205
|
+
import_GraphicTextCard.default,
|
|
206
|
+
{
|
|
207
|
+
text: "限时特惠",
|
|
208
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.GiftOutlined, null),
|
|
209
|
+
variant: "horizontal"
|
|
210
|
+
}
|
|
211
|
+
))
|
|
212
|
+
};
|
|
213
|
+
var VariantCard = {
|
|
214
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
215
|
+
import_GraphicTextCard.default,
|
|
216
|
+
{
|
|
217
|
+
text: "会员中心",
|
|
218
|
+
image: "https://via.placeholder.com/120",
|
|
219
|
+
variant: "card"
|
|
220
|
+
}
|
|
221
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
222
|
+
import_GraphicTextCard.default,
|
|
223
|
+
{
|
|
224
|
+
text: "VIP 专区",
|
|
225
|
+
image: "https://via.placeholder.com/120",
|
|
226
|
+
variant: "card",
|
|
227
|
+
active: { value: true }
|
|
228
|
+
}
|
|
229
|
+
))
|
|
230
|
+
};
|
|
231
|
+
var SizeSmall = {
|
|
232
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
233
|
+
import_GraphicTextCard.default,
|
|
234
|
+
{
|
|
235
|
+
text: "小尺寸",
|
|
236
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
237
|
+
variant: "vertical-icon",
|
|
238
|
+
size: "small"
|
|
239
|
+
}
|
|
240
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
241
|
+
import_GraphicTextCard.default,
|
|
242
|
+
{
|
|
243
|
+
text: "小尺寸 Active",
|
|
244
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
245
|
+
variant: "vertical-icon",
|
|
246
|
+
size: "small",
|
|
247
|
+
active: { value: true }
|
|
248
|
+
}
|
|
249
|
+
))
|
|
250
|
+
};
|
|
251
|
+
var SizeDefault = {
|
|
252
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
253
|
+
import_GraphicTextCard.default,
|
|
254
|
+
{
|
|
255
|
+
text: "默认尺寸",
|
|
256
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
257
|
+
variant: "vertical-icon",
|
|
258
|
+
size: "default"
|
|
259
|
+
}
|
|
260
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
261
|
+
import_GraphicTextCard.default,
|
|
262
|
+
{
|
|
263
|
+
text: "默认尺寸 Active",
|
|
264
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
265
|
+
variant: "vertical-icon",
|
|
266
|
+
size: "default",
|
|
267
|
+
active: { value: true }
|
|
268
|
+
}
|
|
269
|
+
))
|
|
270
|
+
};
|
|
271
|
+
var SizeLarge = {
|
|
272
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
273
|
+
import_GraphicTextCard.default,
|
|
274
|
+
{
|
|
275
|
+
text: "大尺寸",
|
|
276
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
277
|
+
variant: "vertical-icon",
|
|
278
|
+
size: "large"
|
|
279
|
+
}
|
|
280
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
281
|
+
import_GraphicTextCard.default,
|
|
282
|
+
{
|
|
283
|
+
text: "大尺寸 Active",
|
|
284
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
285
|
+
variant: "vertical-icon",
|
|
286
|
+
size: "large",
|
|
287
|
+
active: { value: true }
|
|
288
|
+
}
|
|
289
|
+
))
|
|
290
|
+
};
|
|
291
|
+
var StateActive = {
|
|
292
|
+
render: () => {
|
|
293
|
+
const [activeKey, setActiveKey] = (0, import_react.useState)("home");
|
|
294
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
295
|
+
import_GraphicTextCard.default,
|
|
296
|
+
{
|
|
297
|
+
text: "首页",
|
|
298
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
299
|
+
variant: "vertical-icon",
|
|
300
|
+
active: { value: activeKey === "home" },
|
|
301
|
+
onClick: () => setActiveKey("home")
|
|
302
|
+
}
|
|
303
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
304
|
+
import_GraphicTextCard.default,
|
|
305
|
+
{
|
|
306
|
+
text: "商城",
|
|
307
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ShoppingOutlined, null),
|
|
308
|
+
variant: "vertical-icon",
|
|
309
|
+
active: { value: activeKey === "shop" },
|
|
310
|
+
onClick: () => setActiveKey("shop")
|
|
311
|
+
}
|
|
312
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
313
|
+
import_GraphicTextCard.default,
|
|
314
|
+
{
|
|
315
|
+
text: "我的",
|
|
316
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.UserOutlined, null),
|
|
317
|
+
variant: "vertical-icon",
|
|
318
|
+
active: { value: activeKey === "user" },
|
|
319
|
+
onClick: () => setActiveKey("user")
|
|
320
|
+
}
|
|
321
|
+
));
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
var StateDisabled = {
|
|
325
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
326
|
+
import_GraphicTextCard.default,
|
|
327
|
+
{
|
|
328
|
+
text: "禁用状态",
|
|
329
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
330
|
+
variant: "vertical-icon",
|
|
331
|
+
disabled: { value: true }
|
|
332
|
+
}
|
|
333
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
334
|
+
import_GraphicTextCard.default,
|
|
335
|
+
{
|
|
336
|
+
text: "正常状态",
|
|
337
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
338
|
+
variant: "vertical-icon"
|
|
339
|
+
}
|
|
340
|
+
))
|
|
341
|
+
};
|
|
342
|
+
var StateLoading = {
|
|
343
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
344
|
+
import_GraphicTextCard.default,
|
|
345
|
+
{
|
|
346
|
+
text: "加载中",
|
|
347
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
348
|
+
variant: "vertical-icon",
|
|
349
|
+
loading: {
|
|
350
|
+
value: true,
|
|
351
|
+
extra: /* @__PURE__ */ import_react.default.createElement(import_antd.Spin, { size: "small" })
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
))
|
|
355
|
+
};
|
|
356
|
+
var StatePriority = {
|
|
357
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { direction: "vertical" }, /* @__PURE__ */ import_react.default.createElement(
|
|
358
|
+
import_GraphicTextCard.default,
|
|
359
|
+
{
|
|
360
|
+
text: "Loading > Disabled > Active",
|
|
361
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
362
|
+
variant: "vertical-icon",
|
|
363
|
+
active: { value: true, extra: /* @__PURE__ */ import_react.default.createElement("span", null, "Active") },
|
|
364
|
+
disabled: { value: true, extra: /* @__PURE__ */ import_react.default.createElement("span", null, "Disabled") },
|
|
365
|
+
loading: { value: true, extra: /* @__PURE__ */ import_react.default.createElement("span", null, "Loading") }
|
|
366
|
+
}
|
|
367
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
368
|
+
import_GraphicTextCard.default,
|
|
369
|
+
{
|
|
370
|
+
text: "Disabled > Active",
|
|
371
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
372
|
+
variant: "vertical-icon",
|
|
373
|
+
active: { value: true, extra: /* @__PURE__ */ import_react.default.createElement("span", null, "Active") },
|
|
374
|
+
disabled: { value: true, extra: /* @__PURE__ */ import_react.default.createElement("span", null, "Disabled") }
|
|
375
|
+
}
|
|
376
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
377
|
+
import_GraphicTextCard.default,
|
|
378
|
+
{
|
|
379
|
+
text: "Active",
|
|
380
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
381
|
+
variant: "vertical-icon",
|
|
382
|
+
active: { value: true, extra: /* @__PURE__ */ import_react.default.createElement("span", null, "Active") }
|
|
383
|
+
}
|
|
384
|
+
))
|
|
385
|
+
};
|
|
386
|
+
var GraphicImagePriority = {
|
|
387
|
+
args: {
|
|
388
|
+
text: "图片优先",
|
|
389
|
+
image: "https://via.placeholder.com/100",
|
|
390
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
391
|
+
variant: "vertical-image"
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
var GraphicConfigSize = {
|
|
395
|
+
args: {
|
|
396
|
+
text: "自定义尺寸",
|
|
397
|
+
image: "https://via.placeholder.com/100",
|
|
398
|
+
variant: "vertical-image",
|
|
399
|
+
graphicConfig: {
|
|
400
|
+
width: 100,
|
|
401
|
+
height: 100
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
var GraphicConfigIcon = {
|
|
406
|
+
args: {
|
|
407
|
+
text: "自定义图标",
|
|
408
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
409
|
+
variant: "vertical-icon",
|
|
410
|
+
graphicConfig: {
|
|
411
|
+
iconSize: 32,
|
|
412
|
+
iconColor: "#ff4d4f",
|
|
413
|
+
background: "#fff1f0",
|
|
414
|
+
borderRadius: 8
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
var GraphicSlot = {
|
|
419
|
+
args: {
|
|
420
|
+
text: "自定义图形",
|
|
421
|
+
variant: "vertical-icon",
|
|
422
|
+
graphicSlot: /* @__PURE__ */ import_react.default.createElement(
|
|
423
|
+
"div",
|
|
424
|
+
{
|
|
425
|
+
style: {
|
|
426
|
+
width: 64,
|
|
427
|
+
height: 64,
|
|
428
|
+
background: "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
|
|
429
|
+
borderRadius: 8,
|
|
430
|
+
display: "flex",
|
|
431
|
+
alignItems: "center",
|
|
432
|
+
justifyContent: "center",
|
|
433
|
+
color: "#fff",
|
|
434
|
+
fontSize: 24
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"🎉"
|
|
438
|
+
)
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
var BadgeDot = {
|
|
442
|
+
args: {
|
|
443
|
+
text: "消息",
|
|
444
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
445
|
+
variant: "vertical-icon",
|
|
446
|
+
badge: { type: "dot" }
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
var BadgeNumber = {
|
|
450
|
+
args: {
|
|
451
|
+
text: "消息",
|
|
452
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
453
|
+
variant: "vertical-icon",
|
|
454
|
+
badge: { type: "number", content: 99 }
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
var BadgeText = {
|
|
458
|
+
args: {
|
|
459
|
+
text: "活动",
|
|
460
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.GiftOutlined, null),
|
|
461
|
+
variant: "vertical-icon",
|
|
462
|
+
badge: { type: "text", content: "New" }
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
var BadgePositions = {
|
|
466
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { direction: "vertical" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
467
|
+
import_GraphicTextCard.default,
|
|
468
|
+
{
|
|
469
|
+
text: "Top Right (默认)",
|
|
470
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
471
|
+
variant: "vertical-icon",
|
|
472
|
+
badge: { type: "number", content: 99 }
|
|
473
|
+
}
|
|
474
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
475
|
+
import_GraphicTextCard.default,
|
|
476
|
+
{
|
|
477
|
+
text: "Top Left",
|
|
478
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
479
|
+
variant: "vertical-icon",
|
|
480
|
+
badge: { type: "number", content: 99, offset: [-10, 0] }
|
|
481
|
+
}
|
|
482
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
483
|
+
import_GraphicTextCard.default,
|
|
484
|
+
{
|
|
485
|
+
text: "Bottom Right",
|
|
486
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
487
|
+
variant: "vertical-icon",
|
|
488
|
+
badge: { type: "number", content: 99, offset: [0, 10] }
|
|
489
|
+
}
|
|
490
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
491
|
+
import_GraphicTextCard.default,
|
|
492
|
+
{
|
|
493
|
+
text: "Bottom Left",
|
|
494
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
495
|
+
variant: "vertical-icon",
|
|
496
|
+
badge: { type: "number", content: 99, offset: [-10, 10] }
|
|
497
|
+
}
|
|
498
|
+
)))
|
|
499
|
+
};
|
|
500
|
+
var BadgeSizes = {
|
|
501
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
502
|
+
import_GraphicTextCard.default,
|
|
503
|
+
{
|
|
504
|
+
text: "Small Badge",
|
|
505
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
506
|
+
variant: "vertical-icon",
|
|
507
|
+
badge: { type: "number", content: 99, size: "small" }
|
|
508
|
+
}
|
|
509
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
510
|
+
import_GraphicTextCard.default,
|
|
511
|
+
{
|
|
512
|
+
text: "Default Badge",
|
|
513
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
514
|
+
variant: "vertical-icon",
|
|
515
|
+
badge: { type: "number", content: 99, size: "default" }
|
|
516
|
+
}
|
|
517
|
+
))
|
|
518
|
+
};
|
|
519
|
+
var BadgeShowZero = {
|
|
520
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
521
|
+
import_GraphicTextCard.default,
|
|
522
|
+
{
|
|
523
|
+
text: "Hide Zero",
|
|
524
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
525
|
+
variant: "vertical-icon",
|
|
526
|
+
badge: { type: "number", content: 0, showZero: false }
|
|
527
|
+
}
|
|
528
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
529
|
+
import_GraphicTextCard.default,
|
|
530
|
+
{
|
|
531
|
+
text: "Show Zero",
|
|
532
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
533
|
+
variant: "vertical-icon",
|
|
534
|
+
badge: { type: "number", content: 0, showZero: true }
|
|
535
|
+
}
|
|
536
|
+
))
|
|
537
|
+
};
|
|
538
|
+
var BadgeSizeAndOffset = {
|
|
539
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { direction: "vertical", size: "large" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "角标大小(通过 size 属性控制)"), /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
540
|
+
import_GraphicTextCard.default,
|
|
541
|
+
{
|
|
542
|
+
text: "Small Badge",
|
|
543
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
544
|
+
variant: "vertical-icon",
|
|
545
|
+
badge: { type: "number", content: 99, size: "small" }
|
|
546
|
+
}
|
|
547
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
548
|
+
import_GraphicTextCard.default,
|
|
549
|
+
{
|
|
550
|
+
text: "Default Badge",
|
|
551
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
552
|
+
variant: "vertical-icon",
|
|
553
|
+
badge: { type: "number", content: 99 }
|
|
554
|
+
}
|
|
555
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
556
|
+
import_GraphicTextCard.default,
|
|
557
|
+
{
|
|
558
|
+
text: "Large Badge",
|
|
559
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
560
|
+
variant: "vertical-icon",
|
|
561
|
+
badge: { type: "number", content: 99, size: "default" }
|
|
562
|
+
}
|
|
563
|
+
))), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "角标 offset 位置(通过 offset 控制位置)"), /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
564
|
+
import_GraphicTextCard.default,
|
|
565
|
+
{
|
|
566
|
+
text: "Offset [0, 0] (默认)",
|
|
567
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
568
|
+
variant: "vertical-icon",
|
|
569
|
+
badge: { type: "number", content: 99, offset: [0, 0] }
|
|
570
|
+
}
|
|
571
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
572
|
+
import_GraphicTextCard.default,
|
|
573
|
+
{
|
|
574
|
+
text: "Offset [5, 5]",
|
|
575
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
576
|
+
variant: "vertical-icon",
|
|
577
|
+
badge: { type: "number", content: 99, offset: [5, 5] }
|
|
578
|
+
}
|
|
579
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
580
|
+
import_GraphicTextCard.default,
|
|
581
|
+
{
|
|
582
|
+
text: "Offset [10, 10]",
|
|
583
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
584
|
+
variant: "vertical-icon",
|
|
585
|
+
badge: { type: "number", content: 99, offset: [10, 10] }
|
|
586
|
+
}
|
|
587
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
588
|
+
import_GraphicTextCard.default,
|
|
589
|
+
{
|
|
590
|
+
text: "Offset [-5, -5]",
|
|
591
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
592
|
+
variant: "vertical-icon",
|
|
593
|
+
badge: { type: "number", content: 99, offset: [-5, -5] }
|
|
594
|
+
}
|
|
595
|
+
))), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "角标 offset 和大小组合"), /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
596
|
+
import_GraphicTextCard.default,
|
|
597
|
+
{
|
|
598
|
+
text: "Small + Offset",
|
|
599
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
600
|
+
variant: "vertical-icon",
|
|
601
|
+
badge: {
|
|
602
|
+
type: "number",
|
|
603
|
+
content: 99,
|
|
604
|
+
size: "small",
|
|
605
|
+
offset: [5, 5]
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
609
|
+
import_GraphicTextCard.default,
|
|
610
|
+
{
|
|
611
|
+
text: "Default + Offset",
|
|
612
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null),
|
|
613
|
+
variant: "vertical-icon",
|
|
614
|
+
badge: {
|
|
615
|
+
type: "number",
|
|
616
|
+
content: 99,
|
|
617
|
+
size: "default",
|
|
618
|
+
offset: [10, 10]
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
))))
|
|
622
|
+
};
|
|
623
|
+
var PrefixSlot = {
|
|
624
|
+
args: {
|
|
625
|
+
text: "前置插槽",
|
|
626
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
627
|
+
variant: "horizontal",
|
|
628
|
+
prefixSlot: /* @__PURE__ */ import_react.default.createElement(
|
|
629
|
+
"div",
|
|
630
|
+
{
|
|
631
|
+
style: {
|
|
632
|
+
width: 4,
|
|
633
|
+
height: 40,
|
|
634
|
+
background: "#1890ff",
|
|
635
|
+
borderRadius: 2
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
)
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
var SuffixSlot = {
|
|
642
|
+
args: {
|
|
643
|
+
text: "后置插槽",
|
|
644
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
645
|
+
variant: "horizontal",
|
|
646
|
+
suffixSlot: /* @__PURE__ */ import_react.default.createElement(import_icons.RightOutlined, { style: { color: "#999" } })
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
var TextConfig = {
|
|
650
|
+
args: {
|
|
651
|
+
text: "自定义文本",
|
|
652
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
653
|
+
variant: "vertical-icon",
|
|
654
|
+
textConfig: {
|
|
655
|
+
fontSize: 18,
|
|
656
|
+
fontWeight: "bold",
|
|
657
|
+
color: "#1890ff"
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
var TextEllipsis = {
|
|
662
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { direction: "vertical" }, /* @__PURE__ */ import_react.default.createElement(
|
|
663
|
+
import_GraphicTextCard.default,
|
|
664
|
+
{
|
|
665
|
+
text: "这是一段很长很长很长很长很长很长的文本内容这是一段很长很长很长很长很长很长的文本内容这是一段很长很长很长很长很长很长的文本内容",
|
|
666
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
667
|
+
variant: "horizontal",
|
|
668
|
+
textConfig: { maxLines: 1, ellipsis: true },
|
|
669
|
+
style: { width: 200 }
|
|
670
|
+
}
|
|
671
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
672
|
+
import_GraphicTextCard.default,
|
|
673
|
+
{
|
|
674
|
+
text: "这是一段很长很长很长很长很长很长的文本内容这是一段很长很长很长很长很长很长的文本内容,会显示两行然后省略这是一段很长很长很长很长很长很长的文本内容,会显示两行然后省略这是一段很长很长很长很长很长很长的文本内容,会显示两行然后省略,会显示两行然后省略",
|
|
675
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
676
|
+
variant: "horizontal",
|
|
677
|
+
textConfig: { maxLines: 2, ellipsis: true },
|
|
678
|
+
style: { width: 200 }
|
|
679
|
+
}
|
|
680
|
+
))
|
|
681
|
+
};
|
|
682
|
+
var TextAlign = {
|
|
683
|
+
render: () => /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(
|
|
684
|
+
import_GraphicTextCard.default,
|
|
685
|
+
{
|
|
686
|
+
text: "左对齐",
|
|
687
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
688
|
+
variant: "vertical-icon",
|
|
689
|
+
textConfig: { textAlign: "left" }
|
|
690
|
+
}
|
|
691
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
692
|
+
import_GraphicTextCard.default,
|
|
693
|
+
{
|
|
694
|
+
text: "居中对齐",
|
|
695
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
696
|
+
variant: "vertical-icon",
|
|
697
|
+
textConfig: { textAlign: "center" }
|
|
698
|
+
}
|
|
699
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
700
|
+
import_GraphicTextCard.default,
|
|
701
|
+
{
|
|
702
|
+
text: "右对齐",
|
|
703
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
704
|
+
variant: "vertical-icon",
|
|
705
|
+
textConfig: { textAlign: "right" }
|
|
706
|
+
}
|
|
707
|
+
))
|
|
708
|
+
};
|
|
709
|
+
var WidthModeAuto = {
|
|
710
|
+
args: {
|
|
711
|
+
text: "自动宽度",
|
|
712
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
713
|
+
variant: "horizontal",
|
|
714
|
+
widthMode: "auto",
|
|
715
|
+
maxWidth: 300
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
var WidthModeFixed = {
|
|
719
|
+
args: {
|
|
720
|
+
text: "固定宽度",
|
|
721
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
722
|
+
variant: "horizontal",
|
|
723
|
+
widthMode: "fixed",
|
|
724
|
+
width: 200
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
var WidthModeFull = {
|
|
728
|
+
render: () => /* @__PURE__ */ import_react.default.createElement("div", { style: { width: "100%", border: "1px dashed #ccc", padding: 16 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
729
|
+
import_GraphicTextCard.default,
|
|
730
|
+
{
|
|
731
|
+
text: "撑满容器",
|
|
732
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
733
|
+
variant: "horizontal",
|
|
734
|
+
widthMode: "full"
|
|
735
|
+
}
|
|
736
|
+
))
|
|
737
|
+
};
|
|
738
|
+
var ClickInteraction = {
|
|
739
|
+
render: () => {
|
|
740
|
+
const [clicked, setClicked] = (0, import_react.useState)(false);
|
|
741
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { direction: "vertical" }, /* @__PURE__ */ import_react.default.createElement(
|
|
742
|
+
import_GraphicTextCard.default,
|
|
743
|
+
{
|
|
744
|
+
text: "点击我",
|
|
745
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
746
|
+
variant: "vertical-icon",
|
|
747
|
+
onClick: () => setClicked(true)
|
|
748
|
+
}
|
|
749
|
+
), clicked && /* @__PURE__ */ import_react.default.createElement("div", null, "已点击!"));
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
var NotClickable = {
|
|
753
|
+
args: {
|
|
754
|
+
text: "不可点击",
|
|
755
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
756
|
+
variant: "vertical-icon",
|
|
757
|
+
clickable: false
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
var NavigationMenu = {
|
|
761
|
+
render: () => {
|
|
762
|
+
const [activeKey, setActiveKey] = (0, import_react.useState)("home");
|
|
763
|
+
const menuItems = [
|
|
764
|
+
{ key: "home", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null), text: "首页" },
|
|
765
|
+
{ key: "shop", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.ShoppingOutlined, null), text: "商城" },
|
|
766
|
+
{ key: "message", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.MessageOutlined, null), text: "消息", badge: 5 },
|
|
767
|
+
{ key: "user", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.UserOutlined, null), text: "我的" }
|
|
768
|
+
];
|
|
769
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, menuItems.map((item) => /* @__PURE__ */ import_react.default.createElement(
|
|
770
|
+
import_GraphicTextCard.default,
|
|
771
|
+
{
|
|
772
|
+
key: item.key,
|
|
773
|
+
text: item.text,
|
|
774
|
+
icon: item.icon,
|
|
775
|
+
variant: "vertical-icon",
|
|
776
|
+
active: { value: activeKey === item.key },
|
|
777
|
+
badge: item.badge ? { type: "number", content: item.badge } : void 0,
|
|
778
|
+
onClick: () => setActiveKey(item.key)
|
|
779
|
+
}
|
|
780
|
+
)));
|
|
781
|
+
}
|
|
782
|
+
};
|
|
783
|
+
var ProductCategories = {
|
|
784
|
+
render: () => {
|
|
785
|
+
const categories = [
|
|
786
|
+
{ id: 1, name: "电子产品", image: "https://via.placeholder.com/80" },
|
|
787
|
+
{
|
|
788
|
+
id: 2,
|
|
789
|
+
name: "服装鞋包",
|
|
790
|
+
image: "https://via.placeholder.com/80",
|
|
791
|
+
hot: true
|
|
792
|
+
},
|
|
793
|
+
{ id: 3, name: "美妆护肤", image: "https://via.placeholder.com/80" },
|
|
794
|
+
{
|
|
795
|
+
id: 4,
|
|
796
|
+
name: "食品生鲜",
|
|
797
|
+
image: "https://via.placeholder.com/80",
|
|
798
|
+
badge: "New"
|
|
799
|
+
}
|
|
800
|
+
];
|
|
801
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { wrap: true }, categories.map((category) => /* @__PURE__ */ import_react.default.createElement(
|
|
802
|
+
import_GraphicTextCard.default,
|
|
803
|
+
{
|
|
804
|
+
key: category.id,
|
|
805
|
+
text: category.name,
|
|
806
|
+
image: category.image,
|
|
807
|
+
variant: "vertical-image",
|
|
808
|
+
badge: category.hot ? { type: "text", content: "Hot", color: "#ff4d4f" } : category.badge ? { type: "text", content: category.badge, color: "#52c41a" } : void 0,
|
|
809
|
+
onClick: () => console.log("点击分类:", category.name)
|
|
810
|
+
}
|
|
811
|
+
)));
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
var CompleteExample = {
|
|
815
|
+
args: {
|
|
816
|
+
text: "完整示例",
|
|
817
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.HomeOutlined, null),
|
|
818
|
+
variant: "vertical-icon",
|
|
819
|
+
size: "large",
|
|
820
|
+
badge: { type: "number", content: 99, size: "small", offset: [5, 5] },
|
|
821
|
+
textConfig: {
|
|
822
|
+
fontSize: 16,
|
|
823
|
+
fontWeight: "bold",
|
|
824
|
+
color: "#1890ff"
|
|
825
|
+
},
|
|
826
|
+
active: { value: true },
|
|
827
|
+
onClick: () => console.log("clicked")
|
|
828
|
+
}
|
|
829
|
+
};
|
|
830
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
831
|
+
0 && (module.exports = {
|
|
832
|
+
BadgeDot,
|
|
833
|
+
BadgeNumber,
|
|
834
|
+
BadgePositions,
|
|
835
|
+
BadgeShowZero,
|
|
836
|
+
BadgeSizeAndOffset,
|
|
837
|
+
BadgeSizes,
|
|
838
|
+
BadgeText,
|
|
839
|
+
ClickInteraction,
|
|
840
|
+
CompleteExample,
|
|
841
|
+
Default,
|
|
842
|
+
GraphicConfigIcon,
|
|
843
|
+
GraphicConfigSize,
|
|
844
|
+
GraphicImagePriority,
|
|
845
|
+
GraphicSlot,
|
|
846
|
+
MultipleCards,
|
|
847
|
+
NavigationMenu,
|
|
848
|
+
NotClickable,
|
|
849
|
+
PrefixSlot,
|
|
850
|
+
ProductCategories,
|
|
851
|
+
ReactNodeText,
|
|
852
|
+
SizeDefault,
|
|
853
|
+
SizeLarge,
|
|
854
|
+
SizeSmall,
|
|
855
|
+
StateActive,
|
|
856
|
+
StateDisabled,
|
|
857
|
+
StateLoading,
|
|
858
|
+
StatePriority,
|
|
859
|
+
SuffixSlot,
|
|
860
|
+
TextAlign,
|
|
861
|
+
TextConfig,
|
|
862
|
+
TextEllipsis,
|
|
863
|
+
VariantCard,
|
|
864
|
+
VariantHorizontal,
|
|
865
|
+
VariantVerticalIcon,
|
|
866
|
+
VariantVerticalImage,
|
|
867
|
+
WidthModeAuto,
|
|
868
|
+
WidthModeFixed,
|
|
869
|
+
WidthModeFull
|
|
870
|
+
});
|