@cloudbase/weda-ui 3.12.2 → 3.13.0

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.
Files changed (42) hide show
  1. package/dist/configs/components/listView.js +13 -26
  2. package/dist/configs/components/wd-ad.d.ts +3 -0
  3. package/dist/configs/components/wd-ad.js +3 -3
  4. package/dist/configs/components/wd-select-multiple.d.ts +2 -0
  5. package/dist/configs/components/wd-select-multiple.js +9 -7
  6. package/dist/configs/components/wd-select.d.ts +2 -0
  7. package/dist/configs/components/wd-select.js +9 -7
  8. package/dist/configs/components/wd-side-tab.js +16 -1
  9. package/dist/configs/components/wd-store-home.d.ts +36 -0
  10. package/dist/configs/components/wd-store-home.js +38 -0
  11. package/dist/configs/components/wd-store-product.d.ts +106 -0
  12. package/dist/configs/components/wd-store-product.js +102 -0
  13. package/dist/configs/components/wd-table.js +1 -1
  14. package/dist/configs/index.d.ts +214 -0
  15. package/dist/configs/index.js +4 -0
  16. package/dist/style/weda-ui.min.css +52 -2
  17. package/dist/web/components/flow/process/constants.d.ts +3 -3
  18. package/dist/web/components/form/uploaderFile/index.css +23 -71
  19. package/dist/web/components/index.d.ts +2 -0
  20. package/dist/web/components/index.js +2 -0
  21. package/dist/web/components/wd-ad/style/view.css +1 -1
  22. package/dist/web/components/wd-icon/wd-icon.d.ts +1 -0
  23. package/dist/web/components/wd-icon/wd-icon.js +4 -9
  24. package/dist/web/components/wd-select/relationSelect/relationSelect.js +14 -10
  25. package/dist/web/components/wd-select/select/selectUI.js +11 -12
  26. package/dist/web/components/wd-select/wd-select.js +3 -3
  27. package/dist/web/components/wd-select-multiple/wd-select-multiple.js +3 -3
  28. package/dist/web/components/wd-store-home/index.css +81 -0
  29. package/dist/web/components/wd-store-home/index.d.ts +8 -0
  30. package/dist/web/components/wd-store-home/index.js +6 -0
  31. package/dist/web/components/wd-store-home/style.d.ts +2 -0
  32. package/dist/web/components/wd-store-home/style.js +2 -0
  33. package/dist/web/components/wd-store-product/index.d.ts +8 -0
  34. package/dist/web/components/wd-store-product/index.js +7 -0
  35. package/dist/web/components/wd-store-product/style.d.ts +2 -0
  36. package/dist/web/components/wd-store-product/style.js +2 -0
  37. package/dist/web/components/wd-table/hooks/useChooseList.d.ts +1 -1
  38. package/dist/web/components/wd-table/hooks/useChooseList.js +5 -4
  39. package/dist/web/components/wd-tabs/util.js +2 -4
  40. package/dist/web/utils/loadIconCss.d.ts +2 -1
  41. package/dist/web/utils/loadIconCss.js +33 -0
  42. package/package.json +3 -3
@@ -855,7 +855,7 @@ const data = Type.Object({
855
855
  },
856
856
  {
857
857
  type: 'value:state',
858
- target: '*(queryCondition,datasource,selectFieldType)',
858
+ target: '*(queryCondition,datasource,selectFieldType,isSupportMultipleSort)',
859
859
  condition: "{{$self.value ==='data-model'}}",
860
860
  state: {
861
861
  display: true,
@@ -865,26 +865,14 @@ const data = Type.Object({
865
865
  },
866
866
  },
867
867
  {
868
- type: 'value:state',
868
+ type: 'value:visible',
869
869
  target: '*(sorter)',
870
870
  condition: "{{$self.value ==='data-model'&&$form.values.isSupportMultipleSort}}",
871
- state: {
872
- display: true,
873
- },
874
- otherwise: {
875
- display: false,
876
- },
877
871
  },
878
872
  {
879
- type: 'value:state',
873
+ type: 'value:visible',
880
874
  target: '*(orderBy,orderType)',
881
875
  condition: "{{$self.value ==='data-model'&&!$form.values.isSupportMultipleSort}}",
882
- state: {
883
- display: true,
884
- },
885
- otherwise: {
886
- display: false,
887
- },
888
876
  },
889
877
  {
890
878
  type: 'value:state',
@@ -1029,7 +1017,7 @@ const data = Type.Object({
1029
1017
  condition: '{{!!$value && !!$value.name && !!$form.values.orderBy && getDataSourceValueOptions($value.name).every(o => o.value !== $form.values.orderBy)}}',
1030
1018
  target: 'orderBy',
1031
1019
  state: {
1032
- value: '',
1020
+ value: 'updatedAt',
1033
1021
  },
1034
1022
  },
1035
1023
  {
@@ -1300,20 +1288,14 @@ const data = Type.Object({
1300
1288
  },
1301
1289
  'x-linkages': [
1302
1290
  {
1303
- type: 'value:state',
1291
+ type: 'value:visible',
1304
1292
  target: '*(sorter)',
1305
- condition: '{{$self.value&&$form.values?.datasource?.name}}',
1306
- state: {
1307
- display: true,
1308
- },
1293
+ condition: '{{$self.value&&$form.values?.dataSourceType==="data-model"}}',
1309
1294
  },
1310
1295
  {
1311
- type: 'value:state',
1296
+ type: 'value:visible',
1312
1297
  target: '*(orderBy,orderType)',
1313
- condition: '{{$self.value}}',
1314
- state: {
1315
- display: false,
1316
- },
1298
+ condition: '{{!$self.value&&$form.values?.dataSourceType==="data-model"}}',
1317
1299
  },
1318
1300
  {
1319
1301
  type: 'value:state',
@@ -1714,6 +1696,11 @@ const data = Type.Object({
1714
1696
  target: 'selectFieldType',
1715
1697
  condition: '{{ Boolean($self.value) }}',
1716
1698
  },
1699
+ {
1700
+ type: 'value:visible',
1701
+ target: 'isSupportMultipleSort',
1702
+ condition: '{{ Boolean($self.value) }}',
1703
+ },
1717
1704
  ],
1718
1705
  })),
1719
1706
  });
@@ -29,12 +29,15 @@ declare const config: {
29
29
  readonly events: readonly [{
30
30
  readonly name: "load";
31
31
  readonly title: "广告加载成功";
32
+ readonly 'x-platforms': readonly ["MP"];
32
33
  }, {
33
34
  readonly name: "error";
34
35
  readonly title: "广告加载失败";
36
+ readonly 'x-platforms': readonly ["MP"];
35
37
  }, {
36
38
  readonly name: "close";
37
39
  readonly title: "广告被关闭";
40
+ readonly 'x-platforms': readonly ["MP"];
38
41
  }];
39
42
  readonly meta: {
40
43
  readonly title: "小程序广告";
@@ -77,9 +77,9 @@ const config = defineConfig({
77
77
  ],
78
78
  methods: [],
79
79
  events: [
80
- { name: 'load', title: '广告加载成功' },
81
- { name: 'error', title: '广告加载失败' },
82
- { name: 'close', title: '广告被关闭' },
80
+ { name: 'load', title: '广告加载成功', 'x-platforms': ['MP'] },
81
+ { name: 'error', title: '广告加载失败', 'x-platforms': ['MP'] },
82
+ { name: 'close', title: '广告被关闭', 'x-platforms': ['MP'] },
83
83
  ],
84
84
  meta: {
85
85
  title: '小程序广告',
@@ -50,6 +50,7 @@ declare const data: import("@sinclair/typebox").TObject<{
50
50
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
51
51
  default: string;
52
52
  }>;
53
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
53
54
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
54
55
  }>;
55
56
  declare const config: {
@@ -104,6 +105,7 @@ declare const config: {
104
105
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
105
106
  default: string;
106
107
  }>;
108
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
107
109
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
108
110
  }>;
109
111
  readonly properties: import("@sinclair/typebox").TObject<{
@@ -31,6 +31,14 @@ const data = Type.Partial(Type.Object({
31
31
  placeholder: Object.assign({}, FORM_ITEM_DATA.placeholder, {
32
32
  default: '请选择',
33
33
  }),
34
+ searchPlaceholder: Type.String({
35
+ title: '搜索框占位文字',
36
+ type: 'string',
37
+ default: '搜索选项',
38
+ 'x-index': 31,
39
+ 'x-category': X_CATEGORY.COMMON,
40
+ 'x-helper-text': 'PC/H5端生效',
41
+ }),
34
42
  size: FORM_ITEM_DATA.size,
35
43
  // 标题
36
44
  ...TITLE,
@@ -78,13 +86,7 @@ const data = Type.Partial(Type.Object({
78
86
  }));
79
87
  const properties = Type.Composite([
80
88
  Type.Pick(data, ['name', 'label', 'value', 'required', 'before', 'after']),
81
- Type.Pick(ItemData, [
82
- 'visible',
83
- 'disabled',
84
- 'readOnly',
85
- 'selectedLabel',
86
- 'item',
87
- ]),
89
+ Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel', 'item']),
88
90
  ]);
89
91
  const CLASSES = getClasses('select-multiple', { kind: '选择框' });
90
92
  const classes = [
@@ -47,6 +47,7 @@ declare const data: import("@sinclair/typebox").TObject<{
47
47
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
48
48
  default: string;
49
49
  }>;
50
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
50
51
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
51
52
  format: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
52
53
  viewId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -103,6 +104,7 @@ declare const config: {
103
104
  placeholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
104
105
  default: string;
105
106
  }>;
107
+ searchPlaceholder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
106
108
  size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
107
109
  format: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
108
110
  viewId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -29,6 +29,14 @@ const data = Type.Partial(Type.Object({
29
29
  placeholder: Object.assign({}, FORM_ITEM_DATA.placeholder, {
30
30
  default: '请选择',
31
31
  }),
32
+ searchPlaceholder: Type.String({
33
+ title: '搜索框占位文字',
34
+ type: 'string',
35
+ default: '搜索选项',
36
+ 'x-index': 31,
37
+ 'x-category': X_CATEGORY.COMMON,
38
+ 'x-helper-text': 'PC/H5端生效',
39
+ }),
32
40
  size: FORM_ITEM_DATA.size,
33
41
  format: FORM_ITEM_DATA._formatInSelect,
34
42
  viewId: FORM_ITEM_DATA.viewId,
@@ -55,13 +63,7 @@ const data = Type.Partial(Type.Object({
55
63
  }));
56
64
  const properties = Type.Composite([
57
65
  Type.Pick(data, ['name', 'value', 'label', 'required']),
58
- Type.Pick(ItemData, [
59
- 'visible',
60
- 'disabled',
61
- 'readOnly',
62
- 'selectedLabel',
63
- 'item',
64
- ]),
66
+ Type.Pick(ItemData, ['visible', 'disabled', 'readOnly', 'selectedLabel', 'item']),
65
67
  ]);
66
68
  const CLASSES = getClasses('select', { kind: '选择框' });
67
69
  const classes = [
@@ -36,6 +36,21 @@ const data = Type.Object({
36
36
  display: false,
37
37
  'x-group': '高级属性',
38
38
  'x-index': 50,
39
+ 'x-linkages': [
40
+ {
41
+ type: 'value:schema',
42
+ schema: {
43
+ 'x-props': {
44
+ 'x-slot-auto': {
45
+ iterable: '[]',
46
+ generator: '{{ {key:$item.slotKey, title: ($item.label) } }}',
47
+ },
48
+ },
49
+ },
50
+ condition: '{{!$self.value}}',
51
+ target: 'autoPanel',
52
+ },
53
+ ],
39
54
  }),
40
55
  list: Type.Array(Type.Object({
41
56
  label: Type.String({
@@ -338,7 +353,7 @@ const data = Type.Object({
338
353
  'x-group': '基础属性',
339
354
  type: 'slot',
340
355
  'x-slot-auto': {
341
- iterable: '{{ $form.values.isSlotAuto ?($form.values.isMultipleSlot? $form.values.list.filter(item => item.slotKey):[$form.values.list[0]]):[] }}',
356
+ iterable: '{{ $form.values.isMultipleSlot? $form.values.list.filter(item => item.slotKey):[{slotKey:1,label:"内容插槽"}] }}',
342
357
  generator: '{{ {key:$item.slotKey, title: ($item.label) } }}',
343
358
  },
344
359
  })),
@@ -0,0 +1,36 @@
1
+ import { Static } from '../type-utils';
2
+ import type { Simplify } from 'type-fest';
3
+ declare const data: import("@sinclair/typebox").TObject<{
4
+ appid: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
+ }>;
6
+ declare const config: {
7
+ readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
8
+ readonly data: import("@sinclair/typebox").TObject<{
9
+ appid: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
+ }>;
11
+ readonly classes: readonly [];
12
+ readonly methods: readonly [];
13
+ readonly events: readonly [];
14
+ readonly meta: {
15
+ readonly title: "小店首页";
16
+ readonly name: "WdStoreHome";
17
+ readonly componentName: "StoreHome";
18
+ readonly figureIcon: "../figureIcons/WdStore.svg";
19
+ readonly icon: "../icons/WdStore.svg";
20
+ readonly category: "小程序";
21
+ readonly categoryOrder: 700;
22
+ readonly componentOrder: 610;
23
+ readonly platform: readonly ["MP"];
24
+ readonly visible: readonly ["APP"];
25
+ readonly inlineStyleForm: any;
26
+ readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/wxOpen/WdStoreHome";
27
+ readonly shortcut: {
28
+ readonly props: readonly ["appid"];
29
+ };
30
+ readonly description: "小程序内嵌微信小店首页,展示小店首页,并进行跳转交易。";
31
+ readonly propertyPanelTips: "1.仅支持在小程序端使用,PC/H5中将自动隐藏,请注意页面布局。\n \n2.该组件必须在小程序真实环境使用才能够看到实际效果。\n";
32
+ readonly stylePanelTips: "该组件不允许直接设置样式属性。";
33
+ };
34
+ };
35
+ export type DataType = Simplify<Static<typeof data>>;
36
+ export default config;
@@ -0,0 +1,38 @@
1
+ import { defineConfig, Type } from '../type-utils';
2
+ const data = Type.Partial(Type.Object({
3
+ appid: Type.String({
4
+ title: '小店appid',
5
+ 'x-helper-text': '小店appid。获取方式:[小店后台](https://store.weixin.qq.com/shop/setting/home) - 店铺管理 - 基础信息 - 账号信息 - 微信小店ID。',
6
+ 'x-index': 10,
7
+ }),
8
+ }));
9
+ const config = defineConfig({
10
+ $schema: 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json',
11
+ data,
12
+ classes: [],
13
+ methods: [],
14
+ events: [],
15
+ meta: {
16
+ title: '小店首页',
17
+ name: 'WdStoreHome',
18
+ componentName: 'StoreHome',
19
+ figureIcon: '../figureIcons/WdStore.svg',
20
+ icon: '../icons/WdStore.svg',
21
+ category: '小程序',
22
+ categoryOrder: 700,
23
+ componentOrder: 610,
24
+ platform: ['MP'],
25
+ visible: ['APP'],
26
+ inlineStyleForm: {
27
+ $blockedAll: true,
28
+ },
29
+ docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/wxOpen/WdStoreHome',
30
+ shortcut: {
31
+ props: ['appid'],
32
+ },
33
+ description: '小程序内嵌微信小店首页,展示小店首页,并进行跳转交易。',
34
+ propertyPanelTips: '1.仅支持在小程序端使用,PC/H5中将自动隐藏,请注意页面布局。\n \n2.该组件必须在小程序真实环境使用才能够看到实际效果。\n',
35
+ stylePanelTips: '该组件不允许直接设置样式属性。',
36
+ },
37
+ });
38
+ export default config;
@@ -0,0 +1,106 @@
1
+ import { Static } from '../type-utils';
2
+ import type { Simplify } from 'type-fest';
3
+ declare const data: import("@sinclair/typebox").TObject<{
4
+ appid: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
+ productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
+ productPromotionLink: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
+ mediaId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
+ customStyle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
9
+ card: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
10
+ 'background-color': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11
+ }>>;
12
+ title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
13
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14
+ }>>;
15
+ price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
16
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
17
+ }>>;
18
+ 'buy-button': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
19
+ width: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
+ 'border-radius': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21
+ 'background-color': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
22
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
23
+ }>>;
24
+ 'buy-button-disabled': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
25
+ width: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
26
+ 'border-radius': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
27
+ 'background-color': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
28
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
29
+ }>>;
30
+ }>>;
31
+ }>;
32
+ declare const config: {
33
+ readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
34
+ readonly data: import("@sinclair/typebox").TObject<{
35
+ appid: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
36
+ productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
37
+ productPromotionLink: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
38
+ mediaId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
39
+ customStyle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
40
+ card: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
41
+ 'background-color': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
42
+ }>>;
43
+ title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
44
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
45
+ }>>;
46
+ price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
47
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
48
+ }>>;
49
+ 'buy-button': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
50
+ width: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
51
+ 'border-radius': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
52
+ 'background-color': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
53
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
54
+ }>>;
55
+ 'buy-button-disabled': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
56
+ width: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
57
+ 'border-radius': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
58
+ 'background-color': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
59
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
60
+ }>>;
61
+ }>>;
62
+ }>;
63
+ readonly classes: readonly [];
64
+ readonly methods: readonly [];
65
+ readonly events: readonly [{
66
+ readonly name: "bindentersuccess";
67
+ readonly title: "跳转小店成功的回调";
68
+ readonly 'x-platforms': readonly ["MP"];
69
+ }, {
70
+ readonly name: "bindentererror";
71
+ readonly title: "跳转小店失败的回调";
72
+ readonly detail: import("@sinclair/typebox").TObject<{
73
+ code: import("@sinclair/typebox").TString;
74
+ message: import("@sinclair/typebox").TString;
75
+ }>;
76
+ readonly 'x-platforms': readonly ["MP"];
77
+ }];
78
+ readonly meta: {
79
+ readonly title: "小店商品";
80
+ readonly name: "WdStoreProduct";
81
+ readonly componentName: "StoreProduct";
82
+ readonly figureIcon: "../figureIcons/WdStore.svg";
83
+ readonly icon: "../icons/WdStore.svg";
84
+ readonly category: "小程序";
85
+ readonly categoryOrder: 700;
86
+ readonly componentOrder: 620;
87
+ readonly platform: readonly ["MP"];
88
+ readonly visible: readonly ["APP"];
89
+ readonly inlineStyleForm: any;
90
+ readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/wxOpen/WdStoreProduct";
91
+ readonly group: {
92
+ readonly 通用: {
93
+ readonly 'x-index': 1;
94
+ readonly expand: true;
95
+ };
96
+ };
97
+ readonly shortcut: {
98
+ readonly props: readonly ["adType", "unitId"];
99
+ };
100
+ readonly description: "小程序内嵌微信小店商品,展示小店商品,并进行跳转交易。支持小店优选联盟带货跟佣功能。";
101
+ readonly propertyPanelTips: "1.仅支持在小程序端使用,PC/H5中将自动隐藏,请注意页面布局。\n \n2.该组件必须在小程序真实环境使用才能够看到实际效果。\n ";
102
+ readonly stylePanelTips: "该组件不允许直接设置样式属性。";
103
+ };
104
+ };
105
+ export type DataType = Simplify<Static<typeof data>>;
106
+ export default config;
@@ -0,0 +1,102 @@
1
+ import { defineConfig, Type } from '../type-utils';
2
+ const data = Type.Partial(Type.Object({
3
+ appid: Type.String({
4
+ title: '小店appid',
5
+ 'x-helper-text': '小店appid。获取方式:[小店后台](https://store.weixin.qq.com/shop/setting/home) - 店铺管理 - 基础信息 - 账号信息 - 微信小店ID。',
6
+ 'x-index': 10,
7
+ }),
8
+ productId: Type.String({
9
+ title: '商品id',
10
+ required: true,
11
+ 'x-helper-text': '获取小店商品id,可以通过API获取[参考链接](https://developers.weixin.qq.com/doc/store/API/product/get.html)或通过[小店后台](https://store.weixin.qq.com/shop/setting/home) - 商品管理 - 商品列表 - 规格/编码获取。',
12
+ 'x-category': '通用',
13
+ 'x-index': 20,
14
+ }),
15
+ productPromotionLink: Type.String({
16
+ title: '带货商品跟佣信息',
17
+ 'x-helper-text': '若需要商品售卖时使用小店优选联盟带货跟佣功能,可以通过API获取带货商品跟佣信息[参考链接](https://developers.weixin.qq.com/doc/channels/API/windowproduct/get.html)。',
18
+ 'x-category': '通用',
19
+ 'x-index': 30,
20
+ }),
21
+ mediaId: Type.String({
22
+ title: '媒体文件id',
23
+ minimum: 30,
24
+ 'x-helper-text': '可以通过API获取[参考链接](https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/cooperation_shop/upload.html#%E4%B8%80%E3%80%81%E4%B8%8A%E4%BC%A0%E8%B5%84%E6%96%99)',
25
+ 'x-category': '通用',
26
+ 'x-index': 40,
27
+ }),
28
+ customStyle: Type.Object({
29
+ card: Type.Optional(Type.Object({
30
+ 'background-color': Type.Optional(Type.String({ title: 'background-color' })),
31
+ }, { title: '卡片样式' })),
32
+ title: Type.Optional(Type.Object({
33
+ color: Type.Optional(Type.String({ title: 'color' })),
34
+ }, { title: '标题样式' })),
35
+ price: Type.Optional(Type.Object({ color: Type.Optional(Type.String({ title: 'color' })) }, { title: '价格样式' })),
36
+ 'buy-button': Type.Optional(Type.Object({
37
+ width: Type.Optional(Type.String({ title: 'width' })),
38
+ 'border-radius': Type.Optional(Type.String({ title: 'border-radius' })),
39
+ 'background-color': Type.Optional(Type.String({ title: 'background-color' })),
40
+ color: Type.Optional(Type.String({ title: 'color' })),
41
+ }, { title: '购买按钮样式' })),
42
+ 'buy-button-disabled': Type.Optional(Type.Object({
43
+ width: Type.Optional(Type.String({ title: 'width' })),
44
+ 'border-radius': Type.Optional(Type.String({ title: 'border-radius' })),
45
+ 'background-color': Type.Optional(Type.String({ title: 'background-color' })),
46
+ color: Type.Optional(Type.String({ title: 'color' })),
47
+ }, { title: '购买按钮禁用态样式' })),
48
+ }, {
49
+ title: '自定义样式',
50
+ 'x-category': '通用',
51
+ 'x-index': 50,
52
+ 'x-component': 'jsontext',
53
+ 'x-helper-text': '自定义样式,可参考[微信小店文档](https://developers.weixin.qq.com/miniprogram/dev/component/store-product.html)',
54
+ }),
55
+ }));
56
+ const config = defineConfig({
57
+ $schema: 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json',
58
+ data,
59
+ classes: [],
60
+ methods: [],
61
+ events: [
62
+ { name: 'bindentersuccess', title: '跳转小店成功的回调', 'x-platforms': ['MP'] },
63
+ {
64
+ name: 'bindentererror',
65
+ title: '跳转小店失败的回调',
66
+ detail: Type.Object({
67
+ code: Type.String({ title: '错误码' }),
68
+ message: Type.String({ title: '错误信息' }),
69
+ }),
70
+ 'x-platforms': ['MP'],
71
+ },
72
+ ],
73
+ meta: {
74
+ title: '小店商品',
75
+ name: 'WdStoreProduct',
76
+ componentName: 'StoreProduct',
77
+ figureIcon: '../figureIcons/WdStore.svg',
78
+ icon: '../icons/WdStore.svg',
79
+ category: '小程序',
80
+ categoryOrder: 700,
81
+ componentOrder: 620,
82
+ platform: ['MP'],
83
+ visible: ['APP'],
84
+ inlineStyleForm: {
85
+ $blockedAll: true,
86
+ },
87
+ docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/wxOpen/WdStoreProduct',
88
+ group: {
89
+ ['通用']: {
90
+ 'x-index': 1,
91
+ expand: true,
92
+ },
93
+ },
94
+ shortcut: {
95
+ props: ['adType', 'unitId'],
96
+ },
97
+ description: '小程序内嵌微信小店商品,展示小店商品,并进行跳转交易。支持小店优选联盟带货跟佣功能。',
98
+ propertyPanelTips: '1.仅支持在小程序端使用,PC/H5中将自动隐藏,请注意页面布局。\n \n2.该组件必须在小程序真实环境使用才能够看到实际效果。\n ',
99
+ stylePanelTips: '该组件不允许直接设置样式属性。',
100
+ },
101
+ });
102
+ export default config;
@@ -110,7 +110,7 @@ const data = Type.Object({
110
110
  'x-linkages': [
111
111
  {
112
112
  type: 'value:state',
113
- target: '*( filterFields,bindMetadata,queryCondition)',
113
+ target: '*( filterFields,bindMetadata,queryCondition,selectFieldType)',
114
114
  condition: "{{$self.value ==='data-model'}}",
115
115
  state: {
116
116
  display: true,