@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,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CurrentOrderInfo } from '../../types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface CashPaymentModuleProps {
|
|
5
|
-
amountSymbol?: string;
|
|
6
|
-
orderInfo?: CurrentOrderInfo;
|
|
7
|
-
onPaymentComplete?: (result: any) => void;
|
|
8
|
-
amountButtons?: number[];
|
|
9
|
-
customAmount?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
roundingFunction?: (amount: number) => Promise<{
|
|
12
|
-
roundedAmount: number;
|
|
13
|
-
roundingDifference: number;
|
|
14
|
-
}>;
|
|
15
|
-
balanceDueAmount?: string;
|
|
16
|
-
balanceDueTotalAmount?: string;
|
|
17
|
-
syncingLock?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export declare function CashPaymentModule({ amountSymbol, orderInfo, onPaymentComplete, customAmount, amountButtons, // 按钮列表,默认5个推荐金额
|
|
20
|
-
disabled, // 禁用状态
|
|
21
|
-
roundingFunction, balanceDueAmount, // 当前阶段剩余支付金额(定金或普通支付)
|
|
22
|
-
balanceDueTotalAmount, // 完整订单剩余待付金额
|
|
23
|
-
syncingLock, }: CashPaymentModuleProps): JSX.Element;
|
|
24
|
-
export default CashPaymentModule;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 自定义Hook:使用WalletPass功能
|
|
3
|
-
*/
|
|
4
|
-
export declare const useWalletPass: (props: {
|
|
5
|
-
onSelectChange?: ((select: {
|
|
6
|
-
voucher_id: number;
|
|
7
|
-
amount: number;
|
|
8
|
-
code: string;
|
|
9
|
-
}[]) => void) | undefined;
|
|
10
|
-
customAmount?: string | undefined;
|
|
11
|
-
clientId?: number | undefined;
|
|
12
|
-
}) => {
|
|
13
|
-
walletRecommendList: any[];
|
|
14
|
-
userIdentificationCodes: any[];
|
|
15
|
-
loading: boolean;
|
|
16
|
-
error: string | null;
|
|
17
|
-
cardData: any;
|
|
18
|
-
handleSelectWallet: (value: number[]) => void;
|
|
19
|
-
selectedWalletIds: any[];
|
|
20
|
-
expiredWalletIds: any[];
|
|
21
|
-
expiredWalletData: any;
|
|
22
|
-
disabledWalletData: any[];
|
|
23
|
-
clearAllSelectedWallet: () => void;
|
|
24
|
-
clearDisabledWalletData: () => void;
|
|
25
|
-
handleBeforeEditAmount: (value: any, index: number, data: any) => Promise<boolean>;
|
|
26
|
-
handleBestSaving: () => void;
|
|
27
|
-
handleSearchIdentificationCode: (value: string) => any;
|
|
28
|
-
availableDiscountList: any;
|
|
29
|
-
selectedDiscountList: any;
|
|
30
|
-
handleSelectDiscount: (value: number[], option: any) => void;
|
|
31
|
-
customerName: any;
|
|
32
|
-
fetchWalletRecommendList: (params: any) => Promise<any>;
|
|
33
|
-
fetchUserIdentificationCodes: (params: any) => Promise<any>;
|
|
34
|
-
getCachedWalletRecommendList: () => any;
|
|
35
|
-
getCachedUserIdentificationCodes: () => any;
|
|
36
|
-
clearWalletRecommendList: () => void;
|
|
37
|
-
clearUserIdentificationCodes: () => void;
|
|
38
|
-
clearAllCache: () => void;
|
|
39
|
-
handleConfirmEditAmount: (value: number, id: number, data: any) => void;
|
|
40
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ListProps, ResponsiveConfig, ResponsiveWrapperProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* ResponsiveWrapper 响应式包装器组件
|
|
5
|
-
* 根据不同设备类型自动选择合适的配置
|
|
6
|
-
*/
|
|
7
|
-
declare const ResponsiveWrapper: React.FC<ResponsiveWrapperProps>;
|
|
8
|
-
/**
|
|
9
|
-
* 用于创建响应式配置的工具函数
|
|
10
|
-
*/
|
|
11
|
-
export declare const createResponsiveConfig: (overrides?: {
|
|
12
|
-
pc?: Partial<ListProps>;
|
|
13
|
-
pad?: Partial<ListProps>;
|
|
14
|
-
mobile?: Partial<ListProps>;
|
|
15
|
-
}) => ResponsiveConfig;
|
|
16
|
-
export default ResponsiveWrapper;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './EmptyState.less';
|
|
3
|
-
export interface EmptyStateConfig {
|
|
4
|
-
/** 是否显示空状态 */
|
|
5
|
-
show?: boolean;
|
|
6
|
-
/** 空状态文本 */
|
|
7
|
-
text?: string;
|
|
8
|
-
/** 空状态图标 */
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
/** 空状态描述 */
|
|
11
|
-
description?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface EmptyStateProps {
|
|
14
|
-
/** 空状态配置 */
|
|
15
|
-
config: EmptyStateConfig;
|
|
16
|
-
/** 是否有数据 */
|
|
17
|
-
hasData: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare const EmptyState: React.FC<EmptyStateProps>;
|
|
20
|
-
export default EmptyState;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './ListItemSkeleton.less';
|
|
3
|
-
interface ListItemSkeletonProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
displayStyle?: 'grid' | 'waterfall';
|
|
7
|
-
showImage?: boolean;
|
|
8
|
-
imageWidth?: number;
|
|
9
|
-
imageHeight?: number;
|
|
10
|
-
rows?: number;
|
|
11
|
-
}
|
|
12
|
-
declare const ListItemSkeleton: React.FC<ListItemSkeletonProps>;
|
|
13
|
-
export default ListItemSkeleton;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './Pagination.less';
|
|
3
|
-
export interface PaginationProps {
|
|
4
|
-
/** 当前页码 */
|
|
5
|
-
current: number;
|
|
6
|
-
/** 每页条数 */
|
|
7
|
-
pageSize: number;
|
|
8
|
-
/** 数据总数 */
|
|
9
|
-
total?: number;
|
|
10
|
-
/** 总页数 (优先级高于total计算) */
|
|
11
|
-
totalPages?: number;
|
|
12
|
-
/** 页码改变的回调 */
|
|
13
|
-
onChange?: (page: number, pageSize: number) => void;
|
|
14
|
-
/** 每页条数改变的回调 */
|
|
15
|
-
onShowSizeChange?: (current: number, size: number) => void;
|
|
16
|
-
/** 是否显示每页条数选择器 */
|
|
17
|
-
showSizeChanger?: boolean;
|
|
18
|
-
/** 每页条数选择器选项 */
|
|
19
|
-
pageSizeOptions?: string[];
|
|
20
|
-
/** 是否显示快速跳转 */
|
|
21
|
-
showQuickJumper?: boolean;
|
|
22
|
-
/** 是否显示总数 */
|
|
23
|
-
showTotal?: (total: number, range: [number, number]) => React.ReactNode;
|
|
24
|
-
/** 自定义类名 */
|
|
25
|
-
className?: string;
|
|
26
|
-
/** 禁用状态 */
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
}
|
|
29
|
-
declare const Pagination: React.FC<PaginationProps>;
|
|
30
|
-
export default Pagination;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Pagination';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './ScrollLoader.less';
|
|
3
|
-
export interface ScrollLoadState {
|
|
4
|
-
canLoadMore: boolean;
|
|
5
|
-
totalLoaded: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ScrollLoaderProps {
|
|
8
|
-
/** 是否正在加载 */
|
|
9
|
-
loading: boolean;
|
|
10
|
-
/** 滚动加载状态 */
|
|
11
|
-
scrollLoadState?: ScrollLoadState | null;
|
|
12
|
-
/** 布局方向 */
|
|
13
|
-
layoutDirection: 'horizontal' | 'vertical';
|
|
14
|
-
/** 分页类型 */
|
|
15
|
-
paginationType: 'all' | 'scroll' | 'pager' | 'more';
|
|
16
|
-
}
|
|
17
|
-
declare const ScrollLoader: React.FC<ScrollLoaderProps>;
|
|
18
|
-
export default ScrollLoader;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TabItem } from '../../types';
|
|
3
|
-
export interface TabProps {
|
|
4
|
-
/** 类名 */
|
|
5
|
-
className?: string;
|
|
6
|
-
/** 样式 */
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
/** 当前激活的tab */
|
|
9
|
-
activeKey?: string;
|
|
10
|
-
/** tab项 */
|
|
11
|
-
items: TabItem[];
|
|
12
|
-
/** tab切换回调 */
|
|
13
|
-
onChange?: (key: string) => void;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './TabSkeleton.less';
|
|
3
|
-
interface TabSkeletonProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
tabCount?: number;
|
|
7
|
-
animated?: boolean;
|
|
8
|
-
tabStyle?: 'switch' | 'anchor';
|
|
9
|
-
}
|
|
10
|
-
declare const TabSkeleton: React.FC<TabSkeletonProps>;
|
|
11
|
-
export default TabSkeleton;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { WaterfallLayout } from '../../hooks/useWaterfall';
|
|
3
|
-
import './WaterfallList.less';
|
|
4
|
-
export interface WaterfallListProps<TItem extends {
|
|
5
|
-
id: string | number;
|
|
6
|
-
height?: number;
|
|
7
|
-
width?: number;
|
|
8
|
-
} = any> {
|
|
9
|
-
/** 瀑布流布局数据 */
|
|
10
|
-
layout: WaterfallLayout<TItem>;
|
|
11
|
-
/** 布局方向 */
|
|
12
|
-
layoutDirection: 'horizontal' | 'vertical';
|
|
13
|
-
/** 列间距 */
|
|
14
|
-
columnGap: number;
|
|
15
|
-
/** 行间距 */
|
|
16
|
-
rowGap: number;
|
|
17
|
-
/** 列数 */
|
|
18
|
-
columns: number;
|
|
19
|
-
/** 行数 */
|
|
20
|
-
rows: number;
|
|
21
|
-
/** 注册元素引用的函数 */
|
|
22
|
-
registerItemRef: (id: string | number, element: HTMLElement | null) => void;
|
|
23
|
-
/** 子元素 */
|
|
24
|
-
children?: ReactNode;
|
|
25
|
-
/** 自定义渲染函数 */
|
|
26
|
-
renderItem?: (item: TItem, index: number) => ReactNode;
|
|
27
|
-
}
|
|
28
|
-
declare const WaterfallList: <TItem extends {
|
|
29
|
-
id: string | number;
|
|
30
|
-
height?: number | undefined;
|
|
31
|
-
width?: number | undefined;
|
|
32
|
-
} = any>(props: WaterfallListProps<TItem>) => React.ReactElement;
|
|
33
|
-
export default WaterfallList;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { useDevice, getUserAgentInfo } from './useDevice';
|
|
2
|
-
export type { DeviceType, DeviceInfo } from './useDevice';
|
|
3
|
-
export { default as useWaterfall } from './useWaterfall';
|
|
4
|
-
export { useListState } from './useListState';
|
|
5
|
-
export type { ListState, ListAction, UseListStateProps, UseListStateReturn } from './useListState';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare type DeviceType = 'pc' | 'pad' | 'mobile';
|
|
2
|
-
export interface DeviceInfo {
|
|
3
|
-
type: DeviceType;
|
|
4
|
-
isMobile: boolean;
|
|
5
|
-
isPad: boolean;
|
|
6
|
-
isPc: boolean;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 设备检测Hook
|
|
12
|
-
* 根据屏幕宽度和用户代理判断当前设备类型
|
|
13
|
-
*/
|
|
14
|
-
export declare const useDevice: () => DeviceInfo;
|
|
15
|
-
/**
|
|
16
|
-
* 获取用户代理信息
|
|
17
|
-
* @returns 用户代理相关信息
|
|
18
|
-
*/
|
|
19
|
-
export declare const getUserAgentInfo: () => {
|
|
20
|
-
isMobileUA: boolean;
|
|
21
|
-
isTabletUA: boolean;
|
|
22
|
-
isDesktopUA: boolean;
|
|
23
|
-
userAgent: string;
|
|
24
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { TabItem, LoadDataParams } from '../types';
|
|
2
|
-
export interface ListState {
|
|
3
|
-
activeTab: string;
|
|
4
|
-
currentPage: number;
|
|
5
|
-
isStickyActive: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare type ListAction = {
|
|
8
|
-
type: 'SET_ACTIVE_TAB';
|
|
9
|
-
payload: string;
|
|
10
|
-
} | {
|
|
11
|
-
type: 'SET_CURRENT_PAGE';
|
|
12
|
-
payload: number;
|
|
13
|
-
} | {
|
|
14
|
-
type: 'SET_STICKY_ACTIVE';
|
|
15
|
-
payload: boolean;
|
|
16
|
-
} | {
|
|
17
|
-
type: 'RESET_PAGE';
|
|
18
|
-
};
|
|
19
|
-
export interface UseListStateProps {
|
|
20
|
-
/** 外部传入的当前页码 */
|
|
21
|
-
externalCurrentPage?: number;
|
|
22
|
-
/** tab数据 */
|
|
23
|
-
tabItems: TabItem[];
|
|
24
|
-
/** 默认页面大小 */
|
|
25
|
-
defaultPageSize: number;
|
|
26
|
-
/** 数据加载回调 */
|
|
27
|
-
onLoadData?: (params: LoadDataParams) => void;
|
|
28
|
-
}
|
|
29
|
-
export interface UseListStateReturn {
|
|
30
|
-
state: ListState;
|
|
31
|
-
setActiveTab: (tab: string) => void;
|
|
32
|
-
setCurrentPage: (page: number) => void;
|
|
33
|
-
setStickyActive: (active: boolean) => void;
|
|
34
|
-
resetPage: () => void;
|
|
35
|
-
handleTabChange: (key: string) => void;
|
|
36
|
-
handlePageChange: (page: number, size?: number) => void;
|
|
37
|
-
handleShowSizeChange: (current: number, size: number) => void;
|
|
38
|
-
handleLoadMore: () => void;
|
|
39
|
-
handleViewLess: () => void;
|
|
40
|
-
handleScrollLoad: () => void;
|
|
41
|
-
actualCurrentPage: number;
|
|
42
|
-
}
|
|
43
|
-
export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, }: UseListStateProps) => UseListStateReturn;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface WaterfallItem {
|
|
2
|
-
id: string | number;
|
|
3
|
-
data: any;
|
|
4
|
-
height?: number;
|
|
5
|
-
width?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface WaterfallTrack<T = any> {
|
|
8
|
-
items: T[];
|
|
9
|
-
size: number;
|
|
10
|
-
}
|
|
11
|
-
export interface WaterfallLayoutOptions {
|
|
12
|
-
tracks: number;
|
|
13
|
-
trackGap: number;
|
|
14
|
-
itemGap: number;
|
|
15
|
-
direction: 'vertical' | 'horizontal';
|
|
16
|
-
}
|
|
17
|
-
export interface WaterfallLayout<T = any> {
|
|
18
|
-
tracks: WaterfallTrack<T>[];
|
|
19
|
-
totalSize: number;
|
|
20
|
-
}
|
|
21
|
-
export declare const useWaterfall: <T extends {
|
|
22
|
-
id: string | number;
|
|
23
|
-
height?: number | undefined;
|
|
24
|
-
width?: number | undefined;
|
|
25
|
-
}>(items: T[], options: WaterfallLayoutOptions) => {
|
|
26
|
-
layout: WaterfallLayout<T>;
|
|
27
|
-
registerItemRef: (id: string | number, element: HTMLElement | null) => void;
|
|
28
|
-
measureItemSize: (id: string | number) => {
|
|
29
|
-
width: number;
|
|
30
|
-
height: number;
|
|
31
|
-
};
|
|
32
|
-
recalculateLayout: () => void;
|
|
33
|
-
};
|
|
34
|
-
export default useWaterfall;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { default } from './List';
|
|
2
|
-
export { default as ResponsiveList, createResponsiveConfig } from './ResponsiveWrapper';
|
|
3
|
-
export { default as TestResponsiveWrapper } from './TestResponsiveWrapper';
|
|
4
|
-
export { default as Pagination } from './components/Pagination';
|
|
5
|
-
export { default as Tab } from './components/Tab';
|
|
6
|
-
export { useDevice, getUserAgentInfo } from './hooks/useDevice';
|
|
7
|
-
export { default as TestList } from './TestResponsiveWrapper';
|
|
8
|
-
export type { ListProps, BaseListItem, EmptyStateConfig, PaginationInfo, LayoutConfig, TabConfig, PaginationConfig, LegacyListProps, TabItem, ResponsiveProps, ResponsiveWrapperProps, DeviceType, DeviceInfo, LoadMoreParams, LoadDataParams, LoadDataTrigger } from './types';
|
|
9
|
-
export type { TabProps } from './components/Tab';
|
|
10
|
-
export type { PaginationProps } from './components/Pagination/Pagination';
|
|
@@ -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
|
-
}
|