@pisell/private-materials 6.5.15 → 6.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -0
- package/package.json +1 -1
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/footer/amount.d.ts +0 -36
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/footer/utils.d.ts +0 -41
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/forms/footer.d.ts +0 -6
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/checkout/PaymentModal.d.ts +0 -31
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
- package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/es/components/list/List.d.ts +0 -5
- package/es/components/list/ResponsiveWrapper.d.ts +0 -16
- package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/es/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/es/components/list/components/EmptyState/index.d.ts +0 -2
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/es/components/list/components/Pagination/index.d.ts +0 -1
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/examples/GroupedListExample.d.ts +0 -3
- package/es/components/list/hooks/index.d.ts +0 -5
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useListState.d.ts +0 -43
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/index.d.ts +0 -10
- package/es/components/list/locales.d.ts +0 -66
- package/es/components/list/types.d.ts +0 -177
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/index.d.ts +0 -4
- package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/types/index.d.ts +0 -72
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -7
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -6
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- 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/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/es/components/ticketBooking/index.d.ts +0 -15
- package/es/components/ticketBooking/utils/index.d.ts +0 -90
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/hooks/printer.d.ts +0 -4
- package/es/index.d.ts +0 -65
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -3
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/footer/amount.d.ts +0 -36
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/footer/utils.d.ts +0 -41
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/forms/footer.d.ts +0 -6
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/checkout/PaymentModal.d.ts +0 -31
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +0 -24
- package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/lib/components/list/List.d.ts +0 -5
- package/lib/components/list/ResponsiveWrapper.d.ts +0 -16
- package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/lib/components/list/components/EmptyState/EmptyState.d.ts +0 -20
- package/lib/components/list/components/EmptyState/index.d.ts +0 -2
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/Pagination/Pagination.d.ts +0 -30
- package/lib/components/list/components/Pagination/index.d.ts +0 -1
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/examples/GroupedListExample.d.ts +0 -3
- package/lib/components/list/hooks/index.d.ts +0 -5
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useListState.d.ts +0 -43
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/index.d.ts +0 -10
- package/lib/components/list/locales.d.ts +0 -66
- package/lib/components/list/types.d.ts +0 -177
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/index.d.ts +0 -4
- package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/types/index.d.ts +0 -72
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -27
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.d.ts +0 -7
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +0 -50
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -31
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -10
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -7
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -6
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- 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/hooks/pisellos/useShopDiscountModule.d.ts +0 -6
- package/lib/components/ticketBooking/index.d.ts +0 -15
- package/lib/components/ticketBooking/utils/index.d.ts +0 -90
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/hooks/printer.d.ts +0 -4
- package/lib/index.d.ts +0 -65
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +0 -3
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -42
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -162
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -14
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
en: {
|
|
3
|
-
'pisell-list-tab-group-default': string;
|
|
4
|
-
'pisell-list-empty-text-default': string;
|
|
5
|
-
'pisell-list-load-more': string;
|
|
6
|
-
'pisell-list-view-less': string;
|
|
7
|
-
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
8
|
-
'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
|
|
9
|
-
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
10
|
-
'pisell-list-pagination-previous': string;
|
|
11
|
-
'pisell-list-pagination-next': string;
|
|
12
|
-
'pisell-list-scroll-down': string;
|
|
13
|
-
'pisell-list-scroll-right': string;
|
|
14
|
-
'pisell-list-scroll-to-bottom': string;
|
|
15
|
-
'pisell-list-scroll-to-end': string;
|
|
16
|
-
'pisell-list-loading': string;
|
|
17
|
-
'pisell-list-loading-more': string;
|
|
18
|
-
'pisell-list-no-more-data': string;
|
|
19
|
-
'pisell-list-group-title-all': string;
|
|
20
|
-
'pisell-list-load-error': string;
|
|
21
|
-
'pisell-list-retry': string;
|
|
22
|
-
};
|
|
23
|
-
'zh-CN': {
|
|
24
|
-
'pisell-list-tab-group-default': string;
|
|
25
|
-
'pisell-list-empty-text-default': string;
|
|
26
|
-
'pisell-list-load-more': string;
|
|
27
|
-
'pisell-list-view-less': string;
|
|
28
|
-
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
29
|
-
'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
|
|
30
|
-
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
31
|
-
'pisell-list-pagination-previous': string;
|
|
32
|
-
'pisell-list-pagination-next': string;
|
|
33
|
-
'pisell-list-scroll-down': string;
|
|
34
|
-
'pisell-list-scroll-right': string;
|
|
35
|
-
'pisell-list-scroll-to-bottom': string;
|
|
36
|
-
'pisell-list-scroll-to-end': string;
|
|
37
|
-
'pisell-list-loading': string;
|
|
38
|
-
'pisell-list-loading-more': string;
|
|
39
|
-
'pisell-list-no-more-data': string;
|
|
40
|
-
'pisell-list-group-title-all': string;
|
|
41
|
-
'pisell-list-load-error': string;
|
|
42
|
-
'pisell-list-retry': string;
|
|
43
|
-
};
|
|
44
|
-
'zh-HK': {
|
|
45
|
-
'pisell-list-tab-group-default': string;
|
|
46
|
-
'pisell-list-empty-text-default': string;
|
|
47
|
-
'pisell-list-load-more': string;
|
|
48
|
-
'pisell-list-view-less': string;
|
|
49
|
-
'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
|
|
50
|
-
'pisell-list-pagination-total-fallback': (start: number, end: number, total: number) => string;
|
|
51
|
-
'pisell-list-pagination-page-of': (current: number, total: number) => string;
|
|
52
|
-
'pisell-list-pagination-previous': string;
|
|
53
|
-
'pisell-list-pagination-next': string;
|
|
54
|
-
'pisell-list-scroll-down': string;
|
|
55
|
-
'pisell-list-scroll-right': string;
|
|
56
|
-
'pisell-list-scroll-to-bottom': string;
|
|
57
|
-
'pisell-list-scroll-to-end': string;
|
|
58
|
-
'pisell-list-loading': string;
|
|
59
|
-
'pisell-list-loading-more': string;
|
|
60
|
-
'pisell-list-no-more-data': string;
|
|
61
|
-
'pisell-list-group-title-all': string;
|
|
62
|
-
'pisell-list-load-error': string;
|
|
63
|
-
'pisell-list-retry': string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
export default _default;
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
-
/** 设备类型 */
|
|
3
|
-
export declare type DeviceType = 'pc' | 'pad' | 'mobile';
|
|
4
|
-
/** 设备信息 */
|
|
5
|
-
export interface DeviceInfo {
|
|
6
|
-
type: DeviceType;
|
|
7
|
-
isMobile: boolean;
|
|
8
|
-
isPad: boolean;
|
|
9
|
-
isPc: boolean;
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
}
|
|
13
|
-
/** 响应式配置接口 */
|
|
14
|
-
export interface ResponsiveConfig {
|
|
15
|
-
/** PC端特定配置 */
|
|
16
|
-
pc?: Partial<ListProps>;
|
|
17
|
-
/** 平板端特定配置 */
|
|
18
|
-
pad?: Partial<ListProps>;
|
|
19
|
-
/** 移动端特定配置 */
|
|
20
|
-
mobile?: Partial<ListProps>;
|
|
21
|
-
}
|
|
22
|
-
/** 响应式Props接口 - 继承ListProps并添加responsive属性 */
|
|
23
|
-
export interface ResponsiveProps extends ListProps {
|
|
24
|
-
/** 响应式配置 */
|
|
25
|
-
responsive?: ResponsiveConfig;
|
|
26
|
-
}
|
|
27
|
-
/** ResponsiveWrapper 组件属性 */
|
|
28
|
-
export interface ResponsiveWrapperProps extends ResponsiveProps {
|
|
29
|
-
/** 子元素 */
|
|
30
|
-
children?: ReactNode;
|
|
31
|
-
}
|
|
32
|
-
/** 基础列表项接口 */
|
|
33
|
-
export interface BaseListItem {
|
|
34
|
-
/** 唯一标识 */
|
|
35
|
-
id: string | number;
|
|
36
|
-
/** 预设高度(瀑布流模式) */
|
|
37
|
-
height?: number;
|
|
38
|
-
/** 预设宽度(瀑布流模式) */
|
|
39
|
-
width?: number;
|
|
40
|
-
/** 其他任意属性,可以包含用于分组的字段 */
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
}
|
|
43
|
-
/** 空状态配置接口 */
|
|
44
|
-
export interface EmptyStateConfig {
|
|
45
|
-
/** 是否显示空状态 */
|
|
46
|
-
show?: boolean;
|
|
47
|
-
/** 空状态文本 */
|
|
48
|
-
text?: string;
|
|
49
|
-
/** 空状态图标 */
|
|
50
|
-
icon?: ReactNode;
|
|
51
|
-
/** 空状态描述 */
|
|
52
|
-
description?: string;
|
|
53
|
-
}
|
|
54
|
-
/** 分页信息接口 */
|
|
55
|
-
export interface PaginationInfo {
|
|
56
|
-
/** 当前页数 */
|
|
57
|
-
current?: number;
|
|
58
|
-
/** 总页数 */
|
|
59
|
-
total?: number;
|
|
60
|
-
/** 总数据条数 */
|
|
61
|
-
totalCount?: number;
|
|
62
|
-
}
|
|
63
|
-
/** 布局配置接口 */
|
|
64
|
-
export interface LayoutConfig {
|
|
65
|
-
/** 显示样式 */
|
|
66
|
-
displayStyle?: 'grid' | 'waterfall';
|
|
67
|
-
/** 排版方式 */
|
|
68
|
-
layoutDirection?: 'horizontal' | 'vertical';
|
|
69
|
-
/** 列数 */
|
|
70
|
-
columns?: number;
|
|
71
|
-
/** 行数 */
|
|
72
|
-
rows?: number;
|
|
73
|
-
/** 列间距 */
|
|
74
|
-
columnGap?: number;
|
|
75
|
-
/** 行间距 */
|
|
76
|
-
rowGap?: number;
|
|
77
|
-
/** 缩放倍率 */
|
|
78
|
-
zoom?: number;
|
|
79
|
-
}
|
|
80
|
-
/** Tab配置接口 */
|
|
81
|
-
export interface TabConfig {
|
|
82
|
-
/** tab样式 */
|
|
83
|
-
tabStyle?: 'anchor' | 'switch' | 'none';
|
|
84
|
-
/** 指定用于分组的数据字段名,例如 'category'、'type' 等 */
|
|
85
|
-
tabGroup?: string;
|
|
86
|
-
/** Tab数据源 */
|
|
87
|
-
tabData?: TabItem[];
|
|
88
|
-
/** 顶部固定 */
|
|
89
|
-
stickyTop?: boolean;
|
|
90
|
-
}
|
|
91
|
-
/** 分页配置接口 */
|
|
92
|
-
export interface PaginationConfig {
|
|
93
|
-
/** 分页方式 */
|
|
94
|
-
paginationType?: 'all' | 'scroll' | 'pager' | 'more';
|
|
95
|
-
/** 默认显示个数 */
|
|
96
|
-
defaultPageSize?: number;
|
|
97
|
-
/** 每次加载个数 */
|
|
98
|
-
pageSize?: number;
|
|
99
|
-
/** 分页信息 */
|
|
100
|
-
pagination?: PaginationInfo;
|
|
101
|
-
}
|
|
102
|
-
/** 泛型List组件Props接口 */
|
|
103
|
-
export interface ListProps<TItem extends BaseListItem = BaseListItem> {
|
|
104
|
-
/** 基础属性 */
|
|
105
|
-
className?: string;
|
|
106
|
-
style?: CSSProperties;
|
|
107
|
-
width?: string | number;
|
|
108
|
-
height?: string | number;
|
|
109
|
-
/** 布局配置 */
|
|
110
|
-
displayStyle?: LayoutConfig['displayStyle'];
|
|
111
|
-
layoutDirection?: LayoutConfig['layoutDirection'];
|
|
112
|
-
columns?: LayoutConfig['columns'];
|
|
113
|
-
rows?: LayoutConfig['rows'];
|
|
114
|
-
columnGap?: LayoutConfig['columnGap'];
|
|
115
|
-
rowGap?: LayoutConfig['rowGap'];
|
|
116
|
-
zoom?: LayoutConfig['zoom'];
|
|
117
|
-
/** Tab配置 */
|
|
118
|
-
tabStyle?: TabConfig['tabStyle'];
|
|
119
|
-
tabGroup?: TabConfig['tabGroup'];
|
|
120
|
-
tabData?: TabConfig['tabData'];
|
|
121
|
-
stickyTop?: TabConfig['stickyTop'];
|
|
122
|
-
/** 分页配置 */
|
|
123
|
-
paginationType?: PaginationConfig['paginationType'];
|
|
124
|
-
defaultPageSize?: PaginationConfig['defaultPageSize'];
|
|
125
|
-
pageSize?: PaginationConfig['pageSize'];
|
|
126
|
-
pagination?: PaginationConfig['pagination'];
|
|
127
|
-
/** 数据和渲染 */
|
|
128
|
-
data?: TItem[];
|
|
129
|
-
children?: ReactNode;
|
|
130
|
-
renderItem?: (item: TItem, index: number) => ReactNode;
|
|
131
|
-
/** 回调函数 */
|
|
132
|
-
onLoadData?: (params: LoadDataParams) => void;
|
|
133
|
-
/** 状态配置 */
|
|
134
|
-
emptyConfig?: EmptyStateConfig;
|
|
135
|
-
loading?: boolean;
|
|
136
|
-
}
|
|
137
|
-
/** 向后兼容的非泛型版本 */
|
|
138
|
-
export interface LegacyListProps extends ListProps<any> {
|
|
139
|
-
/** 兼容旧的any[]类型 */
|
|
140
|
-
data?: any[];
|
|
141
|
-
renderItem?: (item: any, index: number) => ReactNode;
|
|
142
|
-
}
|
|
143
|
-
export interface TabItem {
|
|
144
|
-
/** 唯一标识,同时用作anchor模式下的锚点标识 */
|
|
145
|
-
key: string;
|
|
146
|
-
/** 显示文本 */
|
|
147
|
-
label: string;
|
|
148
|
-
/** 分组值,对应数据项中 tabGroup 指定字段的值 */
|
|
149
|
-
group?: string;
|
|
150
|
-
/** 是否禁用 */
|
|
151
|
-
disabled?: boolean;
|
|
152
|
-
}
|
|
153
|
-
export interface LoadMoreParams {
|
|
154
|
-
/** 当前页码 */
|
|
155
|
-
currentPage: number;
|
|
156
|
-
/** 每页数量 */
|
|
157
|
-
pageSize: number;
|
|
158
|
-
/** 当前tab */
|
|
159
|
-
activeTab?: string;
|
|
160
|
-
}
|
|
161
|
-
/** 数据加载触发类型 */
|
|
162
|
-
export declare type LoadDataTrigger = 'tabChange' | 'pagination' | 'pageSize' | 'loadMore' | 'scroll';
|
|
163
|
-
/** 统一的数据加载参数 */
|
|
164
|
-
export interface LoadDataParams {
|
|
165
|
-
/** 触发类型 */
|
|
166
|
-
trigger: LoadDataTrigger;
|
|
167
|
-
/** 当前页码 */
|
|
168
|
-
currentPage: number;
|
|
169
|
-
/** 每页数量 */
|
|
170
|
-
pageSize: number;
|
|
171
|
-
/** 当前激活的tab */
|
|
172
|
-
activeTab?: string;
|
|
173
|
-
/** 上一页页码(分页变化时提供) */
|
|
174
|
-
previousPage?: number;
|
|
175
|
-
/** 上一页大小(页大小变化时提供) */
|
|
176
|
-
previousPageSize?: number;
|
|
177
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 国际化文案获取工具函数
|
|
3
|
-
* 参考 AmountSummary 组件的实现方式,使用 useEngineContext 获取语言设置
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* import { useGetText } from './utils';
|
|
8
|
-
* import locales from './locales';
|
|
9
|
-
*
|
|
10
|
-
* const MyComponent = () => {
|
|
11
|
-
* const { getText, getTextFunc } = useGetText(locales);
|
|
12
|
-
*
|
|
13
|
-
* // 获取字符串文案
|
|
14
|
-
* const title = getText('component.title', 'Default Title');
|
|
15
|
-
*
|
|
16
|
-
* // 获取函数类型文案
|
|
17
|
-
* const formatFunc = getTextFunc('component.format');
|
|
18
|
-
* const formattedText = typeof formatFunc === 'function'
|
|
19
|
-
* ? formatFunc(arg1, arg2)
|
|
20
|
-
* : 'Default Text';
|
|
21
|
-
*
|
|
22
|
-
* return <div>{title}</div>;
|
|
23
|
-
* };
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare type SupportedLanguage = 'en' | 'zh-CN' | 'zh-HK';
|
|
27
|
-
export interface LocalesObject {
|
|
28
|
-
[key: string]: {
|
|
29
|
-
[key: string]: string | ((...args: any[]) => string);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export interface GetTextFunctions {
|
|
33
|
-
getText: (key: string, fallback?: string) => string;
|
|
34
|
-
getTextFunc: (key: string) => any;
|
|
35
|
-
getCurrentLanguage: () => string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* 使用 useEngineContext 创建本地化文案获取函数的 Hook
|
|
39
|
-
* @param locales - 本地化文案对象
|
|
40
|
-
* @returns getText 和 getTextFunc 函数
|
|
41
|
-
*/
|
|
42
|
-
export declare const useGetText: (locales: LocalesObject) => GetTextFunctions;
|
|
43
|
-
/**
|
|
44
|
-
* 创建本地化文案获取函数(非 Hook 版本,保持向后兼容)
|
|
45
|
-
* @param locales - 本地化文案对象
|
|
46
|
-
* @returns getText 和 getTextFunc 函数
|
|
47
|
-
* @deprecated 推荐使用 useGetText Hook 版本
|
|
48
|
-
*/
|
|
49
|
-
export declare const createGetText: (locales: LocalesObject) => GetTextFunctions;
|
|
50
|
-
/**
|
|
51
|
-
* 默认导出:直接创建一个通用的 getText 函数工厂
|
|
52
|
-
*/
|
|
53
|
-
export default createGetText;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ToBPayContextType } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* 使用商家端支付的Hook
|
|
4
|
-
* @throws {Error} 如果在ToBPayProvider外部使用会抛出错误
|
|
5
|
-
* @returns {ToBPayContextType} 商家端支付上下文
|
|
6
|
-
*/
|
|
7
|
-
export declare const useToBPay: () => ToBPayContextType;
|
|
8
|
-
export declare const useOSPayment: () => any;
|
|
9
|
-
/**
|
|
10
|
-
* 使用OS支付的Hook
|
|
11
|
-
*/
|
|
12
|
-
export declare const useOSPaymentEffect: () => {
|
|
13
|
-
osPaymentEffectOn: () => void;
|
|
14
|
-
osPaymentEffectOff: () => void;
|
|
15
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
export * from './storeTypes';
|
|
2
|
-
export interface ToBPayParams {
|
|
3
|
-
source?: 'normal' | 'restore';
|
|
4
|
-
data: {
|
|
5
|
-
type?: string;
|
|
6
|
-
payMethod: {
|
|
7
|
-
id: string;
|
|
8
|
-
code: string;
|
|
9
|
-
type: string;
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
params: {
|
|
13
|
-
orderId: string | number;
|
|
14
|
-
symbol?: string;
|
|
15
|
-
amount: string;
|
|
16
|
-
surcharge?: string;
|
|
17
|
-
};
|
|
18
|
-
mode: 'pay' | 'refund';
|
|
19
|
-
};
|
|
20
|
-
callback: ToBPayCallback;
|
|
21
|
-
}
|
|
22
|
-
export declare type ToBPayCallback = (res: {
|
|
23
|
-
status: string;
|
|
24
|
-
data: {
|
|
25
|
-
amount: number;
|
|
26
|
-
surPercentRate?: number;
|
|
27
|
-
surMoney?: number;
|
|
28
|
-
surcharge?: number;
|
|
29
|
-
uniquePaymentNumber?: string;
|
|
30
|
-
};
|
|
31
|
-
msg?: string;
|
|
32
|
-
}) => void;
|
|
33
|
-
/**
|
|
34
|
-
* @title: 支付打开参数
|
|
35
|
-
*/
|
|
36
|
-
export interface PayOpenParams extends Omit<ToBPayParams, 'callback'> {
|
|
37
|
-
payCallback: (res: EftposPayResult | MX51PayResult) => void;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @title: eftpos支付结果
|
|
41
|
-
*/
|
|
42
|
-
export interface EftposPayResult {
|
|
43
|
-
status: 'success' | 'fail';
|
|
44
|
-
params: {
|
|
45
|
-
amount: number;
|
|
46
|
-
surPercentRate: number;
|
|
47
|
-
surMoney: number;
|
|
48
|
-
uniquePaymentNumber: string;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @title: MX51支付结果
|
|
53
|
-
*/
|
|
54
|
-
export interface MX51PayResult {
|
|
55
|
-
result: boolean;
|
|
56
|
-
msg?: string;
|
|
57
|
-
amount: number;
|
|
58
|
-
surcharge: number;
|
|
59
|
-
uniquePaymentNumber: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @title 原生MX51支付结果
|
|
63
|
-
*/
|
|
64
|
-
export interface NativeMX51PayResult {
|
|
65
|
-
code: string;
|
|
66
|
-
msg?: string;
|
|
67
|
-
data: {
|
|
68
|
-
amount: number;
|
|
69
|
-
surcharge: number;
|
|
70
|
-
};
|
|
71
|
-
uuid: string;
|
|
72
|
-
}
|
package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProductDisplayConfig } from './types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface ProductDisplayAdapterProps {
|
|
5
|
-
/** 展示配置 */
|
|
6
|
-
config: ProductDisplayConfig;
|
|
7
|
-
/** 数据源 */
|
|
8
|
-
dataSource: any[];
|
|
9
|
-
/** 加载状态 */
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
/** 当前选中的产品ID */
|
|
12
|
-
currentProductId?: number;
|
|
13
|
-
/** 选择产品回调 */
|
|
14
|
-
onSelectProduct: (item: any, type?: 'select' | 'detail') => void;
|
|
15
|
-
/** 空状态描述 */
|
|
16
|
-
emptyDescription?: string;
|
|
17
|
-
/** 自定义样式 */
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
/** 自定义类名 */
|
|
20
|
-
className?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 产品展示适配器组件
|
|
24
|
-
* 统一管理 ProductSelect 和 SkuList 两种展示模式
|
|
25
|
-
*/
|
|
26
|
-
declare const ProductDisplayAdapter: React.FC<ProductDisplayAdapterProps>;
|
|
27
|
-
export default ProductDisplayAdapter;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ProductDisplayAdapter 产品展示适配器
|
|
3
|
-
* 支持通过配置化方式在 ProductSelect 和 SkuList 两种展示模式之间切换
|
|
4
|
-
*/
|
|
5
|
-
export { default } from './ProductDisplayAdapter';
|
|
6
|
-
export type { ProductDisplayConfig, ProductDisplayPresetKey, ProductSelectConfig, ProductSelectLayout, ProductListSetting, SkuListConfig, SkuCardDisplayMode, ListConfig, ListLayoutType, DisplayMode, } from './types';
|
|
7
|
-
export { ProductDisplayPresets, LegacyProductDisplayPresets, resolveProductDisplayConfig, } from './types';
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 产品展示配置类型定义
|
|
3
|
-
*/
|
|
4
|
-
import type { ProductCardConfig } from '../../../../plus/productSelect/ProductCard/SkuCard/type';
|
|
5
|
-
/** 预设配置的字符串键 */
|
|
6
|
-
export declare type ProductDisplayPresetKey = 'product-select' | 'sku-list-a1' | 'sku-list-a2' | 'sku-list-a5' | 'default';
|
|
7
|
-
/** ProductSelect 布局配置 */
|
|
8
|
-
export interface ProductSelectLayout {
|
|
9
|
-
grid: boolean;
|
|
10
|
-
config: string;
|
|
11
|
-
}
|
|
12
|
-
export declare type NumberBoolean = 0 | 1;
|
|
13
|
-
/** ProductSelect 列表设置 */
|
|
14
|
-
export interface ProductListSetting {
|
|
15
|
-
/** 是否显示产品封面 */
|
|
16
|
-
isProductCover?: NumberBoolean;
|
|
17
|
-
/** 是否显示标题 */
|
|
18
|
-
isTitle?: NumberBoolean;
|
|
19
|
-
/** 是否显示副标题 */
|
|
20
|
-
isSubtitle?: NumberBoolean;
|
|
21
|
-
/** 是否显示价格 */
|
|
22
|
-
isPrice?: NumberBoolean;
|
|
23
|
-
/** 是否显示原价 */
|
|
24
|
-
isOriginPrice?: NumberBoolean;
|
|
25
|
-
/** 是否显示库存 */
|
|
26
|
-
isStock?: NumberBoolean;
|
|
27
|
-
}
|
|
28
|
-
/** ProductSelect 模式配置 */
|
|
29
|
-
export interface ProductSelectConfig {
|
|
30
|
-
/** 是否显示搜索框 */
|
|
31
|
-
showSearch?: boolean;
|
|
32
|
-
/** 是否显示分类Tab */
|
|
33
|
-
showTab?: boolean;
|
|
34
|
-
/** 布局配置 */
|
|
35
|
-
layout?: ProductSelectLayout;
|
|
36
|
-
/** 产品列表设置 */
|
|
37
|
-
productListSetting?: ProductListSetting;
|
|
38
|
-
}
|
|
39
|
-
/** SkuCard 显示模式 */
|
|
40
|
-
export declare type SkuCardDisplayMode = 'display_a1' | 'display_a2' | 'display_a5' | 'display_a9' | 'display_custom';
|
|
41
|
-
/**
|
|
42
|
-
* SkuCard 配置
|
|
43
|
-
* 直接使用 ProductCardConfig 类型,保持类型同步
|
|
44
|
-
*
|
|
45
|
-
* @see packages/private-materials/src/plus/productSelect/ProductCard/SkuCard/type.ts ProductCardConfig
|
|
46
|
-
*/
|
|
47
|
-
export declare type SkuCardAllConfig = ProductCardConfig;
|
|
48
|
-
/** List 布局类型 */
|
|
49
|
-
export declare type ListLayoutType = 'grid' | 'list';
|
|
50
|
-
/** Tab 样式类型 */
|
|
51
|
-
export declare type TabStyleType = 'switch' | 'anchor' | 'none';
|
|
52
|
-
/** List 组件配置 */
|
|
53
|
-
export interface ListConfig {
|
|
54
|
-
/** 布局类型 */
|
|
55
|
-
layout?: ListLayoutType;
|
|
56
|
-
/** 列数 */
|
|
57
|
-
columns?: number;
|
|
58
|
-
/** 是否显示分页 */
|
|
59
|
-
showPagination?: boolean;
|
|
60
|
-
/** 是否显示Tab */
|
|
61
|
-
showTab?: boolean;
|
|
62
|
-
/** Tab 样式类型:switch-切换模式,anchor-锚点模式,none-不显示 */
|
|
63
|
-
tabStyle?: TabStyleType;
|
|
64
|
-
/** Tab 是否吸顶 */
|
|
65
|
-
stickyTop?: boolean;
|
|
66
|
-
/** Tab配置 */
|
|
67
|
-
tabConfig?: any;
|
|
68
|
-
/** 分页配置 */
|
|
69
|
-
paginationConfig?: any;
|
|
70
|
-
[key: string]: any;
|
|
71
|
-
}
|
|
72
|
-
/** SkuList 模式配置 */
|
|
73
|
-
export interface SkuListConfig {
|
|
74
|
-
/** List 组件配置 */
|
|
75
|
-
listConfig?: ListConfig;
|
|
76
|
-
/** SkuCard 配置 */
|
|
77
|
-
skuCardAllConfig?: SkuCardAllConfig;
|
|
78
|
-
}
|
|
79
|
-
/** 展示模式类型 */
|
|
80
|
-
export declare type DisplayMode = 'product-select' | 'sku-list';
|
|
81
|
-
/**
|
|
82
|
-
* 产品展示配置
|
|
83
|
-
* 用于配置化控制产品展示的方式
|
|
84
|
-
*/
|
|
85
|
-
export interface ProductDisplayConfig {
|
|
86
|
-
/** 展示模式 */
|
|
87
|
-
displayMode: DisplayMode;
|
|
88
|
-
/** ProductSelect 模式配置 */
|
|
89
|
-
productSelectConfig?: ProductSelectConfig;
|
|
90
|
-
/** SkuList 模式配置 */
|
|
91
|
-
skuListConfig?: SkuListConfig;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* 产品展示配置预设
|
|
95
|
-
* 支持通过字符串键或直接使用配置对象
|
|
96
|
-
*/
|
|
97
|
-
export declare const ProductDisplayPresets: Record<ProductDisplayPresetKey, ProductDisplayConfig>;
|
|
98
|
-
/**
|
|
99
|
-
* 兼容性:保持原有的导出方式
|
|
100
|
-
* @deprecated 建议使用 ProductDisplayPresets['product-select'] 或字符串键访问
|
|
101
|
-
*/
|
|
102
|
-
export declare const LegacyProductDisplayPresets: {
|
|
103
|
-
/** @deprecated 使用 ProductDisplayPresets['product-select'] */
|
|
104
|
-
DEFAULT_PRODUCT_SELECT: ProductDisplayConfig;
|
|
105
|
-
/** @deprecated 使用 ProductDisplayPresets['sku-list-a1'] */
|
|
106
|
-
DEFAULT_SKU_LIST_A1: ProductDisplayConfig;
|
|
107
|
-
/** @deprecated 使用 ProductDisplayPresets['sku-list-a2'] */
|
|
108
|
-
DEFAULT_SKU_LIST_A2: ProductDisplayConfig;
|
|
109
|
-
/** @deprecated 使用 ProductDisplayPresets['sku-list-a5'] */
|
|
110
|
-
DEFAULT_SKU_LIST_A5: ProductDisplayConfig;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* 工具函数:将字符串键或配置对象解析为配置对象
|
|
114
|
-
*/
|
|
115
|
-
export declare function resolveProductDisplayConfig(config?: ProductDisplayPresetKey | ProductDisplayConfig): ProductDisplayConfig;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 格式化 SKU 数据源,适配 SkuCard 组件
|
|
3
|
-
*/
|
|
4
|
-
export declare const formatSkuDataSource: (dataSource: any) => {
|
|
5
|
-
id: any;
|
|
6
|
-
title: any;
|
|
7
|
-
subtitle: any;
|
|
8
|
-
cover: any;
|
|
9
|
-
price: any;
|
|
10
|
-
original_price: any;
|
|
11
|
-
stock: any;
|
|
12
|
-
sortKeys: string[];
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Tab 项接口定义(与 List 组件保持一致)
|
|
16
|
-
*/
|
|
17
|
-
export interface TabItem {
|
|
18
|
-
key: string;
|
|
19
|
-
label: string;
|
|
20
|
-
group?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 产品分类信息接口
|
|
24
|
-
*/
|
|
25
|
-
interface ProductCategory {
|
|
26
|
-
id: number;
|
|
27
|
-
name: string;
|
|
28
|
-
icon?: string;
|
|
29
|
-
slug?: string;
|
|
30
|
-
sort?: number;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* 产品项接口
|
|
34
|
-
*/
|
|
35
|
-
interface Product {
|
|
36
|
-
id: number;
|
|
37
|
-
title: string;
|
|
38
|
-
category?: ProductCategory[];
|
|
39
|
-
[key: string]: any;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* 根据产品数据生成分类 Tabs(Switch 模式)
|
|
43
|
-
* 参考 TestResponsiveWrapper 的 generateSimpleTabItems 函数
|
|
44
|
-
*
|
|
45
|
-
* @param products 产品列表
|
|
46
|
-
* @param tabStyle tab 样式类型
|
|
47
|
-
* @returns TabItem 数组
|
|
48
|
-
*/
|
|
49
|
-
export declare const generateProductTabs: (products: Product[], tabStyle?: 'switch' | 'anchor') => TabItem[];
|
|
50
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface AddServiceProps {
|
|
4
|
-
onEdit?: any;
|
|
5
|
-
dispatch?: any;
|
|
6
|
-
state?: any;
|
|
7
|
-
renderMode?: 'current' | 'drawer';
|
|
8
|
-
onPrerenderComplete?: () => void;
|
|
9
|
-
onGetProductsReady?: (getProducts: any) => void;
|
|
10
|
-
/**
|
|
11
|
-
* 产品展示配置
|
|
12
|
-
*
|
|
13
|
-
* 支持两种方式:
|
|
14
|
-
* 1. 简易模式:传入预设字符串,如 'product-select', 'sku-list-a1', 'sku-list-a2', 'sku-list-a5'
|
|
15
|
-
* 2. 完整配置模式:传入完整的配置对象
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* // 简易模式
|
|
19
|
-
* <AddService productDisplayConfig="sku-list-a1" />
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* // 完整配置模式
|
|
23
|
-
* <AddService productDisplayConfig={{
|
|
24
|
-
* displayMode: 'sku-list',
|
|
25
|
-
* skuListConfig: { ... }
|
|
26
|
-
* }} />
|
|
27
|
-
*/
|
|
28
|
-
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
29
|
-
}
|
|
30
|
-
declare const AddSerivce: (props: AddServiceProps) => JSX.Element | null;
|
|
31
|
-
export default AddSerivce;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter/types';
|
|
2
|
-
interface AddServiceVariantProps {
|
|
3
|
-
globalState: any;
|
|
4
|
-
setGlobalState: any;
|
|
5
|
-
onPrerenderComplete?: () => void;
|
|
6
|
-
onGetProductsReady?: (getProducts: any) => void;
|
|
7
|
-
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
8
|
-
}
|
|
9
|
-
declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
|
|
10
|
-
export default AddServiceVariant;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* IsActive Context
|
|
4
|
-
* 用于在 TicketBooking 组件树中提供 isActive 状态
|
|
5
|
-
* isActive 用于标识当前组件是否处于激活状态
|
|
6
|
-
*/
|
|
7
|
-
interface IsActiveContextType {
|
|
8
|
-
/** 是否激活 */
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const IsActiveContext: React.Context<IsActiveContextType>;
|
|
12
|
-
interface IsActiveProviderProps {
|
|
13
|
-
isActive: boolean;
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* IsActive Provider
|
|
18
|
-
* 提供 isActive 给子组件使用
|
|
19
|
-
*/
|
|
20
|
-
export declare const IsActiveProvider: React.FC<IsActiveProviderProps>;
|
|
21
|
-
/**
|
|
22
|
-
* useIsActive Hook
|
|
23
|
-
* 在子组件中使用此 hook 获取 isActive 状态
|
|
24
|
-
*/
|
|
25
|
-
export declare const useIsActive: () => boolean;
|
|
26
|
-
export default IsActiveContext;
|