mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 23:55:08 +00:00
feat(Sku): add properties support (#5525)
This commit is contained in:
14
types/sku.d.ts
vendored
14
types/sku.d.ts
vendored
@@ -10,6 +10,7 @@ export type SkuData = {
|
||||
tree: SkuTreeItemData[];
|
||||
list: SkuListItemData[];
|
||||
messages: SkuMessageData[];
|
||||
properties: SkuPropItemData[];
|
||||
};
|
||||
|
||||
export type SkuTreeItemData = {
|
||||
@@ -26,6 +27,19 @@ export type SkuTreeItemValueData = {
|
||||
previewImgUrl?: string;
|
||||
};
|
||||
|
||||
export type SkuPropItemData = {
|
||||
k: string;
|
||||
v: SkuPropItemValueData[];
|
||||
k_id: number;
|
||||
is_multiple?: boolean;
|
||||
};
|
||||
|
||||
export type SkuPropItemValueData = {
|
||||
id: string;
|
||||
name: string;
|
||||
price?: number;
|
||||
};
|
||||
|
||||
export type SkuListItemData = {
|
||||
id: number;
|
||||
s1: string;
|
||||
|
Reference in New Issue
Block a user