@pisell/private-materials 6.11.158 → 6.11.160
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.css +1 -1
- package/build/lowcode/view.css +1 -1
- package/es/plus/pisellReservation/PisellReservation.less +18 -0
- package/lib/plus/pisellReservation/PisellReservation.less +18 -0
- package/package.json +3 -3
- package/es/components/index.d.ts +0 -23
- package/es/components/list/List.d.ts +0 -5
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/types.d.ts +0 -181
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -23
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -32
- package/es/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
- package/es/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +0 -10
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -8
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/index.d.ts +0 -54
- package/es/plus/productSelect/ProductCard/utils.d.ts +0 -49
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
- package/es/plus/productSelect/index.d.ts +0 -36
- package/lib/components/index.d.ts +0 -23
- package/lib/components/list/List.d.ts +0 -5
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/types.d.ts +0 -181
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts +0 -23
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -32
- package/lib/components/ticketBooking/components/floatButtons/index.d.ts +0 -11
- package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +0 -10
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.d.ts +0 -8
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/index.d.ts +0 -54
- package/lib/plus/productSelect/ProductCard/utils.d.ts +0 -49
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
- package/lib/plus/productSelect/index.d.ts +0 -36
|
@@ -1,181 +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
|
-
isTreeTab?: boolean;
|
|
123
|
-
/** 分页配置 */
|
|
124
|
-
paginationType?: PaginationConfig['paginationType'];
|
|
125
|
-
defaultPageSize?: PaginationConfig['defaultPageSize'];
|
|
126
|
-
pageSize?: PaginationConfig['pageSize'];
|
|
127
|
-
pagination?: PaginationConfig['pagination'];
|
|
128
|
-
/** 数据和渲染 */
|
|
129
|
-
data?: TItem[];
|
|
130
|
-
children?: ReactNode;
|
|
131
|
-
renderItem?: (item: TItem, index: number) => ReactNode;
|
|
132
|
-
/** 回调函数 */
|
|
133
|
-
onLoadData?: (params: LoadDataParams) => void;
|
|
134
|
-
/** 状态配置 */
|
|
135
|
-
emptyConfig?: EmptyStateConfig;
|
|
136
|
-
loading?: boolean;
|
|
137
|
-
renderSearch?: () => ReactNode;
|
|
138
|
-
onTabSearch?: (val: string) => void;
|
|
139
|
-
onActiveTabChange?: (tab: any) => void;
|
|
140
|
-
}
|
|
141
|
-
/** 向后兼容的非泛型版本 */
|
|
142
|
-
export interface LegacyListProps extends ListProps<any> {
|
|
143
|
-
/** 兼容旧的any[]类型 */
|
|
144
|
-
data?: any[];
|
|
145
|
-
renderItem?: (item: any, index: number) => ReactNode;
|
|
146
|
-
}
|
|
147
|
-
export interface TabItem {
|
|
148
|
-
/** 唯一标识,同时用作anchor模式下的锚点标识 */
|
|
149
|
-
key: string;
|
|
150
|
-
/** 显示文本 */
|
|
151
|
-
label: string;
|
|
152
|
-
/** 分组值,对应数据项中 tabGroup 指定字段的值 */
|
|
153
|
-
group?: string;
|
|
154
|
-
/** 是否禁用 */
|
|
155
|
-
disabled?: boolean;
|
|
156
|
-
}
|
|
157
|
-
export interface LoadMoreParams {
|
|
158
|
-
/** 当前页码 */
|
|
159
|
-
currentPage: number;
|
|
160
|
-
/** 每页数量 */
|
|
161
|
-
pageSize: number;
|
|
162
|
-
/** 当前tab */
|
|
163
|
-
activeTab?: string;
|
|
164
|
-
}
|
|
165
|
-
/** 数据加载触发类型 */
|
|
166
|
-
export declare type LoadDataTrigger = 'tabChange' | 'pagination' | 'pageSize' | 'loadMore' | 'scroll';
|
|
167
|
-
/** 统一的数据加载参数 */
|
|
168
|
-
export interface LoadDataParams {
|
|
169
|
-
/** 触发类型 */
|
|
170
|
-
trigger: LoadDataTrigger;
|
|
171
|
-
/** 当前页码 */
|
|
172
|
-
currentPage: number;
|
|
173
|
-
/** 每页数量 */
|
|
174
|
-
pageSize: number;
|
|
175
|
-
/** 当前激活的tab */
|
|
176
|
-
activeTab?: string;
|
|
177
|
-
/** 上一页页码(分页变化时提供) */
|
|
178
|
-
previousPage?: number;
|
|
179
|
-
/** 上一页大小(页大小变化时提供) */
|
|
180
|
-
previousPageSize?: number;
|
|
181
|
-
}
|
package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.d.ts
DELETED
|
@@ -1,23 +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
|
-
declare const _default: React.ForwardRefExoticComponent<ProductDisplayAdapterProps & React.RefAttributes<unknown>>;
|
|
23
|
-
export default _default;
|
|
@@ -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,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface AddServiceProps {
|
|
5
|
-
onEdit?: any;
|
|
6
|
-
dispatch?: any;
|
|
7
|
-
state?: any;
|
|
8
|
-
renderMode?: 'current' | 'drawer';
|
|
9
|
-
onPrerenderComplete?: () => void;
|
|
10
|
-
onGetProductsReady?: (getProducts: any) => void;
|
|
11
|
-
/**
|
|
12
|
-
* 产品展示配置
|
|
13
|
-
*
|
|
14
|
-
* 支持两种方式:
|
|
15
|
-
* 1. 简易模式:传入预设字符串,如 'product-select', 'sku-list-a1', 'sku-list-a2', 'sku-list-a5'
|
|
16
|
-
* 2. 完整配置模式:传入完整的配置对象
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* // 简易模式
|
|
20
|
-
* <AddService productDisplayConfig="sku-list-a1" />
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // 完整配置模式
|
|
24
|
-
* <AddService productDisplayConfig={{
|
|
25
|
-
* displayMode: 'sku-list',
|
|
26
|
-
* skuListConfig: { ... }
|
|
27
|
-
* }} />
|
|
28
|
-
*/
|
|
29
|
-
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
30
|
-
}
|
|
31
|
-
declare const AddSerivce: (props: AddServiceProps) => React.JSX.Element | null;
|
|
32
|
-
export default AddSerivce;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface FloatButtonsProps {
|
|
4
|
-
items: {
|
|
5
|
-
icon: React.ReactNode;
|
|
6
|
-
onClick: () => void;
|
|
7
|
-
key: string;
|
|
8
|
-
}[];
|
|
9
|
-
}
|
|
10
|
-
declare const FloatButtons: (props: FloatButtonsProps) => React.JSX.Element;
|
|
11
|
-
export default FloatButtons;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ProductCardSkeletonProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
style?: React.CSSProperties;
|
|
5
|
-
isProductCover?: boolean;
|
|
6
|
-
item?: any;
|
|
7
|
-
index?: number;
|
|
8
|
-
}
|
|
9
|
-
declare const ProductCardSkeleton: React.FC<ProductCardSkeletonProps>;
|
|
10
|
-
export default ProductCardSkeleton;
|
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type BoolConfigVal = false | true;
|
|
3
|
-
declare type IsVisible = 0 | 1;
|
|
4
|
-
declare type SkuDisplayMode = 'display_a1' | 'display_a2' | 'display_a5' | 'display_a9' | 'display_custom';
|
|
5
|
-
declare type SkuLayoutDirection = 'row' | 'column';
|
|
6
|
-
declare type SkuImageSlotPosition = 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
7
|
-
declare type SkuActionType = 'icon' | 'radio' | 'checkbox' | 'button';
|
|
8
|
-
declare type SkuExtraStepperSize = 'large' | 'small';
|
|
9
|
-
declare type SkuFavoritePosition = 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
10
|
-
declare type SkuTagsSize = 'small' | 'medium' | 'large';
|
|
11
|
-
export interface SkuCardConfig {
|
|
12
|
-
displayMode?: SkuDisplayMode;
|
|
13
|
-
layoutDirection?: SkuLayoutDirection;
|
|
14
|
-
background?: string;
|
|
15
|
-
paddingY?: number;
|
|
16
|
-
paddingX?: number;
|
|
17
|
-
marginY?: number;
|
|
18
|
-
marginX?: number;
|
|
19
|
-
radius?: number;
|
|
20
|
-
isBorderVisible?: BoolConfigVal;
|
|
21
|
-
borderWidth?: number;
|
|
22
|
-
borderColor?: string;
|
|
23
|
-
isStatusOverlayVisible?: boolean;
|
|
24
|
-
statusOverlayText?: string;
|
|
25
|
-
isFoldable?: BoolConfigVal;
|
|
26
|
-
slot?: React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
export interface SkuImageConfig {
|
|
29
|
-
isCover?: BoolConfigVal;
|
|
30
|
-
width?: string;
|
|
31
|
-
height?: string;
|
|
32
|
-
isTextFallback?: BoolConfigVal;
|
|
33
|
-
background?: string;
|
|
34
|
-
radius?: number;
|
|
35
|
-
slot?: React.ReactNode;
|
|
36
|
-
slotPosition?: SkuImageSlotPosition;
|
|
37
|
-
}
|
|
38
|
-
export interface SkuProductNameConfig {
|
|
39
|
-
isOpen?: BoolConfigVal;
|
|
40
|
-
value?: string;
|
|
41
|
-
fontSize?: number;
|
|
42
|
-
fontWeight?: number;
|
|
43
|
-
color?: string;
|
|
44
|
-
ellipsisCount?: number;
|
|
45
|
-
}
|
|
46
|
-
export interface SkuProductSubtitleConfig {
|
|
47
|
-
isOpen?: BoolConfigVal;
|
|
48
|
-
value?: any;
|
|
49
|
-
fontSize?: number;
|
|
50
|
-
fontWeight?: number;
|
|
51
|
-
color?: string;
|
|
52
|
-
ellipsisCount?: number;
|
|
53
|
-
}
|
|
54
|
-
export interface SkuProductPriceConfig {
|
|
55
|
-
isOpen?: BoolConfigVal;
|
|
56
|
-
isPrice?: BoolConfigVal;
|
|
57
|
-
priceFontSize?: number;
|
|
58
|
-
priceFontWeight?: number;
|
|
59
|
-
priceColor?: string;
|
|
60
|
-
isShowZeroPrice?: BoolConfigVal;
|
|
61
|
-
isShowFreePrice?: BoolConfigVal;
|
|
62
|
-
isOriginPrice?: BoolConfigVal;
|
|
63
|
-
originPriceFontSize?: number;
|
|
64
|
-
originPriceFontWeight?: number;
|
|
65
|
-
originPriceColor?: string;
|
|
66
|
-
isTaxPrice?: BoolConfigVal;
|
|
67
|
-
isCustomText?: BoolConfigVal;
|
|
68
|
-
customTextType?: string;
|
|
69
|
-
customTextValue?: number;
|
|
70
|
-
customTextMinValue?: number;
|
|
71
|
-
customTextMaxValue?: number;
|
|
72
|
-
isMiniPrice?: BoolConfigVal;
|
|
73
|
-
}
|
|
74
|
-
export interface SkuProductStockConfig {
|
|
75
|
-
isOpen?: BoolConfigVal;
|
|
76
|
-
fontSize?: number;
|
|
77
|
-
fontWeight?: number;
|
|
78
|
-
color?: string;
|
|
79
|
-
customText?: React.ReactNode;
|
|
80
|
-
}
|
|
81
|
-
export interface SkuProductCapacityConfig {
|
|
82
|
-
isOpen?: BoolConfigVal;
|
|
83
|
-
fontSize?: number;
|
|
84
|
-
fontWeight?: number;
|
|
85
|
-
color?: string;
|
|
86
|
-
customText?: React.ReactNode;
|
|
87
|
-
}
|
|
88
|
-
export interface SkuProductCountdownConfig {
|
|
89
|
-
isOpen?: BoolConfigVal;
|
|
90
|
-
fontSize?: number;
|
|
91
|
-
fontWeight?: number;
|
|
92
|
-
color?: string;
|
|
93
|
-
customText?: React.ReactNode;
|
|
94
|
-
}
|
|
95
|
-
export interface SkuProductMemberPriceConfig {
|
|
96
|
-
isOpen?: BoolConfigVal;
|
|
97
|
-
isMemberPrice?: BoolConfigVal;
|
|
98
|
-
fontSize?: number;
|
|
99
|
-
fontWeight?: number;
|
|
100
|
-
color?: string;
|
|
101
|
-
isIndicator?: BoolConfigVal;
|
|
102
|
-
indicatorBackground?: string;
|
|
103
|
-
indicatorPaddingY?: number;
|
|
104
|
-
indicatorPaddingX?: number;
|
|
105
|
-
indicatorMarginX?: number;
|
|
106
|
-
indicatorRadius?: number;
|
|
107
|
-
isIndicatorBorder?: BoolConfigVal;
|
|
108
|
-
indicatorBorderWidth?: number;
|
|
109
|
-
indicatorBorderColor?: string;
|
|
110
|
-
indicatorFontSize?: number;
|
|
111
|
-
indicatorFontWeight?: number;
|
|
112
|
-
indicatorColor?: string;
|
|
113
|
-
indicatorIcon?: React.ReactNode;
|
|
114
|
-
customText?: React.ReactNode;
|
|
115
|
-
}
|
|
116
|
-
export interface SkuDurationConfig {
|
|
117
|
-
isOpen?: BoolConfigVal;
|
|
118
|
-
fontSize?: number;
|
|
119
|
-
fontWeight?: number;
|
|
120
|
-
color?: string;
|
|
121
|
-
customText?: React.ReactNode;
|
|
122
|
-
}
|
|
123
|
-
export interface SkuTimeConfig {
|
|
124
|
-
isOpen?: BoolConfigVal;
|
|
125
|
-
fontSize?: number;
|
|
126
|
-
fontWeight?: number;
|
|
127
|
-
color?: string;
|
|
128
|
-
customText?: React.ReactNode;
|
|
129
|
-
}
|
|
130
|
-
export interface SkuResourceConfig {
|
|
131
|
-
isOpen?: BoolConfigVal;
|
|
132
|
-
fontSize?: number;
|
|
133
|
-
fontWeight?: number;
|
|
134
|
-
color?: string;
|
|
135
|
-
customText?: React.ReactNode;
|
|
136
|
-
}
|
|
137
|
-
export interface SkuTextConfig {
|
|
138
|
-
paddingY?: number;
|
|
139
|
-
justifyContent?: string;
|
|
140
|
-
alignItems?: string;
|
|
141
|
-
slot?: React.ReactNode;
|
|
142
|
-
}
|
|
143
|
-
export interface SkuActionIconMethod {
|
|
144
|
-
icon?: React.ReactNode;
|
|
145
|
-
background?: string;
|
|
146
|
-
paddingY?: number;
|
|
147
|
-
paddingX?: number;
|
|
148
|
-
radius?: number;
|
|
149
|
-
isBorder?: BoolConfigVal;
|
|
150
|
-
borderWidth?: number;
|
|
151
|
-
borderColor?: string;
|
|
152
|
-
}
|
|
153
|
-
export interface SkuActionButtonMethod {
|
|
154
|
-
text?: string;
|
|
155
|
-
fontSize?: number;
|
|
156
|
-
fontWeight?: number;
|
|
157
|
-
color?: string;
|
|
158
|
-
background?: string;
|
|
159
|
-
paddingY?: number;
|
|
160
|
-
paddingX?: number;
|
|
161
|
-
radius?: number;
|
|
162
|
-
isBorder?: BoolConfigVal;
|
|
163
|
-
borderWidth?: number;
|
|
164
|
-
borderColor?: string;
|
|
165
|
-
}
|
|
166
|
-
export interface SkuActionConfig {
|
|
167
|
-
isOpen?: BoolConfigVal;
|
|
168
|
-
method?: SkuActionType;
|
|
169
|
-
iconMethod?: SkuActionIconMethod;
|
|
170
|
-
radioMethod?: SkuActionIconMethod;
|
|
171
|
-
checkboxMethod?: SkuActionButtonMethod;
|
|
172
|
-
buttonMethod?: SkuActionButtonMethod;
|
|
173
|
-
slot?: React.ReactNode;
|
|
174
|
-
}
|
|
175
|
-
export interface SkuExtraConfig {
|
|
176
|
-
isOpen?: BoolConfigVal;
|
|
177
|
-
isStepper?: BoolConfigVal;
|
|
178
|
-
stepperSize?: SkuExtraStepperSize;
|
|
179
|
-
stepperColor?: string;
|
|
180
|
-
isFavorite?: BoolConfigVal;
|
|
181
|
-
favoritePosition?: SkuFavoritePosition;
|
|
182
|
-
favoriteIcon?: React.ReactNode;
|
|
183
|
-
favoriteBackground?: string;
|
|
184
|
-
favoritePaddingY?: number;
|
|
185
|
-
favoritePaddingX?: number;
|
|
186
|
-
favoriteRadius?: number;
|
|
187
|
-
isFavoriteBorder?: BoolConfigVal;
|
|
188
|
-
favoriteBorderWidth?: number;
|
|
189
|
-
favoriteBorderColor?: string;
|
|
190
|
-
isTooltipTag?: BoolConfigVal;
|
|
191
|
-
isTooltipTagSlot?: any;
|
|
192
|
-
}
|
|
193
|
-
export interface SkuTagsGroupConfig {
|
|
194
|
-
title?: any;
|
|
195
|
-
background?: string;
|
|
196
|
-
paddingY?: number;
|
|
197
|
-
paddingX?: number;
|
|
198
|
-
radius?: number;
|
|
199
|
-
isBorder?: BoolConfigVal;
|
|
200
|
-
borderWidth?: number;
|
|
201
|
-
borderColor?: string;
|
|
202
|
-
fontSize?: number;
|
|
203
|
-
fontWeight?: number;
|
|
204
|
-
color?: string;
|
|
205
|
-
}
|
|
206
|
-
export interface SkuTagsConfig {
|
|
207
|
-
isOpen?: BoolConfigVal;
|
|
208
|
-
lists?: SkuTagsGroupConfig[];
|
|
209
|
-
marginX?: number;
|
|
210
|
-
size?: SkuTagsSize;
|
|
211
|
-
isShowAll?: BoolConfigVal;
|
|
212
|
-
maxCount?: number;
|
|
213
|
-
}
|
|
214
|
-
export interface SkuPromotionsGroupConfig {
|
|
215
|
-
title?: any;
|
|
216
|
-
background?: string;
|
|
217
|
-
paddingY?: number;
|
|
218
|
-
paddingX?: number;
|
|
219
|
-
radius?: number;
|
|
220
|
-
isBorder?: BoolConfigVal;
|
|
221
|
-
borderWidth?: number;
|
|
222
|
-
borderColor?: string;
|
|
223
|
-
fontSize?: number;
|
|
224
|
-
fontWeight?: number;
|
|
225
|
-
color?: string;
|
|
226
|
-
}
|
|
227
|
-
export interface SkuPromotionsConfig {
|
|
228
|
-
isOpen?: BoolConfigVal;
|
|
229
|
-
lists?: SkuPromotionsGroupConfig[];
|
|
230
|
-
marginX?: number;
|
|
231
|
-
size?: SkuTagsSize;
|
|
232
|
-
isShowAll?: BoolConfigVal;
|
|
233
|
-
maxCount?: number;
|
|
234
|
-
}
|
|
235
|
-
export interface SkuStatusOverlayConfig {
|
|
236
|
-
isOpen?: BoolConfigVal;
|
|
237
|
-
fontSize?: number;
|
|
238
|
-
fontWeight?: number;
|
|
239
|
-
color?: string;
|
|
240
|
-
text?: string;
|
|
241
|
-
background?: string;
|
|
242
|
-
slot?: React.ReactNode;
|
|
243
|
-
}
|
|
244
|
-
export interface SkuTextWrapConfig {
|
|
245
|
-
infoConfig?: SkuTextConfig;
|
|
246
|
-
skuNameConfig?: SkuProductNameConfig;
|
|
247
|
-
skuSubtitleConfig?: SkuProductSubtitleConfig;
|
|
248
|
-
skuPriceConfig?: SkuProductPriceConfig;
|
|
249
|
-
skuStockConfig?: SkuProductStockConfig;
|
|
250
|
-
skuCapacityConfig?: SkuProductCapacityConfig;
|
|
251
|
-
skuCountdownConfig?: SkuProductCountdownConfig;
|
|
252
|
-
skuMemberPriceConfig?: SkuProductMemberPriceConfig;
|
|
253
|
-
skuDurationConfig?: SkuDurationConfig;
|
|
254
|
-
skuTimeConfig?: SkuTimeConfig;
|
|
255
|
-
skuResourceConfig?: SkuResourceConfig;
|
|
256
|
-
skuTagsConfig?: SkuTagsConfig;
|
|
257
|
-
skuPromotionsConfig?: SkuPromotionsConfig;
|
|
258
|
-
}
|
|
259
|
-
export interface DataSourceConfig {
|
|
260
|
-
title?: string;
|
|
261
|
-
subtitle?: string;
|
|
262
|
-
cover?: string;
|
|
263
|
-
price?: number;
|
|
264
|
-
original_price?: number | string;
|
|
265
|
-
tax_fee?: number | string;
|
|
266
|
-
stock?: number;
|
|
267
|
-
capacity?: number;
|
|
268
|
-
countdown?: number | string;
|
|
269
|
-
member_price?: number;
|
|
270
|
-
duration?: number;
|
|
271
|
-
time?: string;
|
|
272
|
-
resource?: string;
|
|
273
|
-
sortKeys?: string[];
|
|
274
|
-
warning_lists?: string[];
|
|
275
|
-
promotions?: any[];
|
|
276
|
-
resources?: string;
|
|
277
|
-
stock_quantity?: number;
|
|
278
|
-
is_track?: IsVisible;
|
|
279
|
-
tags?: any[];
|
|
280
|
-
tooltip_tags?: any[];
|
|
281
|
-
className?: string;
|
|
282
|
-
[key: string]: any;
|
|
283
|
-
}
|
|
284
|
-
export interface ProductCardConfig {
|
|
285
|
-
dataSource?: DataSourceConfig;
|
|
286
|
-
skuCardConfig?: SkuCardConfig;
|
|
287
|
-
skuImageConfig?: SkuImageConfig;
|
|
288
|
-
skuTextConfig?: SkuTextWrapConfig;
|
|
289
|
-
skuActionConfig?: SkuActionConfig;
|
|
290
|
-
skuExtraConfig?: SkuExtraConfig;
|
|
291
|
-
skuStatusOverlayConfig?: SkuStatusOverlayConfig;
|
|
292
|
-
className?: string;
|
|
293
|
-
onCardClick?: (item: any, extParams?: any) => void;
|
|
294
|
-
onFavorite?: (item: any, extParams?: any) => void;
|
|
295
|
-
onAction?: (item: any, extParams?: any) => void;
|
|
296
|
-
[key: string]: any;
|
|
297
|
-
}
|
|
298
|
-
export {};
|