forked from youzan/vant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype.ts
More file actions
51 lines (44 loc) · 887 Bytes
/
type.ts
File metadata and controls
51 lines (44 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* eslint-disable camelcase */
export type SkuData = {
price: string;
none_sku: boolean;
stock_num: number;
hide_stock: boolean;
collection_id: number;
tree: SkuTreeItemData[];
list: SkuListItemData[];
messages: SkuMessageData[];
};
export type SkuTreeItemData = {
k: string;
v: SkuTreeItemValueData[];
k_s: string;
};
export type SkuTreeItemValueData = {
id: string;
name: string;
imgUrl?: string;
img_url?: string;
previewImgUrl?: string;
};
export type SkuListItemData = {
id: number;
s1: string;
s2: string;
s3: string;
price: number;
stock_num: number;
};
export type SkuMessageData = {
name: string;
type: string;
required?: string;
datetime?: string;
multiple?: string;
placeholder?: string;
};
export type SkuGoodsData = {
title: string;
picture: string;
};
export type SelectedSkuData = Record<string, string>;