@pisell/private-materials 6.4.59 → 6.4.60
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 +2 -2
- 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/booking/components/actionButtons/index.js +7 -15
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +2 -2
- package/es/components/booking/components/voucher/index.js +19 -23
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/index.js +3 -7
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/PaymentModal.js +12 -17
- package/es/components/checkout/hooks/useWalletPass.js +21 -36
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/pay/toB/store/hooks.js +5 -19
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -20
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +12 -47
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/es/components/ticketBooking/components/addServiceVariant/index.js +2 -4
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -5
- package/es/components/ticketBooking/components/menuBar/index.js +21 -45
- package/es/components/ticketBooking/components/menuBar/index.less +1 -32
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -6
- package/es/components/ticketBooking/components/ticketBooking/index.js +23 -66
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.less +0 -1
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +1 -13
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/index.js +1 -2
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +4 -12
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +10 -52
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +2 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +2 -7
- package/es/components/ticketBooking/index.d.ts +0 -6
- package/es/components/ticketBooking/index.js +11 -86
- package/es/components/ticketBooking/utils/index.d.ts +2 -30
- package/es/components/ticketBooking/utils/index.js +1 -50
- package/es/index.d.ts +0 -2
- package/es/index.js +1 -3
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -2
- package/es/plus/productSelect/components/pisellPriceText/index.js +5 -7
- package/lib/components/booking/components/actionButtons/index.js +15 -22
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +2 -2
- package/lib/components/booking/components/voucher/index.js +40 -33
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/index.js +3 -7
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/PaymentModal.js +12 -15
- package/lib/components/checkout/hooks/useWalletPass.js +45 -57
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/pay/toB/store/hooks.js +8 -16
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -20
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +12 -47
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -2
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +2 -3
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -5
- package/lib/components/ticketBooking/components/menuBar/index.js +22 -29
- package/lib/components/ticketBooking/components/menuBar/index.less +1 -32
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.js +25 -56
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.less +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +1 -5
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.js +1 -3
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +10 -17
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +5 -35
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +2 -4
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +2 -6
- package/lib/components/ticketBooking/index.d.ts +0 -6
- package/lib/components/ticketBooking/index.js +8 -64
- package/lib/components/ticketBooking/utils/index.d.ts +2 -30
- package/lib/components/ticketBooking/utils/index.js +2 -70
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -6
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -2
- package/lib/plus/productSelect/components/pisellPriceText/index.js +5 -6
- package/package.json +1 -1
- package/es/components/list/List.d.ts +0 -5
- package/es/components/list/List.js +0 -957
- package/es/components/list/List.less +0 -2
- package/es/components/list/ResponsiveWrapper.d.ts +0 -16
- package/es/components/list/ResponsiveWrapper.js +0 -130
- package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/es/components/list/TestResponsiveWrapper.js +0 -816
- package/es/components/list/TestResponsiveWrapper.less +0 -968
- package/es/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/es/components/list/components/EmptyState/EmptyState.js +0 -75
- package/es/components/list/components/EmptyState/EmptyState.less +0 -121
- package/es/components/list/components/EmptyState/index.d.ts +0 -2
- package/es/components/list/components/EmptyState/index.js +0 -1
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +0 -39
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +0 -29
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/ListItemSkeleton/index.js +0 -2
- package/es/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/es/components/list/components/Pagination/Pagination.js +0 -240
- package/es/components/list/components/Pagination/Pagination.less +0 -439
- package/es/components/list/components/Pagination/index.d.ts +0 -1
- package/es/components/list/components/Pagination/index.js +0 -1
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/ScrollLoader.js +0 -18
- package/es/components/list/components/ScrollLoader/ScrollLoader.less +0 -3
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/ScrollLoader/index.js +0 -1
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/Tab.js +0 -43
- package/es/components/list/components/Tab/Tab.less +0 -139
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/index.js +0 -1
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/Tab/types.js +0 -1
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/TabSkeleton.js +0 -28
- package/es/components/list/components/TabSkeleton/TabSkeleton.less +0 -38
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/TabSkeleton/index.js +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/WaterfallList.js +0 -191
- package/es/components/list/components/WaterfallList/WaterfallList.less +0 -201
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/index.js +0 -1
- package/es/components/list/examples/GroupedListExample.d.ts +0 -3
- package/es/components/list/examples/GroupedListExample.js +0 -207
- package/es/components/list/hooks/index.d.ts +0 -5
- package/es/components/list/hooks/index.js +0 -3
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useDevice.js +0 -102
- package/es/components/list/hooks/useListState.d.ts +0 -43
- package/es/components/list/hooks/useListState.js +0 -176
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/hooks/useWaterfall.js +0 -161
- package/es/components/list/index.d.ts +0 -10
- package/es/components/list/index.js +0 -7
- package/es/components/list/locales.d.ts +0 -66
- package/es/components/list/locales.js +0 -107
- package/es/components/list/styles/base.less +0 -39
- package/es/components/list/styles/content.less +0 -416
- package/es/components/list/styles/floatButton.less +0 -107
- package/es/components/list/styles/footer.less +0 -49
- package/es/components/list/styles/header.less +0 -69
- package/es/components/list/styles/responsive.less +0 -166
- package/es/components/list/types.d.ts +0 -177
- package/es/components/list/types.js +0 -1
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/getText.js +0 -150
- package/es/components/list/utils/index.d.ts +0 -4
- package/es/components/list/utils/index.js +0 -5
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -143
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -41
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +0 -273
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +0 -130
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/IsActiveContext.js +0 -37
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.js +0 -37
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/context/index.js +0 -2
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +0 -50
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +0 -17
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/components/ticketBooking/utils/productCache.js +0 -184
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +0 -17
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +0 -17
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +0 -17
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +0 -2
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +0 -100
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +0 -32
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +0 -239
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +0 -44
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +0 -34
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +0 -14
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +0 -33
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +0 -30
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -75
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +0 -46
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +0 -39
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +0 -53
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +0 -58
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +0 -11
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +0 -85
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +0 -24
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +0 -121
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +0 -57
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +0 -95
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +0 -18
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +0 -47
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +0 -34
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +0 -13
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +0 -95
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +0 -18
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +0 -31
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +0 -34
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +0 -13
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +0 -39
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +0 -22
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +0 -20
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +0 -20
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +0 -55
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/index.js +0 -38
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/es/plus/productSelect/ProductCard/SkuCard/locales.js +0 -41
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/es/plus/productSelect/ProductCard/SkuCard/status.js +0 -481
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/type.js +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/utils.js +0 -21
- package/lib/components/list/List.d.ts +0 -5
- package/lib/components/list/List.js +0 -771
- package/lib/components/list/List.less +0 -2
- package/lib/components/list/ResponsiveWrapper.d.ts +0 -16
- package/lib/components/list/ResponsiveWrapper.js +0 -145
- package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/lib/components/list/TestResponsiveWrapper.js +0 -493
- package/lib/components/list/TestResponsiveWrapper.less +0 -968
- package/lib/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/lib/components/list/components/EmptyState/EmptyState.js +0 -75
- package/lib/components/list/components/EmptyState/EmptyState.less +0 -121
- package/lib/components/list/components/EmptyState/index.d.ts +0 -2
- package/lib/components/list/components/EmptyState/index.js +0 -35
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +0 -75
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +0 -29
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/ListItemSkeleton/index.js +0 -41
- package/lib/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/lib/components/list/components/Pagination/Pagination.js +0 -205
- package/lib/components/list/components/Pagination/Pagination.less +0 -439
- package/lib/components/list/components/Pagination/index.d.ts +0 -1
- package/lib/components/list/components/Pagination/index.js +0 -35
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/ScrollLoader.js +0 -37
- package/lib/components/list/components/ScrollLoader/ScrollLoader.less +0 -3
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/ScrollLoader/index.js +0 -35
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/Tab.js +0 -72
- package/lib/components/list/components/Tab/Tab.less +0 -139
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/index.js +0 -35
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/Tab/types.js +0 -17
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/TabSkeleton.js +0 -61
- package/lib/components/list/components/TabSkeleton/TabSkeleton.less +0 -38
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/TabSkeleton/index.js +0 -41
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/WaterfallList.js +0 -178
- package/lib/components/list/components/WaterfallList/WaterfallList.less +0 -201
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/index.js +0 -35
- package/lib/components/list/examples/GroupedListExample.d.ts +0 -3
- package/lib/components/list/examples/GroupedListExample.js +0 -210
- package/lib/components/list/hooks/index.d.ts +0 -5
- package/lib/components/list/hooks/index.js +0 -47
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useDevice.js +0 -96
- package/lib/components/list/hooks/useListState.d.ts +0 -43
- package/lib/components/list/hooks/useListState.js +0 -149
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/hooks/useWaterfall.js +0 -124
- package/lib/components/list/index.d.ts +0 -10
- package/lib/components/list/index.js +0 -60
- package/lib/components/list/locales.d.ts +0 -66
- package/lib/components/list/locales.js +0 -113
- package/lib/components/list/styles/base.less +0 -39
- package/lib/components/list/styles/content.less +0 -416
- package/lib/components/list/styles/floatButton.less +0 -107
- package/lib/components/list/styles/footer.less +0 -49
- package/lib/components/list/styles/header.less +0 -69
- package/lib/components/list/styles/responsive.less +0 -166
- package/lib/components/list/types.d.ts +0 -177
- package/lib/components/list/types.js +0 -17
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/getText.js +0 -95
- package/lib/components/list/utils/index.d.ts +0 -4
- package/lib/components/list/utils/index.js +0 -43
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -165
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +0 -45
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +0 -41
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +0 -247
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +0 -100
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/IsActiveContext.js +0 -56
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.js +0 -56
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/context/index.js +0 -44
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +0 -47
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +0 -37
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/components/ticketBooking/utils/productCache.js +0 -144
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +0 -2
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +0 -129
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +0 -52
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +0 -178
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +0 -44
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +0 -52
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +0 -14
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +0 -63
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +0 -30
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -5
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +0 -131
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +0 -46
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +0 -62
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +0 -78
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +0 -31
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +0 -51
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +0 -94
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +0 -11
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +0 -115
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +0 -24
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +0 -139
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +0 -57
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +0 -97
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +0 -18
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +0 -51
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +0 -58
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +0 -56
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +0 -13
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +0 -97
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +0 -18
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +0 -51
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +0 -56
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +0 -13
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +0 -58
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +0 -22
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +0 -49
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +0 -20
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +0 -83
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/index.js +0 -68
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +0 -65
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/lib/plus/productSelect/ProductCard/SkuCard/status.js +0 -501
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/type.js +0 -17
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +0 -37
- package/lowcode/sku-card/meta.ts +0 -1812
- package/lowcode/sku-card/snippets.ts +0 -372
- package/lowcode/sku-list/meta.ts +0 -410
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
/* WaterfallList 组件样式 */
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--waterfall-item-padding: 16px;
|
|
5
|
-
--waterfall-item-border-radius: 8px;
|
|
6
|
-
--waterfall-item-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
7
|
-
--waterfall-item-border: 1px solid #f0f0f0;
|
|
8
|
-
--waterfall-item-bg: #fff;
|
|
9
|
-
--waterfall-min-row-height: 120px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.waterfall-container {
|
|
13
|
-
width: 100%;
|
|
14
|
-
/* 使用更高优先级的选择器,避免!important */
|
|
15
|
-
&.waterfall-container {
|
|
16
|
-
align-items: flex-start; /* 确保瀑布流列不会被拉伸到相同高度 */
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* 瀑布流项目的基础样式重置 - 使用更具体的选择器 */
|
|
21
|
-
.waterfall-container .list-item.waterfall-item {
|
|
22
|
-
height: auto; /* 覆盖grid样式 */
|
|
23
|
-
width: auto; /* 覆盖可能的宽度限制 */
|
|
24
|
-
/* 确保盒模型正确 */
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.waterfall-track {
|
|
29
|
-
/* 每个轨道的基础样式 */
|
|
30
|
-
min-height: 0;
|
|
31
|
-
|
|
32
|
-
&.waterfall-track-vertical {
|
|
33
|
-
/* 垂直模式:轨道是列,等宽分布但高度自适应 */
|
|
34
|
-
flex: 1 0 0; /* 等宽分布,不收缩,初始宽度为0 */
|
|
35
|
-
min-width: 0; /* 允许内容收缩 */
|
|
36
|
-
align-self: flex-start; /* 确保列高度自适应,不被拉伸 */
|
|
37
|
-
height: auto; /* 明确设置高度自适应 */
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.waterfall-track-horizontal {
|
|
41
|
-
/* 水平模式:轨道是行,自适应高度 */
|
|
42
|
-
flex: 0 0 auto;
|
|
43
|
-
width: 100%;
|
|
44
|
-
min-height: var(--waterfall-min-row-height); /* 确保行有最小高度 */
|
|
45
|
-
margin-bottom: 0; /* 移除可能的margin */
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* 瀑布流项目样式 */
|
|
49
|
-
.waterfall-item {
|
|
50
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
51
|
-
|
|
52
|
-
.default-waterfall-item {
|
|
53
|
-
transition: all 0.3s ease;
|
|
54
|
-
background: var(--waterfall-item-bg);
|
|
55
|
-
border-radius: var(--waterfall-item-border-radius);
|
|
56
|
-
box-shadow: var(--waterfall-item-shadow);
|
|
57
|
-
border: var(--waterfall-item-border);
|
|
58
|
-
padding: var(--waterfall-item-padding);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* 悬停效果 - 使用更具体的选择器 */
|
|
62
|
-
&:hover .default-waterfall-item {
|
|
63
|
-
transform: translateY(-2px);
|
|
64
|
-
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* 垂直模式下的轨道项目样式 */
|
|
69
|
-
&.waterfall-track-vertical .waterfall-item {
|
|
70
|
-
width: 100%; /* 填满列宽 */
|
|
71
|
-
flex: 0 0 auto; /* 不拉伸,保持原始高度 */
|
|
72
|
-
/* 高度通过内联样式设置,这里不再强制覆盖 */
|
|
73
|
-
|
|
74
|
-
/* 确保内部组件填充整个容器 - 使用更具体的选择器 */
|
|
75
|
-
&.waterfall-item > * {
|
|
76
|
-
height: 100%;
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* 默认瀑布流项目样式 */
|
|
81
|
-
.default-waterfall-item {
|
|
82
|
-
/* 填充容器高度 */
|
|
83
|
-
height: 100%;
|
|
84
|
-
min-height: unset; /* 移除可能的最小高度限制 */
|
|
85
|
-
max-height: none; /* 移除可能的最大高度限制 */
|
|
86
|
-
flex-shrink: 0; /* 防止被压缩 */
|
|
87
|
-
flex-grow: 0; /* 防止被拉伸 */
|
|
88
|
-
display: flex;
|
|
89
|
-
flex-direction: column;
|
|
90
|
-
position: relative;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/* 卡片组件适配 - 分离出单独的mixin */
|
|
95
|
-
&.waterfall-track-vertical .waterfall-item {
|
|
96
|
-
/* Ant Design Card 组件适配 */
|
|
97
|
-
.ant-card,
|
|
98
|
-
.ant-card-bordered {
|
|
99
|
-
&.ant-card {
|
|
100
|
-
height: 100%;
|
|
101
|
-
min-height: 100%;
|
|
102
|
-
max-height: none;
|
|
103
|
-
display: flex;
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
|
|
106
|
-
.ant-card-body {
|
|
107
|
-
&.ant-card-body {
|
|
108
|
-
height: 100%;
|
|
109
|
-
min-height: 100%;
|
|
110
|
-
max-height: none;
|
|
111
|
-
display: flex;
|
|
112
|
-
flex-direction: column;
|
|
113
|
-
flex-grow: 1; /* 关键:让card-body填满整个卡片 */
|
|
114
|
-
padding: var(--waterfall-item-padding); /* 使用CSS变量 */
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/* Pisell Card 组件适配 */
|
|
121
|
-
.pisell-card-wrap {
|
|
122
|
-
&.pisell-card-wrap {
|
|
123
|
-
height: 100%;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* Pisell Product Card 组件适配 */
|
|
128
|
-
.pisell-product-card {
|
|
129
|
-
&.pisell-product-card {
|
|
130
|
-
height: 100%;
|
|
131
|
-
min-height: 100%;
|
|
132
|
-
max-height: none;
|
|
133
|
-
display: flex;
|
|
134
|
-
flex-direction: column;
|
|
135
|
-
|
|
136
|
-
.pisell-product-card-content {
|
|
137
|
-
&.pisell-product-card-content {
|
|
138
|
-
height: 100%;
|
|
139
|
-
min-height: 100%;
|
|
140
|
-
max-height: none;
|
|
141
|
-
display: flex;
|
|
142
|
-
flex-direction: column;
|
|
143
|
-
flex-grow: 1; /* 关键:让content填满整个卡片 */
|
|
144
|
-
justify-content: space-between; /* 内容分散对齐 */
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.pisell-product-card-image {
|
|
149
|
-
&.pisell-product-card-image {
|
|
150
|
-
flex-grow: 1; /* 让图片区域扩展填充可用空间 */
|
|
151
|
-
display: flex;
|
|
152
|
-
align-items: center;
|
|
153
|
-
justify-content: center;
|
|
154
|
-
min-height: 60px; /* 最小高度 */
|
|
155
|
-
|
|
156
|
-
.image {
|
|
157
|
-
&.image {
|
|
158
|
-
width: 100%;
|
|
159
|
-
height: 100%;
|
|
160
|
-
min-height: inherit;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.pisell-product-card-info,
|
|
167
|
-
.pisell-product-card-arrow {
|
|
168
|
-
&.pisell-product-card-info,
|
|
169
|
-
&.pisell-product-card-arrow {
|
|
170
|
-
flex-shrink: 0; /* 保持固定大小 */
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/* 通用卡片组件适配 - 使用属性选择器提高优先级 */
|
|
177
|
-
[class*="card"],
|
|
178
|
-
[class*="Card"] {
|
|
179
|
-
&[class*="card"],
|
|
180
|
-
&[class*="Card"] {
|
|
181
|
-
height: 100%;
|
|
182
|
-
min-height: 100%;
|
|
183
|
-
max-height: none;
|
|
184
|
-
|
|
185
|
-
> * {
|
|
186
|
-
&:first-child {
|
|
187
|
-
height: 100%;
|
|
188
|
-
min-height: 100%;
|
|
189
|
-
max-height: none;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/* 水平模式下的轨道项目样式 */
|
|
197
|
-
&.waterfall-track-horizontal .waterfall-item {
|
|
198
|
-
flex-shrink: 0; /* 保持预设宽度 */
|
|
199
|
-
height: auto; /* 自适应高度 */
|
|
200
|
-
}
|
|
201
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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/list/components/WaterfallList/index.ts
|
|
30
|
-
var WaterfallList_exports = {};
|
|
31
|
-
__export(WaterfallList_exports, {
|
|
32
|
-
default: () => import_WaterfallList.default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(WaterfallList_exports);
|
|
35
|
-
var import_WaterfallList = __toESM(require("./WaterfallList"));
|
|
@@ -1,210 +0,0 @@
|
|
|
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/list/examples/GroupedListExample.tsx
|
|
30
|
-
var GroupedListExample_exports = {};
|
|
31
|
-
__export(GroupedListExample_exports, {
|
|
32
|
-
default: () => GroupedListExample_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(GroupedListExample_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import__ = require("../index");
|
|
37
|
-
var GroupedListExample = () => {
|
|
38
|
-
const mockTicketData = [
|
|
39
|
-
{
|
|
40
|
-
id: "1",
|
|
41
|
-
title: "2hrs upgrade Unlimited",
|
|
42
|
-
description: "Adult Day",
|
|
43
|
-
price: 90,
|
|
44
|
-
duration: "2 h",
|
|
45
|
-
ticketType: "all-access",
|
|
46
|
-
category: "Adult Day Pass"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
id: "2",
|
|
50
|
-
title: "2hrs upgrade Unlimited",
|
|
51
|
-
description: "Kid Day",
|
|
52
|
-
price: 90,
|
|
53
|
-
duration: "2 h",
|
|
54
|
-
ticketType: "all-access",
|
|
55
|
-
category: "Kids Day Pass"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: "3",
|
|
59
|
-
title: "2hrs upgrade Unlimited",
|
|
60
|
-
description: "Family Package",
|
|
61
|
-
price: 90,
|
|
62
|
-
duration: "2 h",
|
|
63
|
-
ticketType: "all-access",
|
|
64
|
-
category: "Family Pass"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
id: "4",
|
|
68
|
-
title: "Child Ticket - Morning",
|
|
69
|
-
description: "Special price for children",
|
|
70
|
-
price: 45,
|
|
71
|
-
duration: "4 h",
|
|
72
|
-
ticketType: "child",
|
|
73
|
-
category: "Morning Session"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: "5",
|
|
77
|
-
title: "Child Ticket - Afternoon",
|
|
78
|
-
description: "Afternoon activities",
|
|
79
|
-
price: 45,
|
|
80
|
-
duration: "4 h",
|
|
81
|
-
ticketType: "child",
|
|
82
|
-
category: "Afternoon Session"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
id: "6",
|
|
86
|
-
title: "Adult Standard",
|
|
87
|
-
description: "Standard adult admission",
|
|
88
|
-
price: 70,
|
|
89
|
-
duration: "6 h",
|
|
90
|
-
ticketType: "adult",
|
|
91
|
-
category: "Standard Admission"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
id: "7",
|
|
95
|
-
title: "Adult Premium",
|
|
96
|
-
description: "Premium experience",
|
|
97
|
-
price: 120,
|
|
98
|
-
duration: "8 h",
|
|
99
|
-
ticketType: "adult",
|
|
100
|
-
category: "Premium Experience"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
id: "8",
|
|
104
|
-
title: "Special Event",
|
|
105
|
-
description: "Limited time offer",
|
|
106
|
-
price: 150,
|
|
107
|
-
duration: "3 h",
|
|
108
|
-
ticketType: "category5",
|
|
109
|
-
category: "Special Event"
|
|
110
|
-
}
|
|
111
|
-
];
|
|
112
|
-
const tabItems = [
|
|
113
|
-
{
|
|
114
|
-
key: "all-access",
|
|
115
|
-
label: `All-Access Ticket (${mockTicketData.filter((item) => item.ticketType === "all-access").length})`,
|
|
116
|
-
group: "all-access"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
key: "child",
|
|
120
|
-
label: `Child Ticket (${mockTicketData.filter((item) => item.ticketType === "child").length})`,
|
|
121
|
-
group: "child"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
key: "adult",
|
|
125
|
-
label: `Adult Ticket (${mockTicketData.filter((item) => item.ticketType === "adult").length})`,
|
|
126
|
-
group: "adult"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
key: "category5",
|
|
130
|
-
label: `Category 5 (${mockTicketData.filter((item) => item.ticketType === "category5").length})`,
|
|
131
|
-
group: "category5"
|
|
132
|
-
}
|
|
133
|
-
];
|
|
134
|
-
const [currentData] = (0, import_react.useState)(mockTicketData);
|
|
135
|
-
const [loading] = (0, import_react.useState)(false);
|
|
136
|
-
const renderTicketItem = (item, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
137
|
-
"div",
|
|
138
|
-
{
|
|
139
|
-
key: item.id,
|
|
140
|
-
style: {
|
|
141
|
-
background: "#FFF",
|
|
142
|
-
borderRadius: "12px",
|
|
143
|
-
padding: "16px",
|
|
144
|
-
border: "1px solid #E4E7EC",
|
|
145
|
-
boxShadow: "0px 1px 2px rgba(16, 24, 40, 0.05)",
|
|
146
|
-
height: "160px",
|
|
147
|
-
display: "flex",
|
|
148
|
-
flexDirection: "column",
|
|
149
|
-
justifyContent: "space-between"
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
/* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
153
|
-
height: "60px",
|
|
154
|
-
background: `linear-gradient(135deg, ${item.ticketType === "all-access" ? "#8157D5, #B794F6" : item.ticketType === "child" ? "#F56565, #FC8181" : item.ticketType === "adult" ? "#4299E1, #63B3ED" : "#ED8936, #F6AD55"})`,
|
|
155
|
-
borderRadius: "8px",
|
|
156
|
-
marginBottom: "12px",
|
|
157
|
-
display: "flex",
|
|
158
|
-
alignItems: "center",
|
|
159
|
-
justifyContent: "center",
|
|
160
|
-
color: "white",
|
|
161
|
-
fontWeight: "bold",
|
|
162
|
-
fontSize: "18px"
|
|
163
|
-
} }, item.description),
|
|
164
|
-
/* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h3", { style: {
|
|
165
|
-
fontSize: "16px",
|
|
166
|
-
fontWeight: "600",
|
|
167
|
-
margin: "0 0 4px 0",
|
|
168
|
-
color: "#101828"
|
|
169
|
-
} }, item.title), /* @__PURE__ */ import_react.default.createElement("p", { style: {
|
|
170
|
-
fontSize: "14px",
|
|
171
|
-
color: "#667085",
|
|
172
|
-
margin: "0 0 8px 0"
|
|
173
|
-
} }, item.duration), /* @__PURE__ */ import_react.default.createElement("p", { style: {
|
|
174
|
-
fontSize: "18px",
|
|
175
|
-
fontWeight: "700",
|
|
176
|
-
color: "#101828",
|
|
177
|
-
margin: 0
|
|
178
|
-
} }, "A$ ", item.price))
|
|
179
|
-
);
|
|
180
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { style: { padding: "20px", maxWidth: "1200px", margin: "0 auto" } }, /* @__PURE__ */ import_react.default.createElement("h1", { style: { marginBottom: "20px", color: "#101828" } }, "门票分组展示示例"), /* @__PURE__ */ import_react.default.createElement(
|
|
181
|
-
import__.List,
|
|
182
|
-
{
|
|
183
|
-
data: currentData,
|
|
184
|
-
tabData: tabItems,
|
|
185
|
-
tabGroup: "ticketType",
|
|
186
|
-
tabStyle: "anchor",
|
|
187
|
-
displayStyle: "grid",
|
|
188
|
-
layoutDirection: "vertical",
|
|
189
|
-
columns: 2,
|
|
190
|
-
rows: 2,
|
|
191
|
-
columnGap: 16,
|
|
192
|
-
rowGap: 16,
|
|
193
|
-
height: "600px",
|
|
194
|
-
renderItem: renderTicketItem,
|
|
195
|
-
loading,
|
|
196
|
-
emptyConfig: {
|
|
197
|
-
show: true,
|
|
198
|
-
text: "暂无门票数据",
|
|
199
|
-
description: "请稍后再试"
|
|
200
|
-
},
|
|
201
|
-
className: "ticket-list-example"
|
|
202
|
-
}
|
|
203
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { style: {
|
|
204
|
-
marginTop: "20px",
|
|
205
|
-
padding: "16px",
|
|
206
|
-
background: "#F8F9FA",
|
|
207
|
-
borderRadius: "8px"
|
|
208
|
-
} }, /* @__PURE__ */ import_react.default.createElement("h3", null, "使用说明:"), /* @__PURE__ */ import_react.default.createElement("ul", null, /* @__PURE__ */ import_react.default.createElement("li", null, "通过 ", /* @__PURE__ */ import_react.default.createElement("code", null, 'tabGroup="ticketType"'), " 指定使用数据项的 ticketType 字段进行分组"), /* @__PURE__ */ import_react.default.createElement("li", null, "Tab的 group 属性值对应数据项中 ticketType 字段的值"), /* @__PURE__ */ import_react.default.createElement("li", null, "点击不同的标签页可以查看不同分组的门票"), /* @__PURE__ */ import_react.default.createElement("li", null, "数据会根据选择的分组自动过滤"), /* @__PURE__ */ import_react.default.createElement("li", null, "每个标签页显示对应分组的数量"), /* @__PURE__ */ import_react.default.createElement("li", null, "支持所有现有的List组件布局和分页模式"))));
|
|
209
|
-
};
|
|
210
|
-
var GroupedListExample_default = GroupedListExample;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { useDevice, getUserAgentInfo } from './useDevice';
|
|
2
|
-
export type { DeviceType, DeviceInfo } from './useDevice';
|
|
3
|
-
export { default as useWaterfall } from './useWaterfall';
|
|
4
|
-
export { useListState } from './useListState';
|
|
5
|
-
export type { ListState, ListAction, UseListStateProps, UseListStateReturn } from './useListState';
|
|
@@ -1,47 +0,0 @@
|
|
|
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/list/hooks/index.ts
|
|
30
|
-
var hooks_exports = {};
|
|
31
|
-
__export(hooks_exports, {
|
|
32
|
-
getUserAgentInfo: () => import_useDevice.getUserAgentInfo,
|
|
33
|
-
useDevice: () => import_useDevice.useDevice,
|
|
34
|
-
useListState: () => import_useListState.useListState,
|
|
35
|
-
useWaterfall: () => import_useWaterfall.default
|
|
36
|
-
});
|
|
37
|
-
module.exports = __toCommonJS(hooks_exports);
|
|
38
|
-
var import_useDevice = require("./useDevice");
|
|
39
|
-
var import_useWaterfall = __toESM(require("./useWaterfall"));
|
|
40
|
-
var import_useListState = require("./useListState");
|
|
41
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
-
0 && (module.exports = {
|
|
43
|
-
getUserAgentInfo,
|
|
44
|
-
useDevice,
|
|
45
|
-
useListState,
|
|
46
|
-
useWaterfall
|
|
47
|
-
});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare type DeviceType = 'pc' | 'pad' | 'mobile';
|
|
2
|
-
export interface DeviceInfo {
|
|
3
|
-
type: DeviceType;
|
|
4
|
-
isMobile: boolean;
|
|
5
|
-
isPad: boolean;
|
|
6
|
-
isPc: boolean;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 设备检测Hook
|
|
12
|
-
* 根据屏幕宽度和用户代理判断当前设备类型
|
|
13
|
-
*/
|
|
14
|
-
export declare const useDevice: () => DeviceInfo;
|
|
15
|
-
/**
|
|
16
|
-
* 获取用户代理信息
|
|
17
|
-
* @returns 用户代理相关信息
|
|
18
|
-
*/
|
|
19
|
-
export declare const getUserAgentInfo: () => {
|
|
20
|
-
isMobileUA: boolean;
|
|
21
|
-
isTabletUA: boolean;
|
|
22
|
-
isDesktopUA: boolean;
|
|
23
|
-
userAgent: string;
|
|
24
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/components/list/hooks/useDevice.ts
|
|
20
|
-
var useDevice_exports = {};
|
|
21
|
-
__export(useDevice_exports, {
|
|
22
|
-
getUserAgentInfo: () => getUserAgentInfo,
|
|
23
|
-
useDevice: () => useDevice
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(useDevice_exports);
|
|
26
|
-
var import_react = require("react");
|
|
27
|
-
var useDevice = () => {
|
|
28
|
-
const [deviceInfo, setDeviceInfo] = (0, import_react.useState)(() => {
|
|
29
|
-
const initialWidth = typeof window !== "undefined" ? window.innerWidth : 1920;
|
|
30
|
-
const initialHeight = typeof window !== "undefined" ? window.innerHeight : 1080;
|
|
31
|
-
const initialType = getDeviceType(initialWidth);
|
|
32
|
-
return {
|
|
33
|
-
type: initialType,
|
|
34
|
-
isMobile: initialType === "mobile",
|
|
35
|
-
isPad: initialType === "pad",
|
|
36
|
-
isPc: initialType === "pc",
|
|
37
|
-
width: initialWidth,
|
|
38
|
-
height: initialHeight
|
|
39
|
-
};
|
|
40
|
-
});
|
|
41
|
-
(0, import_react.useEffect)(() => {
|
|
42
|
-
const handleResize = () => {
|
|
43
|
-
const width = window.innerWidth;
|
|
44
|
-
const height = window.innerHeight;
|
|
45
|
-
const type = getDeviceType(width);
|
|
46
|
-
setDeviceInfo({
|
|
47
|
-
type,
|
|
48
|
-
isMobile: type === "mobile",
|
|
49
|
-
isPad: type === "pad",
|
|
50
|
-
isPc: type === "pc",
|
|
51
|
-
width,
|
|
52
|
-
height
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
handleResize();
|
|
56
|
-
window.addEventListener("resize", handleResize);
|
|
57
|
-
return () => {
|
|
58
|
-
window.removeEventListener("resize", handleResize);
|
|
59
|
-
};
|
|
60
|
-
}, []);
|
|
61
|
-
return deviceInfo;
|
|
62
|
-
};
|
|
63
|
-
function getDeviceType(width) {
|
|
64
|
-
if (width < 768) {
|
|
65
|
-
return "mobile";
|
|
66
|
-
} else if (width < 1200) {
|
|
67
|
-
return "pad";
|
|
68
|
-
} else {
|
|
69
|
-
return "pc";
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
var getUserAgentInfo = () => {
|
|
73
|
-
if (typeof window === "undefined" || !window.navigator) {
|
|
74
|
-
return {
|
|
75
|
-
isMobileUA: false,
|
|
76
|
-
isTabletUA: false,
|
|
77
|
-
isDesktopUA: true,
|
|
78
|
-
userAgent: ""
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
const userAgent = window.navigator.userAgent.toLowerCase();
|
|
82
|
-
const isMobileUA = /mobile|android|iphone|ipod|phone/.test(userAgent);
|
|
83
|
-
const isTabletUA = /tablet|ipad/.test(userAgent) && !isMobileUA;
|
|
84
|
-
const isDesktopUA = !isMobileUA && !isTabletUA;
|
|
85
|
-
return {
|
|
86
|
-
isMobileUA,
|
|
87
|
-
isTabletUA,
|
|
88
|
-
isDesktopUA,
|
|
89
|
-
userAgent
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
93
|
-
0 && (module.exports = {
|
|
94
|
-
getUserAgentInfo,
|
|
95
|
-
useDevice
|
|
96
|
-
});
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { TabItem, LoadDataParams } from '../types';
|
|
2
|
-
export interface ListState {
|
|
3
|
-
activeTab: string;
|
|
4
|
-
currentPage: number;
|
|
5
|
-
isStickyActive: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare type ListAction = {
|
|
8
|
-
type: 'SET_ACTIVE_TAB';
|
|
9
|
-
payload: string;
|
|
10
|
-
} | {
|
|
11
|
-
type: 'SET_CURRENT_PAGE';
|
|
12
|
-
payload: number;
|
|
13
|
-
} | {
|
|
14
|
-
type: 'SET_STICKY_ACTIVE';
|
|
15
|
-
payload: boolean;
|
|
16
|
-
} | {
|
|
17
|
-
type: 'RESET_PAGE';
|
|
18
|
-
};
|
|
19
|
-
export interface UseListStateProps {
|
|
20
|
-
/** 外部传入的当前页码 */
|
|
21
|
-
externalCurrentPage?: number;
|
|
22
|
-
/** tab数据 */
|
|
23
|
-
tabItems: TabItem[];
|
|
24
|
-
/** 默认页面大小 */
|
|
25
|
-
defaultPageSize: number;
|
|
26
|
-
/** 数据加载回调 */
|
|
27
|
-
onLoadData?: (params: LoadDataParams) => void;
|
|
28
|
-
}
|
|
29
|
-
export interface UseListStateReturn {
|
|
30
|
-
state: ListState;
|
|
31
|
-
setActiveTab: (tab: string) => void;
|
|
32
|
-
setCurrentPage: (page: number) => void;
|
|
33
|
-
setStickyActive: (active: boolean) => void;
|
|
34
|
-
resetPage: () => void;
|
|
35
|
-
handleTabChange: (key: string) => void;
|
|
36
|
-
handlePageChange: (page: number, size?: number) => void;
|
|
37
|
-
handleShowSizeChange: (current: number, size: number) => void;
|
|
38
|
-
handleLoadMore: () => void;
|
|
39
|
-
handleViewLess: () => void;
|
|
40
|
-
handleScrollLoad: () => void;
|
|
41
|
-
actualCurrentPage: number;
|
|
42
|
-
}
|
|
43
|
-
export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, }: UseListStateProps) => UseListStateReturn;
|