ftdsy-attr 2.3.2 → 2.3.4

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.
@@ -12,6 +12,7 @@ type PropertyOption = {
12
12
  label: string;
13
13
  value: string;
14
14
  parent_value?: string[];
15
+ label_cn?: string;
15
16
  disableContent?: boolean;
16
17
  value_path?: string;
17
18
  value_ids_path?: string[];
@@ -38,6 +39,7 @@ type DsyAttr = {
38
39
  property_id: string;
39
40
  property_required: boolean;
40
41
  property_name: string;
42
+ property_name_cn?: string;
41
43
  property_type: PropertyType;
42
44
  property_values: PropertyOption[];
43
45
  property_component?: PropertyComponent[];
@@ -76,7 +78,7 @@ declare const getGlobal: () => any;
76
78
  /**
77
79
  * 转换自定义属性列表,
78
80
  * */
79
- declare function createCategoryProperties(platform: Pt, ptAttrs: any): DsyAttr[] | null;
81
+ declare function createCategoryProperties(platform: Pt, ptAttrs: any): Promise<DsyAttr[] | null>;
80
82
  /**
81
83
  * 自定义属性类型装换回原来的类型
82
84
  * */
@@ -84,7 +86,7 @@ declare function getOriginProperty(platform: Pt, type: string): string;
84
86
  /**
85
87
  * 匹配属性值
86
88
  * @param matchDatas 匹配数据
87
- * @param matchLevel 匹配等级
89
+ * @param matchLevel 匹配等级 2: 必传属性必填(匹配不到会随机选择),3:全属性都必填(匹配不到会随机选择)
88
90
  * @param outType 匹配结果输出类型 group: 分组(已去除),template: 模板, list: 自定义属性列表(不含’品牌‘)
89
91
  * */
90
92
  declare function matchCategoryProperties(matchDatas: MatchDatas, matchLevel?: number, outType?: 'template' | 'list'): Promise<{