@cloudbase/weda-ui 3.12.4 → 3.13.1
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.
- package/dist/configs/components/wd-ad.d.ts +3 -0
- package/dist/configs/components/wd-ad.js +3 -3
- package/dist/configs/components/wd-select-multiple.d.ts +14 -0
- package/dist/configs/components/wd-select-multiple.js +18 -1
- package/dist/configs/components/wd-select.d.ts +9 -4
- package/dist/configs/components/wd-select.js +11 -2
- package/dist/configs/components/wd-store-home.d.ts +36 -0
- package/dist/configs/components/wd-store-home.js +38 -0
- package/dist/configs/components/wd-store-product.d.ts +106 -0
- package/dist/configs/components/wd-store-product.js +102 -0
- package/dist/configs/components/wd-table.d.ts +2 -0
- package/dist/configs/components/wd-table.js +7 -0
- package/dist/configs/index.d.ts +254 -8
- package/dist/configs/index.js +4 -0
- package/dist/configs/type-utils/type-form.d.ts +2 -0
- package/dist/configs/type-utils/type-form.js +25 -7
- package/dist/configs/type-utils/x-runtime-default.d.ts +1 -0
- package/dist/configs/type-utils/x-runtime-default.js +1 -0
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/index.d.ts +2 -0
- package/dist/web/components/index.js +2 -0
- package/dist/web/components/wd-ad/style/view.css +1 -1
- package/dist/web/components/wd-form-item/wd-form-item-read-only.d.ts +1 -0
- package/dist/web/components/wd-form-item/wd-form-item-read-only.js +2 -2
- package/dist/web/components/wd-select/relationSelect/relationSelect.js +4 -1
- package/dist/web/components/wd-select/select/selectUI.js +11 -7
- package/dist/web/components/wd-select/wd-select.js +2 -2
- package/dist/web/components/wd-select-multiple/wd-select-multiple.js +2 -2
- package/dist/web/components/wd-store-home/index.css +81 -0
- package/dist/web/components/wd-store-home/index.d.ts +8 -0
- package/dist/web/components/wd-store-home/index.js +12 -0
- package/dist/web/components/wd-store-home/style.d.ts +2 -0
- package/dist/web/components/wd-store-home/style.js +2 -0
- package/dist/web/components/wd-store-product/index.d.ts +8 -0
- package/dist/web/components/wd-store-product/index.js +13 -0
- package/dist/web/components/wd-store-product/style.d.ts +2 -0
- package/dist/web/components/wd-store-product/style.js +2 -0
- package/dist/web/components/wd-table/hooks/useChooseList.js +2 -1
- package/dist/web/components/wd-table/wd-table.js +6 -3
- package/package.json +1 -1
|
@@ -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: '小程序广告',
|
|
@@ -4,6 +4,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
4
4
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
5
5
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
6
6
|
enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
7
|
+
enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
7
8
|
enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
8
9
|
addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
10
|
suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -59,6 +60,7 @@ declare const config: {
|
|
|
59
60
|
enableRelationalSetting: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
60
61
|
enableRelationalRefresh: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
61
62
|
enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
63
|
+
enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
62
64
|
enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
63
65
|
addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
64
66
|
suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -202,6 +204,18 @@ declare const config: {
|
|
|
202
204
|
readonly name: string;
|
|
203
205
|
readonly title: string;
|
|
204
206
|
readonly description: string;
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "change";
|
|
209
|
+
readonly title: "值改变";
|
|
210
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
211
|
+
value: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString> & {
|
|
212
|
+
title: string;
|
|
213
|
+
};
|
|
214
|
+
context: import("@sinclair/typebox").TObject<{
|
|
215
|
+
options: import("@sinclair/typebox").TObject<{}>;
|
|
216
|
+
}>;
|
|
217
|
+
}>;
|
|
218
|
+
readonly description: "用户修改组件值时触发";
|
|
205
219
|
}, {
|
|
206
220
|
readonly title: "输入搜索内容";
|
|
207
221
|
readonly name: "search";
|
|
@@ -47,6 +47,7 @@ const data = Type.Partial(Type.Object({
|
|
|
47
47
|
enableRelationalSetting: FORM_ITEM_DATA.enableRelationalSetting,
|
|
48
48
|
enableRelationalRefresh: FORM_ITEM_DATA.enableRelationalRefresh,
|
|
49
49
|
enableRelationOptionJump: FORM_ITEM_DATA.enableRelationOptionJump,
|
|
50
|
+
enableRelationTag: FORM_ITEM_DATA.enableRelationTag,
|
|
50
51
|
enableAddRelationButton: FORM_ITEM_DATA.enableAddRelationButton,
|
|
51
52
|
addRelationButtonText: FORM_ITEM_DATA.addRelationButtonText,
|
|
52
53
|
suffixType: FORM_ITEM_DATA._suffixTypeInSelect,
|
|
@@ -66,9 +67,14 @@ const data = Type.Partial(Type.Object({
|
|
|
66
67
|
},
|
|
67
68
|
{
|
|
68
69
|
type: 'value:visible',
|
|
69
|
-
target: '*(selectFieldType,tipBlock,where,enableRelationalSetting,enableRelationalRefresh,enableAddRelationButton)',
|
|
70
|
+
target: '*(selectFieldType,tipBlock,where,enableRelationalSetting,enableRelationalRefresh,enableAddRelationButton,enableRelationOptionJump)',
|
|
70
71
|
condition: "{{$self.value=='many-many'||$self.value=='one-many'}}",
|
|
71
72
|
},
|
|
73
|
+
{
|
|
74
|
+
type: 'value:visible',
|
|
75
|
+
target: '*(enableRelationTag)',
|
|
76
|
+
condition: "{{$self.value=='x-enum'||$self.value=='many-many'||$self.value=='one-many'}}",
|
|
77
|
+
},
|
|
72
78
|
],
|
|
73
79
|
'x-category': X_CATEGORY.COMMON,
|
|
74
80
|
'x-index': 43,
|
|
@@ -140,6 +146,17 @@ const config = defineConfig({
|
|
|
140
146
|
...FORM_ITEM_EVENTS.change,
|
|
141
147
|
detail: paramValueType,
|
|
142
148
|
},
|
|
149
|
+
{
|
|
150
|
+
name: 'change',
|
|
151
|
+
title: '值改变',
|
|
152
|
+
detail: Type.Object({
|
|
153
|
+
value: Object.assign({}, FORM_ITEM_DATA._valueInSelectMultiple, {
|
|
154
|
+
title: '值',
|
|
155
|
+
}),
|
|
156
|
+
context: Type.Object({ options: Type.Object({}, { description: '选中值' }) }, { description: '此次变更的更多上下文信息,其中 context.options 可以获得选中项的值' }),
|
|
157
|
+
}),
|
|
158
|
+
description: '用户修改组件值时触发',
|
|
159
|
+
},
|
|
143
160
|
{
|
|
144
161
|
title: '输入搜索内容',
|
|
145
162
|
name: 'search',
|
|
@@ -8,6 +8,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
8
8
|
enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
9
9
|
addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
10
|
enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
11
|
+
enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
11
12
|
suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
12
13
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
13
14
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -65,6 +66,7 @@ declare const config: {
|
|
|
65
66
|
enableAddRelationButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
66
67
|
addRelationButtonText: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
67
68
|
enableRelationOptionJump: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
69
|
+
enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
68
70
|
suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
69
71
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
70
72
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -192,12 +194,15 @@ declare const config: {
|
|
|
192
194
|
description: string;
|
|
193
195
|
}];
|
|
194
196
|
readonly events: readonly [{
|
|
195
|
-
name:
|
|
196
|
-
title:
|
|
197
|
-
detail: import("@sinclair/typebox").TObject<{
|
|
197
|
+
readonly name: "change";
|
|
198
|
+
readonly title: "值改变";
|
|
199
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
198
200
|
value: import("@sinclair/typebox").TString;
|
|
201
|
+
context: import("@sinclair/typebox").TObject<{
|
|
202
|
+
option: import("@sinclair/typebox").TObject<{}>;
|
|
203
|
+
}>;
|
|
199
204
|
}>;
|
|
200
|
-
description:
|
|
205
|
+
readonly description: "用户修改组件值时触发";
|
|
201
206
|
}, {
|
|
202
207
|
readonly title: "输入搜索内容";
|
|
203
208
|
readonly name: "search";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
|
-
import { FORM_ITEM_DATA,
|
|
2
|
+
import { FORM_ITEM_DATA, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
|
|
3
3
|
import { getClasses } from '../type-utils/classes';
|
|
4
4
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
5
5
|
const SELECT = pickWithXCategory(FORM_ITEM_DATA, [
|
|
@@ -54,6 +54,7 @@ const data = Type.Partial(Type.Object({
|
|
|
54
54
|
enableAddRelationButton: FORM_ITEM_DATA.enableAddRelationButton,
|
|
55
55
|
addRelationButtonText: FORM_ITEM_DATA.addRelationButtonText,
|
|
56
56
|
enableRelationOptionJump: FORM_ITEM_DATA.enableRelationOptionJump,
|
|
57
|
+
enableRelationTag: FORM_ITEM_DATA.enableRelationTag,
|
|
57
58
|
suffixType: FORM_ITEM_DATA._suffixTypeInSelect,
|
|
58
59
|
// 状态校验
|
|
59
60
|
status: FORM_ITEM_DATA.status,
|
|
@@ -107,7 +108,15 @@ const config = defineConfig({
|
|
|
107
108
|
FORM_ITEM_METHODS.clearValidate,
|
|
108
109
|
],
|
|
109
110
|
events: [
|
|
110
|
-
|
|
111
|
+
{
|
|
112
|
+
name: 'change',
|
|
113
|
+
title: '值改变',
|
|
114
|
+
detail: Type.Object({
|
|
115
|
+
value: Type.String({ description: '选中值' }),
|
|
116
|
+
context: Type.Object({ option: Type.Object({}, { description: '选中项' }) }, { description: '此次变更的更多上下文信息,其中 context.option 可以获得选中项的内容' }),
|
|
117
|
+
}),
|
|
118
|
+
description: '用户修改组件值时触发',
|
|
119
|
+
},
|
|
111
120
|
{
|
|
112
121
|
title: '输入搜索内容',
|
|
113
122
|
name: 'search',
|
|
@@ -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 ["appid"];
|
|
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: ['appid'],
|
|
96
|
+
},
|
|
97
|
+
description: '小程序内嵌微信小店商品,展示小店商品,并进行跳转交易。支持小店优选联盟带货跟佣功能。',
|
|
98
|
+
propertyPanelTips: '1.仅支持在小程序端使用,PC/H5中将自动隐藏,请注意页面布局。\n \n2.该组件必须在小程序真实环境使用才能够看到实际效果。\n ',
|
|
99
|
+
stylePanelTips: '该组件不允许直接设置样式属性。',
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
export default config;
|
|
@@ -76,6 +76,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
76
76
|
connectorParams: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
77
77
|
isOrderBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
78
78
|
enableCellCustomOption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
79
|
+
enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
79
80
|
customOptionTitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
80
81
|
columnSelectType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
81
82
|
fixedFront: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
@@ -173,6 +174,7 @@ declare const config: {
|
|
|
173
174
|
connectorParams: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
174
175
|
isOrderBy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
175
176
|
enableCellCustomOption: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
177
|
+
enableRelationTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
176
178
|
customOptionTitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
177
179
|
columnSelectType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
178
180
|
fixedFront: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<any>>;
|
|
@@ -1275,6 +1275,13 @@ const data = Type.Object({
|
|
|
1275
1275
|
},
|
|
1276
1276
|
],
|
|
1277
1277
|
})),
|
|
1278
|
+
enableRelationTag: Type.Optional(Type.Boolean({
|
|
1279
|
+
title: '显示关联标签',
|
|
1280
|
+
'x-index': 131,
|
|
1281
|
+
'x-runtime-default': true,
|
|
1282
|
+
'x-group': '表格列',
|
|
1283
|
+
description: '开启后,表格中的关联关系字段默认以标签形式展示',
|
|
1284
|
+
})),
|
|
1278
1285
|
customOptionTitle: Type.Optional(Type.String({
|
|
1279
1286
|
title: '操作列标题',
|
|
1280
1287
|
'x-index': 133,
|