@pisell/private-materials 6.4.55 → 6.4.57
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/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/actionButtons/index.js +15 -7
- package/es/components/booking/components/footer/amount.js +1 -1
- package/es/components/booking/components/footer/index.js +2 -2
- package/es/components/booking/components/footer/utils.js +8 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +23 -19
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/info2/cartClientCard/index.js +7 -3
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/checkout/PaymentModal.js +34 -28
- package/es/components/checkout/hooks/useWalletPass.js +36 -21
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/list/List.js +957 -0
- package/es/components/list/List.less +2 -0
- package/es/components/list/ResponsiveWrapper.js +130 -0
- package/es/components/list/TestResponsiveWrapper.js +816 -0
- package/es/components/list/TestResponsiveWrapper.less +968 -0
- package/es/components/list/components/EmptyState/EmptyState.js +75 -0
- package/es/components/list/components/EmptyState/EmptyState.less +121 -0
- package/es/components/list/components/EmptyState/index.js +1 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +39 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
- package/es/components/list/components/ListItemSkeleton/index.js +2 -0
- package/es/components/list/components/Pagination/Pagination.js +240 -0
- package/es/components/list/components/Pagination/Pagination.less +439 -0
- package/es/components/list/components/Pagination/index.js +1 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.js +18 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
- package/es/components/list/components/ScrollLoader/index.js +1 -0
- package/es/components/list/components/Tab/Tab.js +43 -0
- package/es/components/list/components/Tab/Tab.less +139 -0
- package/es/components/list/components/Tab/index.js +1 -0
- package/es/components/list/components/Tab/types.js +1 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.js +28 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
- package/es/components/list/components/TabSkeleton/index.js +2 -0
- package/es/components/list/components/WaterfallList/WaterfallList.js +191 -0
- package/es/components/list/components/WaterfallList/WaterfallList.less +201 -0
- package/es/components/list/components/WaterfallList/index.js +1 -0
- package/es/components/list/examples/GroupedListExample.js +207 -0
- package/es/components/list/hooks/index.js +3 -0
- package/es/components/list/hooks/useDevice.js +102 -0
- package/es/components/list/hooks/useListState.js +176 -0
- package/es/components/list/hooks/useWaterfall.js +161 -0
- package/es/components/list/index.js +7 -0
- package/es/components/list/locales.js +107 -0
- package/es/components/list/styles/base.less +39 -0
- package/es/components/list/styles/content.less +416 -0
- package/es/components/list/styles/floatButton.less +107 -0
- package/es/components/list/styles/footer.less +49 -0
- package/es/components/list/styles/header.less +69 -0
- package/es/components/list/styles/responsive.less +166 -0
- package/es/components/list/types.js +1 -0
- package/es/components/list/utils/getText.js +150 -0
- package/es/components/list/utils/index.js +5 -0
- package/es/components/pay/toB/store/hooks.js +19 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +143 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +7 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +273 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +130 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
- package/es/components/ticketBooking/components/menuBar/index.js +40 -17
- package/es/components/ticketBooking/components/menuBar/index.less +27 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +66 -23
- package/es/components/ticketBooking/components/timeBar/index.less +1 -0
- package/es/components/ticketBooking/context/IsActiveContext.js +37 -0
- package/es/components/ticketBooking/context/OsKeyContext.js +37 -0
- package/es/components/ticketBooking/context/index.js +2 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +13 -1
- package/es/components/ticketBooking/hooks/pisellos/index.js +2 -1
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +50 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +43 -9
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +5 -2
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +7 -2
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +17 -0
- package/es/components/ticketBooking/index.d.ts +6 -0
- package/es/components/ticketBooking/index.js +86 -11
- package/es/components/ticketBooking/utils/index.js +50 -1
- package/es/components/ticketBooking/utils/productCache.js +184 -0
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/es/index.js +3 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +100 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +32 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +239 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +33 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +75 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +53 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +58 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +85 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +121 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +47 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +55 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.js +38 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.js +41 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.js +481 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.js +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.js +21 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +7 -5
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/actionButtons/index.js +22 -15
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.js +2 -2
- package/lib/components/booking/components/footer/utils.js +8 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +33 -40
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/info2/cartClientCard/index.js +7 -3
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/checkout/PaymentModal.js +20 -16
- package/lib/components/checkout/hooks/useWalletPass.js +57 -45
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/list/List.js +771 -0
- package/lib/components/list/List.less +2 -0
- package/lib/components/list/ResponsiveWrapper.js +145 -0
- package/lib/components/list/TestResponsiveWrapper.js +493 -0
- package/lib/components/list/TestResponsiveWrapper.less +968 -0
- package/lib/components/list/components/EmptyState/EmptyState.js +75 -0
- package/lib/components/list/components/EmptyState/EmptyState.less +121 -0
- package/lib/components/list/components/EmptyState/index.js +35 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +75 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
- package/lib/components/list/components/ListItemSkeleton/index.js +41 -0
- package/lib/components/list/components/Pagination/Pagination.js +205 -0
- package/lib/components/list/components/Pagination/Pagination.less +439 -0
- package/lib/components/list/components/Pagination/index.js +35 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.js +37 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
- package/lib/components/list/components/ScrollLoader/index.js +35 -0
- package/lib/components/list/components/Tab/Tab.js +72 -0
- package/lib/components/list/components/Tab/Tab.less +139 -0
- package/lib/components/list/components/Tab/index.js +35 -0
- package/lib/components/list/components/Tab/types.js +17 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.js +61 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
- package/lib/components/list/components/TabSkeleton/index.js +41 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.js +178 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.less +201 -0
- package/lib/components/list/components/WaterfallList/index.js +35 -0
- package/lib/components/list/examples/GroupedListExample.js +210 -0
- package/lib/components/list/hooks/index.js +47 -0
- package/lib/components/list/hooks/useDevice.js +96 -0
- package/lib/components/list/hooks/useListState.js +149 -0
- package/lib/components/list/hooks/useWaterfall.js +124 -0
- package/lib/components/list/index.js +60 -0
- package/lib/components/list/locales.js +113 -0
- package/lib/components/list/styles/base.less +39 -0
- package/lib/components/list/styles/content.less +416 -0
- package/lib/components/list/styles/floatButton.less +107 -0
- package/lib/components/list/styles/footer.less +49 -0
- package/lib/components/list/styles/header.less +69 -0
- package/lib/components/list/styles/responsive.less +166 -0
- package/lib/components/list/types.js +17 -0
- package/lib/components/list/utils/getText.js +95 -0
- package/lib/components/list/utils/index.js +43 -0
- package/lib/components/pay/toB/store/hooks.js +16 -8
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +165 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +45 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +247 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +100 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +45 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
- package/lib/components/ticketBooking/components/menuBar/index.js +24 -18
- package/lib/components/ticketBooking/components/menuBar/index.less +27 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +56 -25
- package/lib/components/ticketBooking/components/timeBar/index.less +1 -0
- package/lib/components/ticketBooking/context/IsActiveContext.js +56 -0
- package/lib/components/ticketBooking/context/OsKeyContext.js +56 -0
- package/lib/components/ticketBooking/context/index.js +44 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.js +3 -1
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +47 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +17 -10
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +26 -4
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +4 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +6 -2
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +37 -0
- package/lib/components/ticketBooking/index.d.ts +6 -0
- package/lib/components/ticketBooking/index.js +64 -8
- package/lib/components/ticketBooking/utils/index.js +70 -2
- package/lib/components/ticketBooking/utils/productCache.js +144 -0
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/lib/index.js +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +129 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +52 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +178 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +52 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +63 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +131 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +62 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +78 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +94 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +115 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +139 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +49 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +83 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.js +68 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +65 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.js +501 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.js +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +37 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
- package/lowcode/sku-card/meta.ts +1812 -0
- package/lowcode/sku-card/snippets.ts +372 -0
- package/lowcode/sku-list/meta.ts +410 -0
- package/package.json +1 -1
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/es/components/ticketBooking/utils/index.d.ts +0 -62
- package/es/index.d.ts +0 -63
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -12
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/lib/components/ticketBooking/utils/index.d.ts +0 -62
- package/lib/index.d.ts +0 -63
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -12
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.pisell-list-tab-skeleton {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
padding: 12px 0;
|
|
6
|
+
|
|
7
|
+
&__item {
|
|
8
|
+
height: 40px;
|
|
9
|
+
width: 110px;
|
|
10
|
+
background: linear-gradient(
|
|
11
|
+
90deg,
|
|
12
|
+
#f0f0f0 25%,
|
|
13
|
+
#e0e0e0 50%,
|
|
14
|
+
#f0f0f0 75%
|
|
15
|
+
);
|
|
16
|
+
background-size: 200% 100%;
|
|
17
|
+
border-radius: 20px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--animated &__item {
|
|
21
|
+
animation: skeleton-loading 1.5s ease-in-out infinite;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&--anchor &__item {
|
|
25
|
+
height: 36px;
|
|
26
|
+
border-radius: 6px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes skeleton-loading {
|
|
31
|
+
0% {
|
|
32
|
+
background-position: 200% 0;
|
|
33
|
+
}
|
|
34
|
+
100% {
|
|
35
|
+
background-position: -200% 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
+
import React, { isValidElement, cloneElement } from 'react';
|
|
14
|
+
import "./WaterfallList.less";
|
|
15
|
+
var WaterfallList = function WaterfallList(props) {
|
|
16
|
+
var layout = props.layout,
|
|
17
|
+
layoutDirection = props.layoutDirection,
|
|
18
|
+
columnGap = props.columnGap,
|
|
19
|
+
rowGap = props.rowGap,
|
|
20
|
+
columns = props.columns,
|
|
21
|
+
rows = props.rows,
|
|
22
|
+
registerItemRef = props.registerItemRef,
|
|
23
|
+
children = props.children,
|
|
24
|
+
renderItem = props.renderItem;
|
|
25
|
+
var hasChildren = children && React.Children.count(children) > 0;
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: "waterfall-container",
|
|
28
|
+
style: _objectSpread({
|
|
29
|
+
display: 'flex',
|
|
30
|
+
// 垂直模式:轨道间距用列间距,水平模式:轨道间距用行间距
|
|
31
|
+
gap: layoutDirection === 'vertical' ? "".concat(columnGap, "px") : "".concat(rowGap, "px"),
|
|
32
|
+
width: '100%',
|
|
33
|
+
flexDirection: layoutDirection === 'vertical' ? 'row' : 'column',
|
|
34
|
+
// 垂直模式时轨道横向排列,水平模式时轨道纵向排列
|
|
35
|
+
alignItems: 'flex-start'
|
|
36
|
+
}, layoutDirection === 'horizontal' && {
|
|
37
|
+
minHeight: 'fit-content',
|
|
38
|
+
height: 'auto'
|
|
39
|
+
})
|
|
40
|
+
}, false && /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
style: {
|
|
42
|
+
position: 'absolute',
|
|
43
|
+
top: '-30px',
|
|
44
|
+
left: 0,
|
|
45
|
+
fontSize: '12px',
|
|
46
|
+
color: '#666',
|
|
47
|
+
background: '#f0f0f0',
|
|
48
|
+
padding: '4px 8px',
|
|
49
|
+
borderRadius: '4px',
|
|
50
|
+
zIndex: 1000
|
|
51
|
+
}
|
|
52
|
+
}, "\u8F68\u9053\u6570: ", layout.tracks.length, " | \u6A21\u5F0F: ", layoutDirection, " | ", layoutDirection === 'vertical' ? "Columns: ".concat(columns) : "Rows: ".concat(rows)), layout.tracks.map(function (track, trackIndex) {
|
|
53
|
+
// 计算全局索引起点
|
|
54
|
+
var globalIndex = 0;
|
|
55
|
+
for (var i = 0; i < trackIndex; i++) {
|
|
56
|
+
globalIndex += layout.tracks[i].items.length;
|
|
57
|
+
}
|
|
58
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
key: trackIndex,
|
|
60
|
+
className: "waterfall-track waterfall-track-".concat(layoutDirection),
|
|
61
|
+
style: _objectSpread({
|
|
62
|
+
// 垂直模式:每列等宽不收缩,水平模式:每行自适应高度
|
|
63
|
+
flex: layoutDirection === 'vertical' ? '1 0 0' : '0 0 auto',
|
|
64
|
+
display: 'flex',
|
|
65
|
+
flexDirection: layoutDirection === 'vertical' ? 'column' : 'row',
|
|
66
|
+
// 垂直模式时轨道内垂直排列,水平模式时轨道内水平排列
|
|
67
|
+
// 垂直模式:轨道内用行间距,水平模式:轨道内用列间距
|
|
68
|
+
gap: layoutDirection === 'vertical' ? "".concat(rowGap, "px") : "".concat(columnGap, "px")
|
|
69
|
+
}, layoutDirection === 'horizontal' && {
|
|
70
|
+
width: '100%',
|
|
71
|
+
minHeight: '120px',
|
|
72
|
+
// 确保行有最小高度
|
|
73
|
+
alignItems: 'flex-start'
|
|
74
|
+
})
|
|
75
|
+
}, track.items.map(function (item, trackItemIndex) {
|
|
76
|
+
var itemIndex = globalIndex + trackItemIndex;
|
|
77
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
key: item.id || "".concat(trackIndex, "-").concat(trackItemIndex),
|
|
79
|
+
className: "list-item waterfall-item",
|
|
80
|
+
ref: function ref(el) {
|
|
81
|
+
return registerItemRef(item.id || "".concat(trackIndex, "-").concat(trackItemIndex), el);
|
|
82
|
+
},
|
|
83
|
+
style: _objectSpread({}, layoutDirection === 'vertical' ? {
|
|
84
|
+
width: '100%',
|
|
85
|
+
height: item.height ? "".concat(item.height, "px") : 'auto',
|
|
86
|
+
minHeight: 'unset',
|
|
87
|
+
maxHeight: 'none',
|
|
88
|
+
flexShrink: 0,
|
|
89
|
+
flexGrow: 0,
|
|
90
|
+
boxSizing: 'border-box',
|
|
91
|
+
overflow: 'hidden',
|
|
92
|
+
// 防止内容溢出
|
|
93
|
+
position: 'relative' // 为调试信息定位
|
|
94
|
+
} // 垂直模式:项目填满列宽并设置高度
|
|
95
|
+
: {
|
|
96
|
+
width: item.width ? "".concat(item.width, "px") : 'auto',
|
|
97
|
+
flexShrink: 0 // 水平模式:保持预设宽度,不收缩
|
|
98
|
+
})
|
|
99
|
+
}, false && layoutDirection === 'vertical' && /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
style: {
|
|
101
|
+
position: 'absolute',
|
|
102
|
+
top: '4px',
|
|
103
|
+
right: '4px',
|
|
104
|
+
backgroundColor: 'rgba(0, 255, 0, 0.8)',
|
|
105
|
+
color: 'white',
|
|
106
|
+
fontSize: '10px',
|
|
107
|
+
padding: '2px 4px',
|
|
108
|
+
borderRadius: '2px',
|
|
109
|
+
zIndex: 1000
|
|
110
|
+
}
|
|
111
|
+
}, "\u5BB9\u5668: ", item.height, "px"), hasChildren ? React.Children.map(children, function (child, childIndex) {
|
|
112
|
+
if ( /*#__PURE__*/isValidElement(child)) {
|
|
113
|
+
return /*#__PURE__*/cloneElement(child, _objectSpread(_objectSpread({}, child.props), {}, {
|
|
114
|
+
item: item,
|
|
115
|
+
index: itemIndex,
|
|
116
|
+
key: "".concat(item.id || "".concat(trackIndex, "-").concat(trackItemIndex), "-").concat(childIndex)
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
return child;
|
|
120
|
+
}) : renderItem ? renderItem(item, itemIndex) :
|
|
121
|
+
/*#__PURE__*/
|
|
122
|
+
// 瀑布流的默认渲染 - 高度由容器控制
|
|
123
|
+
React.createElement("div", {
|
|
124
|
+
className: "default-waterfall-item",
|
|
125
|
+
style: _objectSpread(_objectSpread({}, layoutDirection === 'horizontal' && {
|
|
126
|
+
width: item.width ? "".concat(item.width, "px") : '200px',
|
|
127
|
+
minHeight: '120px',
|
|
128
|
+
flexShrink: 0
|
|
129
|
+
}), {}, {
|
|
130
|
+
padding: '16px',
|
|
131
|
+
backgroundColor: '#fff',
|
|
132
|
+
borderRadius: '8px',
|
|
133
|
+
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)',
|
|
134
|
+
border: '1px solid #f0f0f0',
|
|
135
|
+
display: 'flex',
|
|
136
|
+
flexDirection: 'column',
|
|
137
|
+
// 调试用:显示实际高度
|
|
138
|
+
position: 'relative',
|
|
139
|
+
// 填充容器高度
|
|
140
|
+
height: '100%',
|
|
141
|
+
boxSizing: 'border-box'
|
|
142
|
+
})
|
|
143
|
+
}, item.title && /*#__PURE__*/React.createElement("h3", {
|
|
144
|
+
style: {
|
|
145
|
+
margin: '0 0 12px 0',
|
|
146
|
+
fontSize: '16px',
|
|
147
|
+
fontWeight: 500,
|
|
148
|
+
color: '#333'
|
|
149
|
+
}
|
|
150
|
+
}, item.title), item.name && !item.title && /*#__PURE__*/React.createElement("h3", {
|
|
151
|
+
style: {
|
|
152
|
+
margin: '0 0 12px 0',
|
|
153
|
+
fontSize: '16px',
|
|
154
|
+
fontWeight: 500,
|
|
155
|
+
color: '#333'
|
|
156
|
+
}
|
|
157
|
+
}, item.name), item.content && /*#__PURE__*/React.createElement("p", {
|
|
158
|
+
style: {
|
|
159
|
+
margin: 0,
|
|
160
|
+
fontSize: '14px',
|
|
161
|
+
lineHeight: '1.5',
|
|
162
|
+
color: '#666'
|
|
163
|
+
}
|
|
164
|
+
}, item.content), item.description && !item.content && /*#__PURE__*/React.createElement("p", {
|
|
165
|
+
style: {
|
|
166
|
+
margin: 0,
|
|
167
|
+
fontSize: '14px',
|
|
168
|
+
lineHeight: '1.5',
|
|
169
|
+
color: '#666'
|
|
170
|
+
}
|
|
171
|
+
}, item.description), !item.title && !item.name && !item.content && !item.description && /*#__PURE__*/React.createElement("div", {
|
|
172
|
+
style: {
|
|
173
|
+
fontSize: '14px',
|
|
174
|
+
color: '#999',
|
|
175
|
+
wordBreak: 'break-all'
|
|
176
|
+
}
|
|
177
|
+
}, _typeof(item) === 'object' ? Object.entries(item).slice(0, 3).map(function (_ref) {
|
|
178
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
179
|
+
key = _ref2[0],
|
|
180
|
+
value = _ref2[1];
|
|
181
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
182
|
+
key: key,
|
|
183
|
+
style: {
|
|
184
|
+
marginBottom: '4px'
|
|
185
|
+
}
|
|
186
|
+
}, /*#__PURE__*/React.createElement("strong", null, key, ":"), " ", String(value));
|
|
187
|
+
}) : String(item))));
|
|
188
|
+
}));
|
|
189
|
+
}));
|
|
190
|
+
};
|
|
191
|
+
export default WaterfallList;
|
|
@@ -0,0 +1,201 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./WaterfallList";
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useState } from 'react';
|
|
8
|
+
import { List } from "../index";
|
|
9
|
+
|
|
10
|
+
// 示例数据接口
|
|
11
|
+
|
|
12
|
+
// 示例组件:门票列表展示
|
|
13
|
+
var GroupedListExample = function GroupedListExample() {
|
|
14
|
+
// 模拟门票数据 - 使用 ticketType 字段进行分组
|
|
15
|
+
var mockTicketData = [{
|
|
16
|
+
id: '1',
|
|
17
|
+
title: '2hrs upgrade Unlimited',
|
|
18
|
+
description: 'Adult Day',
|
|
19
|
+
price: 90,
|
|
20
|
+
duration: '2 h',
|
|
21
|
+
ticketType: 'all-access',
|
|
22
|
+
category: 'Adult Day Pass'
|
|
23
|
+
}, {
|
|
24
|
+
id: '2',
|
|
25
|
+
title: '2hrs upgrade Unlimited',
|
|
26
|
+
description: 'Kid Day',
|
|
27
|
+
price: 90,
|
|
28
|
+
duration: '2 h',
|
|
29
|
+
ticketType: 'all-access',
|
|
30
|
+
category: 'Kids Day Pass'
|
|
31
|
+
}, {
|
|
32
|
+
id: '3',
|
|
33
|
+
title: '2hrs upgrade Unlimited',
|
|
34
|
+
description: 'Family Package',
|
|
35
|
+
price: 90,
|
|
36
|
+
duration: '2 h',
|
|
37
|
+
ticketType: 'all-access',
|
|
38
|
+
category: 'Family Pass'
|
|
39
|
+
}, {
|
|
40
|
+
id: '4',
|
|
41
|
+
title: 'Child Ticket - Morning',
|
|
42
|
+
description: 'Special price for children',
|
|
43
|
+
price: 45,
|
|
44
|
+
duration: '4 h',
|
|
45
|
+
ticketType: 'child',
|
|
46
|
+
category: 'Morning Session'
|
|
47
|
+
}, {
|
|
48
|
+
id: '5',
|
|
49
|
+
title: 'Child Ticket - Afternoon',
|
|
50
|
+
description: 'Afternoon activities',
|
|
51
|
+
price: 45,
|
|
52
|
+
duration: '4 h',
|
|
53
|
+
ticketType: 'child',
|
|
54
|
+
category: 'Afternoon Session'
|
|
55
|
+
}, {
|
|
56
|
+
id: '6',
|
|
57
|
+
title: 'Adult Standard',
|
|
58
|
+
description: 'Standard adult admission',
|
|
59
|
+
price: 70,
|
|
60
|
+
duration: '6 h',
|
|
61
|
+
ticketType: 'adult',
|
|
62
|
+
category: 'Standard Admission'
|
|
63
|
+
}, {
|
|
64
|
+
id: '7',
|
|
65
|
+
title: 'Adult Premium',
|
|
66
|
+
description: 'Premium experience',
|
|
67
|
+
price: 120,
|
|
68
|
+
duration: '8 h',
|
|
69
|
+
ticketType: 'adult',
|
|
70
|
+
category: 'Premium Experience'
|
|
71
|
+
}, {
|
|
72
|
+
id: '8',
|
|
73
|
+
title: 'Special Event',
|
|
74
|
+
description: 'Limited time offer',
|
|
75
|
+
price: 150,
|
|
76
|
+
duration: '3 h',
|
|
77
|
+
ticketType: 'category5',
|
|
78
|
+
category: 'Special Event'
|
|
79
|
+
}];
|
|
80
|
+
|
|
81
|
+
// Tab配置,group值对应数据中 ticketType 字段的值
|
|
82
|
+
var tabItems = [{
|
|
83
|
+
key: 'all-access',
|
|
84
|
+
label: "All-Access Ticket (".concat(mockTicketData.filter(function (item) {
|
|
85
|
+
return item.ticketType === 'all-access';
|
|
86
|
+
}).length, ")"),
|
|
87
|
+
group: 'all-access'
|
|
88
|
+
}, {
|
|
89
|
+
key: 'child',
|
|
90
|
+
label: "Child Ticket (".concat(mockTicketData.filter(function (item) {
|
|
91
|
+
return item.ticketType === 'child';
|
|
92
|
+
}).length, ")"),
|
|
93
|
+
group: 'child'
|
|
94
|
+
}, {
|
|
95
|
+
key: 'adult',
|
|
96
|
+
label: "Adult Ticket (".concat(mockTicketData.filter(function (item) {
|
|
97
|
+
return item.ticketType === 'adult';
|
|
98
|
+
}).length, ")"),
|
|
99
|
+
group: 'adult'
|
|
100
|
+
}, {
|
|
101
|
+
key: 'category5',
|
|
102
|
+
label: "Category 5 (".concat(mockTicketData.filter(function (item) {
|
|
103
|
+
return item.ticketType === 'category5';
|
|
104
|
+
}).length, ")"),
|
|
105
|
+
group: 'category5'
|
|
106
|
+
}];
|
|
107
|
+
|
|
108
|
+
// 状态管理
|
|
109
|
+
var _useState = useState(mockTicketData),
|
|
110
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
111
|
+
currentData = _useState2[0];
|
|
112
|
+
var _useState3 = useState(false),
|
|
113
|
+
_useState4 = _slicedToArray(_useState3, 1),
|
|
114
|
+
loading = _useState4[0];
|
|
115
|
+
|
|
116
|
+
// 自定义渲染每个门票项
|
|
117
|
+
var renderTicketItem = function renderTicketItem(item, index) {
|
|
118
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
119
|
+
key: item.id,
|
|
120
|
+
style: {
|
|
121
|
+
background: '#FFF',
|
|
122
|
+
borderRadius: '12px',
|
|
123
|
+
padding: '16px',
|
|
124
|
+
border: '1px solid #E4E7EC',
|
|
125
|
+
boxShadow: '0px 1px 2px rgba(16, 24, 40, 0.05)',
|
|
126
|
+
height: '160px',
|
|
127
|
+
display: 'flex',
|
|
128
|
+
flexDirection: 'column',
|
|
129
|
+
justifyContent: 'space-between'
|
|
130
|
+
}
|
|
131
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
132
|
+
style: {
|
|
133
|
+
height: '60px',
|
|
134
|
+
background: "linear-gradient(135deg, ".concat(item.ticketType === 'all-access' ? '#8157D5, #B794F6' : item.ticketType === 'child' ? '#F56565, #FC8181' : item.ticketType === 'adult' ? '#4299E1, #63B3ED' : '#ED8936, #F6AD55', ")"),
|
|
135
|
+
borderRadius: '8px',
|
|
136
|
+
marginBottom: '12px',
|
|
137
|
+
display: 'flex',
|
|
138
|
+
alignItems: 'center',
|
|
139
|
+
justifyContent: 'center',
|
|
140
|
+
color: 'white',
|
|
141
|
+
fontWeight: 'bold',
|
|
142
|
+
fontSize: '18px'
|
|
143
|
+
}
|
|
144
|
+
}, item.description), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h3", {
|
|
145
|
+
style: {
|
|
146
|
+
fontSize: '16px',
|
|
147
|
+
fontWeight: '600',
|
|
148
|
+
margin: '0 0 4px 0',
|
|
149
|
+
color: '#101828'
|
|
150
|
+
}
|
|
151
|
+
}, item.title), /*#__PURE__*/React.createElement("p", {
|
|
152
|
+
style: {
|
|
153
|
+
fontSize: '14px',
|
|
154
|
+
color: '#667085',
|
|
155
|
+
margin: '0 0 8px 0'
|
|
156
|
+
}
|
|
157
|
+
}, item.duration), /*#__PURE__*/React.createElement("p", {
|
|
158
|
+
style: {
|
|
159
|
+
fontSize: '18px',
|
|
160
|
+
fontWeight: '700',
|
|
161
|
+
color: '#101828',
|
|
162
|
+
margin: 0
|
|
163
|
+
}
|
|
164
|
+
}, "A$ ", item.price)));
|
|
165
|
+
};
|
|
166
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
167
|
+
style: {
|
|
168
|
+
padding: '20px',
|
|
169
|
+
maxWidth: '1200px',
|
|
170
|
+
margin: '0 auto'
|
|
171
|
+
}
|
|
172
|
+
}, /*#__PURE__*/React.createElement("h1", {
|
|
173
|
+
style: {
|
|
174
|
+
marginBottom: '20px',
|
|
175
|
+
color: '#101828'
|
|
176
|
+
}
|
|
177
|
+
}, "\u95E8\u7968\u5206\u7EC4\u5C55\u793A\u793A\u4F8B"), /*#__PURE__*/React.createElement(List, {
|
|
178
|
+
data: currentData,
|
|
179
|
+
tabData: tabItems,
|
|
180
|
+
tabGroup: "ticketType" // 指定使用 ticketType 字段进行分组
|
|
181
|
+
,
|
|
182
|
+
tabStyle: "anchor",
|
|
183
|
+
displayStyle: "grid",
|
|
184
|
+
layoutDirection: "vertical",
|
|
185
|
+
columns: 2,
|
|
186
|
+
rows: 2,
|
|
187
|
+
columnGap: 16,
|
|
188
|
+
rowGap: 16,
|
|
189
|
+
height: "600px",
|
|
190
|
+
renderItem: renderTicketItem,
|
|
191
|
+
loading: loading,
|
|
192
|
+
emptyConfig: {
|
|
193
|
+
show: true,
|
|
194
|
+
text: '暂无门票数据',
|
|
195
|
+
description: '请稍后再试'
|
|
196
|
+
},
|
|
197
|
+
className: "ticket-list-example"
|
|
198
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
199
|
+
style: {
|
|
200
|
+
marginTop: '20px',
|
|
201
|
+
padding: '16px',
|
|
202
|
+
background: '#F8F9FA',
|
|
203
|
+
borderRadius: '8px'
|
|
204
|
+
}
|
|
205
|
+
}, /*#__PURE__*/React.createElement("h3", null, "\u4F7F\u7528\u8BF4\u660E\uFF1A"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "\u901A\u8FC7 ", /*#__PURE__*/React.createElement("code", null, "tabGroup=\"ticketType\""), " \u6307\u5B9A\u4F7F\u7528\u6570\u636E\u9879\u7684 ticketType \u5B57\u6BB5\u8FDB\u884C\u5206\u7EC4"), /*#__PURE__*/React.createElement("li", null, "Tab\u7684 group \u5C5E\u6027\u503C\u5BF9\u5E94\u6570\u636E\u9879\u4E2D ticketType \u5B57\u6BB5\u7684\u503C"), /*#__PURE__*/React.createElement("li", null, "\u70B9\u51FB\u4E0D\u540C\u7684\u6807\u7B7E\u9875\u53EF\u4EE5\u67E5\u770B\u4E0D\u540C\u5206\u7EC4\u7684\u95E8\u7968"), /*#__PURE__*/React.createElement("li", null, "\u6570\u636E\u4F1A\u6839\u636E\u9009\u62E9\u7684\u5206\u7EC4\u81EA\u52A8\u8FC7\u6EE4"), /*#__PURE__*/React.createElement("li", null, "\u6BCF\u4E2A\u6807\u7B7E\u9875\u663E\u793A\u5BF9\u5E94\u5206\u7EC4\u7684\u6570\u91CF"), /*#__PURE__*/React.createElement("li", null, "\u652F\u6301\u6240\u6709\u73B0\u6709\u7684List\u7EC4\u4EF6\u5E03\u5C40\u548C\u5206\u9875\u6A21\u5F0F"))));
|
|
206
|
+
};
|
|
207
|
+
export default GroupedListExample;
|