@cloudbase/weda-ui 3.12.3 → 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 (30) hide show
  1. package/dist/configs/components/listView.js +19 -3
  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-side-tab.js +16 -1
  5. package/dist/configs/components/wd-store-home.d.ts +36 -0
  6. package/dist/configs/components/wd-store-home.js +38 -0
  7. package/dist/configs/components/wd-store-product.d.ts +106 -0
  8. package/dist/configs/components/wd-store-product.js +102 -0
  9. package/dist/configs/components/wd-table.js +1 -1
  10. package/dist/configs/index.d.ts +210 -0
  11. package/dist/configs/index.js +4 -0
  12. package/dist/style/weda-ui.min.css +2 -2
  13. package/dist/web/components/index.d.ts +2 -0
  14. package/dist/web/components/index.js +2 -0
  15. package/dist/web/components/wd-ad/style/view.css +1 -1
  16. package/dist/web/components/wd-select/relationSelect/relationSelect.js +13 -6
  17. package/dist/web/components/wd-select/select/selectUI.js +9 -10
  18. package/dist/web/components/wd-store-home/index.css +81 -0
  19. package/dist/web/components/wd-store-home/index.d.ts +8 -0
  20. package/dist/web/components/wd-store-home/index.js +6 -0
  21. package/dist/web/components/wd-store-home/style.d.ts +2 -0
  22. package/dist/web/components/wd-store-home/style.js +2 -0
  23. package/dist/web/components/wd-store-product/index.d.ts +8 -0
  24. package/dist/web/components/wd-store-product/index.js +7 -0
  25. package/dist/web/components/wd-store-product/style.d.ts +2 -0
  26. package/dist/web/components/wd-store-product/style.js +2 -0
  27. package/dist/web/components/wd-table/hooks/useChooseList.d.ts +1 -1
  28. package/dist/web/components/wd-table/hooks/useChooseList.js +5 -4
  29. package/dist/web/components/wd-tabs/util.js +2 -4
  30. 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,
@@ -874,6 +874,17 @@ const data = Type.Object({
874
874
  target: '*(orderBy,orderType)',
875
875
  condition: "{{$self.value ==='data-model'&&!$form.values.isSupportMultipleSort}}",
876
876
  },
877
+ {
878
+ type: 'value:state',
879
+ target: '*(isSupportMultipleSort)',
880
+ condition: '{{!$form.values.isSupportMultipleSort}}',
881
+ state: {
882
+ display: true,
883
+ },
884
+ otherwise: {
885
+ display: false,
886
+ },
887
+ },
877
888
  {
878
889
  type: 'value:state',
879
890
  target: '*(bindConnectMetadata,connectorMethod,connectorParams)',
@@ -1006,7 +1017,7 @@ const data = Type.Object({
1006
1017
  condition: '{{!!$value && !!$value.name && !!$form.values.orderBy && getDataSourceValueOptions($value.name).every(o => o.value !== $form.values.orderBy)}}',
1007
1018
  target: 'orderBy',
1008
1019
  state: {
1009
- value: '',
1020
+ value: 'updatedAt',
1010
1021
  },
1011
1022
  },
1012
1023
  {
@@ -1284,7 +1295,7 @@ const data = Type.Object({
1284
1295
  {
1285
1296
  type: 'value:visible',
1286
1297
  target: '*(orderBy,orderType)',
1287
- condition: '{{!$self.value}}',
1298
+ condition: '{{!$self.value&&$form.values?.dataSourceType==="data-model"}}',
1288
1299
  },
1289
1300
  {
1290
1301
  type: 'value:state',
@@ -1685,6 +1696,11 @@ const data = Type.Object({
1685
1696
  target: 'selectFieldType',
1686
1697
  condition: '{{ Boolean($self.value) }}',
1687
1698
  },
1699
+ {
1700
+ type: 'value:visible',
1701
+ target: 'isSupportMultipleSort',
1702
+ condition: '{{ Boolean($self.value) }}',
1703
+ },
1688
1704
  ],
1689
1705
  })),
1690
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: '小程序广告',
@@ -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,