@cloudbase/weda-ui 3.5.1 → 3.5.2
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/README.md +3 -0
- package/dist/configs/components/button.d.ts +12 -12
- package/dist/configs/components/calendar.d.ts +26 -0
- package/dist/configs/components/calendar.js +80 -0
- package/dist/configs/components/carousel.json +1 -4
- package/dist/configs/components/chart/line.d.ts +28 -28
- package/dist/configs/components/common/form-input-required.d.ts +1 -1
- package/dist/configs/components/container.d.ts +1 -1
- package/dist/configs/components/customer-service.d.ts +10 -34
- package/dist/configs/components/customer-service.js +91 -92
- package/dist/configs/components/dataView.d.ts +21 -3
- package/dist/configs/components/dataView.js +165 -16
- package/dist/configs/components/echart.d.ts +4 -4
- package/dist/configs/components/form-checkbox.d.ts +18 -18
- package/dist/configs/components/form-checkbox.js +0 -4
- package/dist/configs/components/form-date.d.ts +14 -14
- package/dist/configs/components/form-date.js +0 -4
- package/dist/configs/components/form-depart-tree-select.d.ts +17 -14
- package/dist/configs/components/form-depart-tree-select.js +1 -4
- package/dist/configs/components/form-email.d.ts +10 -10
- package/dist/configs/components/form-email.js +0 -4
- package/dist/configs/components/form-image-uploader.d.ts +11 -8
- package/dist/configs/components/form-image-uploader.js +1 -4
- package/dist/configs/components/form-input.d.ts +16 -16
- package/dist/configs/components/form-input.js +0 -10
- package/dist/configs/components/form-location.d.ts +21 -12
- package/dist/configs/components/form-location.js +1 -4
- package/dist/configs/components/form-multi-region.d.ts +13 -10
- package/dist/configs/components/form-multi-region.js +1 -4
- package/dist/configs/components/form-phone.d.ts +10 -10
- package/dist/configs/components/form-phone.js +0 -4
- package/dist/configs/components/form-radio.d.ts +18 -18
- package/dist/configs/components/form-radio.js +0 -4
- package/dist/configs/components/form-region.d.ts +12 -12
- package/dist/configs/components/form-region.js +0 -4
- package/dist/configs/components/form-rich-text.d.ts +11 -8
- package/dist/configs/components/form-rich-text.js +1 -4
- package/dist/configs/components/form-select-multiple.d.ts +27 -24
- package/dist/configs/components/form-select-multiple.js +1 -4
- package/dist/configs/components/form-select.d.ts +27 -24
- package/dist/configs/components/form-select.js +1 -4
- package/dist/configs/components/form-switch.d.ts +6 -6
- package/dist/configs/components/form-switch.js +0 -4
- package/dist/configs/components/form-text-area.d.ts +10 -10
- package/dist/configs/components/form-text-area.js +0 -4
- package/dist/configs/components/form-time.d.ts +17 -14
- package/dist/configs/components/form-time.js +1 -4
- package/dist/configs/components/form-upload-file.d.ts +13 -10
- package/dist/configs/components/form-upload-file.js +1 -4
- package/dist/configs/components/form-url.d.ts +10 -10
- package/dist/configs/components/form-url.js +0 -4
- package/dist/configs/components/form-user-tree-select.d.ts +19 -16
- package/dist/configs/components/form-user-tree-select.js +1 -4
- package/dist/configs/components/formdetail.json +0 -4
- package/dist/configs/components/grid/col.d.ts +2 -4
- package/dist/configs/components/grid/grid.d.ts +2 -4
- package/dist/configs/components/grid/row.d.ts +2 -3
- package/dist/configs/components/image.d.ts +4 -4
- package/dist/configs/components/link.d.ts +8 -8
- package/dist/configs/components/listView.d.ts +78 -33
- package/dist/configs/components/listView.js +258 -51
- package/dist/configs/components/lottery.d.ts +67 -0
- package/dist/configs/components/lottery.js +178 -0
- package/dist/configs/components/modal.d.ts +2 -2
- package/dist/configs/components/qr_code.d.ts +11 -11
- package/dist/configs/components/repeater.d.ts +10 -91
- package/dist/configs/components/repeater.js +75 -87
- package/dist/configs/components/tabs.d.ts +4 -4
- package/dist/configs/components/text.d.ts +2 -2
- package/dist/configs/components/wd-bubble.d.ts +3 -8
- package/dist/configs/components/wd-button.d.ts +22 -34
- package/dist/configs/components/wd-card.d.ts +10 -10
- package/dist/configs/components/wd-card.js +10 -5
- package/dist/configs/components/wd-checkbox.d.ts +36 -81
- package/dist/configs/components/wd-date-range.d.ts +87 -131
- package/dist/configs/components/wd-date.d.ts +88 -132
- package/dist/configs/components/wd-date.js +1 -1
- package/dist/configs/components/wd-divider.d.ts +2 -2
- package/dist/configs/components/wd-form-detail.d.ts +9 -9
- package/dist/configs/components/wd-form.d.ts +54 -82
- package/dist/configs/components/wd-form.js +1 -1
- package/dist/configs/components/wd-icon.d.ts +8 -9
- package/dist/configs/components/wd-image-upload.d.ts +5 -5
- package/dist/configs/components/wd-image.d.ts +8 -12
- package/dist/configs/components/wd-input-email.d.ts +88 -156
- package/dist/configs/components/wd-input-number.d.ts +38 -179
- package/dist/configs/components/wd-input-number.js +1 -1
- package/dist/configs/components/wd-input-phone.d.ts +86 -156
- package/dist/configs/components/wd-input-url.d.ts +88 -156
- package/dist/configs/components/wd-input.d.ts +120 -164
- package/dist/configs/components/wd-layout.d.ts +1 -5
- package/dist/configs/components/wd-link.d.ts +14 -26
- package/dist/configs/components/wd-modal.d.ts +12 -8
- package/dist/configs/components/wd-modal.js +14 -14
- package/dist/configs/components/wd-official-account.d.ts +3 -5
- package/dist/configs/components/wd-official-account.js +3 -5
- package/dist/configs/components/wd-radio.d.ts +35 -80
- package/dist/configs/components/wd-switch.d.ts +21 -67
- package/dist/configs/components/wd-table.d.ts +95 -132
- package/dist/configs/components/wd-table.js +61 -17
- package/dist/configs/components/wd-text.d.ts +8 -8
- package/dist/configs/components/wd-textarea.d.ts +64 -110
- package/dist/configs/components/wd-time.d.ts +89 -133
- package/dist/configs/components/wd-tree.d.ts +243 -281
- package/dist/configs/components/wd-tree.js +1 -1
- package/dist/configs/components/web-view.d.ts +30 -10
- package/dist/configs/components/web-view.js +34 -33
- package/dist/configs/components/wedaVideo.d.ts +30 -0
- package/dist/configs/components/wedaVideo.js +98 -0
- package/dist/configs/components/wxOpenApi/phone.d.ts +6 -6
- package/dist/configs/components/wxOpenApi/phoneCode.d.ts +6 -62
- package/dist/configs/components/wxOpenApi/phoneCode.js +62 -70
- package/dist/configs/components/wxOpenApi/share.d.ts +12 -12
- package/dist/configs/components/wxOpenApi/userInfo.d.ts +7 -7
- package/dist/configs/index.d.ts +2515 -4367
- package/dist/configs/index.js +3 -3
- package/dist/configs/type-utils/error.d.ts +3 -3
- package/dist/configs/type-utils/index.d.ts +6 -6
- package/dist/configs/type-utils/index.js +2 -5
- package/dist/configs/type-utils/type-form.d.ts +95 -101
- package/dist/index.js +1 -1
- package/dist/style/index.scss +1 -1
- package/dist/web/components/chart/common/echarts.js +0 -1
- package/dist/web/components/customer-service/customer-service.js +1 -1
- package/dist/web/components/dataView/index.js +1 -1
- package/dist/web/components/echart/echart.js +22 -6
- package/dist/web/components/flow/common/components/index.js +1 -0
- package/dist/web/components/flow/common/hooks/index.js +1 -0
- package/dist/web/components/flow/common/index.js +1 -0
- package/dist/web/components/flow/modules/operations/components/index.js +1 -0
- package/dist/web/components/flow/modules/operations/components/user-select/index.js +1 -0
- package/dist/web/components/flow/modules/operations/config/index.js +1 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/drawer-form/index.js +1 -0
- package/dist/web/components/flow/process/constants.js +1 -3
- package/dist/web/components/flow-graph/graph.js +0 -1
- package/dist/web/components/form/checkbox/index.js +2 -2
- package/dist/web/components/form/enumSelect/MultipleSelect.js +1 -1
- package/dist/web/components/form/enumSelect/NormalSelect.js +1 -1
- package/dist/web/components/form/input/index.js +1 -1
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +2 -2
- package/dist/web/components/form/radio/index.js +1 -1
- package/dist/web/components/form/select/dropdown-select/h5.js +5 -5
- package/dist/web/components/form/select/dropdown-select/pc.js +25 -28
- package/dist/web/components/form/select/dropdown-select/ui.d.ts +1 -1
- package/dist/web/components/form/select/dropdown-select/ui.js +5 -5
- package/dist/web/components/form/select/h5.js +10 -6
- package/dist/web/components/form/select/index.js +4 -2
- package/dist/web/components/form/selectMultiple/h5.js +1 -1
- package/dist/web/components/form/selectMultiple/index.js +1 -1
- package/dist/web/components/form/uploader/index.js +0 -1
- package/dist/web/components/form/uploader/uploader.pc.js +0 -1
- package/dist/web/components/form/uploaderFile/index.js +0 -1
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +6 -4
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +6 -4
- package/dist/web/components/form/userOrgSelect/common/fetch-data-service.d.ts +1 -1
- package/dist/web/components/form/userOrgSelect/common/fetch-data-service.js +19 -3
- package/dist/web/components/form/userOrgSelect/common/types.d.ts +2 -1
- package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +1 -3
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.d.ts +1 -1
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.js +2 -2
- package/dist/web/components/form/userOrgSelect/hooks/use-depart-data.js +0 -1
- package/dist/web/components/form-date/index.d.ts +1 -1
- package/dist/web/components/form-depart-tree-select/index.d.ts +1 -1
- package/dist/web/components/form-email/index.d.ts +2 -2
- package/dist/web/components/form-input/index.d.ts +2 -2
- package/dist/web/components/form-input-hooks/index.js +12 -13
- package/dist/web/components/form-multi-region/index.d.ts +1 -1
- package/dist/web/components/form-phone/index.d.ts +1 -1
- package/dist/web/components/form-region/index.d.ts +1 -1
- package/dist/web/components/form-select/index.d.ts +1 -1
- package/dist/web/components/form-select-multiple/index.d.ts +1 -1
- package/dist/web/components/form-text-area/index.d.ts +2 -2
- package/dist/web/components/form-time/index.d.ts +1 -1
- package/dist/web/components/form-url/index.d.ts +2 -2
- package/dist/web/components/form-user-tree-select/index.d.ts +1 -1
- package/dist/web/components/form-user-tree-select/index.js +3 -2
- package/dist/web/components/listView/index.js +81 -14
- package/dist/web/components/listView/interface.d.ts +7 -1
- package/dist/web/components/lottery/index.d.ts +22 -14
- package/dist/web/components/lottery/index.js +1 -2
- package/dist/web/components/navigationBar/horizontalMenu.js +0 -1
- package/dist/web/components/phone/index.js +1 -1
- package/dist/web/components/richText/index.js +3 -2
- package/dist/web/components/share/index.js +1 -1
- package/dist/web/components/table/UserDepartment/utils.js +0 -2
- package/dist/web/components/wd-card/wd-card.js +1 -1
- package/dist/web/components/wd-checkbox-list/checkboxList.js +1 -1
- package/dist/web/components/wd-date/elements/Calendar.h5.js +1 -2
- package/dist/web/components/wd-department-select/h5.js +0 -1
- package/dist/web/components/wd-form/hooks/use-remote-value.js +20 -8
- package/dist/web/components/wd-form/index.d.ts +7 -7
- package/dist/web/components/wd-form/index.js +12 -10
- package/dist/web/components/wd-input/wd-input.d.ts +43 -43
- package/dist/web/components/wd-input-email/wd-input-email.d.ts +39 -39
- package/dist/web/components/wd-input-number/number.js +0 -1
- package/dist/web/components/wd-input-number/wd-input-number.js +10 -6
- package/dist/web/components/wd-input-phone/wd-input-phone.d.ts +43 -43
- package/dist/web/components/wd-input-url/wd-input-url.d.ts +39 -39
- package/dist/web/components/wd-member-select/h5.js +0 -1
- package/dist/web/components/wd-modal/wd-modal.js +8 -3
- package/dist/web/components/wd-official-account/index.js +1 -1
- package/dist/web/components/wd-radio-list/wd-radio-list.js +2 -2
- package/dist/web/components/wd-table/components/FieldRender/UserDepartment/utils.js +0 -2
- package/dist/web/components/wd-table/components/FieldRender/index.d.ts +1 -1
- package/dist/web/components/wd-table/components/FieldRender/index.js +9 -6
- package/dist/web/components/wd-table/components/ModalTable/index.js +0 -3
- package/dist/web/components/wd-table/components/Table/index.js +4 -0
- package/dist/web/components/wd-table/hooks/useAuthFields.d.ts +1 -1
- package/dist/web/components/wd-table/hooks/useAuthFields.js +18 -4
- package/dist/web/components/wd-table/utils/index.js +5 -4
- package/dist/web/components/wd-table/wd-table.js +41 -19
- package/dist/web/components/wd-tree/utils.js +0 -2
- package/dist/web/components/wd-tree/wd-tree.js +0 -1
- package/dist/web/components/wd-upload-image/wd-upload-image.js +0 -1
- package/dist/web/components/web-view/web-view.d.ts +23 -6
- package/dist/web/index.js +1 -0
- package/dist/web/utils/constant.js +0 -1
- package/dist/web/utils/hooks/useFormLegacy.d.ts +1 -1
- package/dist/web/utils/hooks/useFormLegacy.js +9 -3
- package/dist/web/utils/moment.js +1 -3
- package/dist/web/utils/platform.js +0 -3
- package/dist/web/utils/widget-api/index.d.ts +1 -1
- package/dist/web/utils/widget-api/index.js +19 -22
- package/dist/web/weda-ui.css +6 -0
- package/package.json +13 -6
- package/dist/configs/components/calendar.json +0 -83
- package/dist/configs/components/lottery.json +0 -166
- package/dist/configs/components/wedaVideo.json +0 -101
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { defineConfig, Tuple, Type, } from '../type-utils';
|
|
2
|
+
const data = Type.Object({
|
|
3
|
+
prizeList: Type.Array(Type.Object({
|
|
4
|
+
title: Type.String({
|
|
5
|
+
type: 'string',
|
|
6
|
+
title: '奖品名称',
|
|
7
|
+
default: '一等奖',
|
|
8
|
+
}),
|
|
9
|
+
image: Type.String({
|
|
10
|
+
'x-component': 'image',
|
|
11
|
+
'x-rules': [
|
|
12
|
+
{
|
|
13
|
+
message: '请输入合法的图片地址',
|
|
14
|
+
pattern: '^(((https?)://)|/resources/)[^\\s]+$',
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
title: '奖品图片',
|
|
18
|
+
default: '',
|
|
19
|
+
}),
|
|
20
|
+
}, {
|
|
21
|
+
title: 'prizeList',
|
|
22
|
+
default: {
|
|
23
|
+
title: '奖品名称',
|
|
24
|
+
image: 'https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/0aa4dc06-e375-45c2-8ec2-0461a83d5d4a.png',
|
|
25
|
+
},
|
|
26
|
+
}), {
|
|
27
|
+
type: 'array',
|
|
28
|
+
title: '奖品设置',
|
|
29
|
+
description: '仅前8项奖品会展示在组件中',
|
|
30
|
+
default: [
|
|
31
|
+
{
|
|
32
|
+
title: '8元优惠券',
|
|
33
|
+
image: 'https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/70122750-ba8b-4ac7-be71-c2300f1f8c6f.png',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
title: '劳动节水杯',
|
|
37
|
+
image: 'https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/c2842881-5e15-409d-8dd3-352205abe38c.png',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: '10元优惠券',
|
|
41
|
+
image: 'https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/b99c4350-c619-4fff-90e0-1980075e0417.png',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
image: 'https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/7cefce40-73e4-4cdd-aa30-d178a4cb6624.png',
|
|
45
|
+
title: '旅行背包',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
title: '谢谢参与',
|
|
49
|
+
image: 'https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/0aa4dc06-e375-45c2-8ec2-0461a83d5d4a.png',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: '20积分',
|
|
53
|
+
image: 'https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/de35f413-6971-4ab3-a816-9c488e169d46.png',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: '流量券',
|
|
57
|
+
image: 'https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/3c0ff8a2-8362-4219-875d-0778d65bba80.png',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: '10元优惠券',
|
|
61
|
+
image: 'https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/d11056cc-b8a1-4d50-b993-65d8a434802f.png',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
'x-index': 10,
|
|
65
|
+
'x-component': 'list-bind-switch',
|
|
66
|
+
'x-component-props': {
|
|
67
|
+
'origin-component': 'list',
|
|
68
|
+
},
|
|
69
|
+
'x-props': {
|
|
70
|
+
'data-withBindMeta': true,
|
|
71
|
+
},
|
|
72
|
+
'x-linkages': [
|
|
73
|
+
{
|
|
74
|
+
type: 'value:schema',
|
|
75
|
+
schema: {
|
|
76
|
+
'x-component-props': {
|
|
77
|
+
options: "{{ $value&&$value.map((title, index) => ({label: '奖品名称' + (index + 1), value: index}) ) }}",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
target: 'selectedIndex',
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
}),
|
|
84
|
+
enablePrize: Type.Boolean({
|
|
85
|
+
title: '启动抽奖',
|
|
86
|
+
'x-index': 20,
|
|
87
|
+
default: true,
|
|
88
|
+
}),
|
|
89
|
+
prizeResult: Type.StringEnum({
|
|
90
|
+
type: 'string',
|
|
91
|
+
title: '抽奖结果',
|
|
92
|
+
'x-index': 30,
|
|
93
|
+
default: '1',
|
|
94
|
+
'x-helper-text': '以左上角为起始位置,顺时针确定8个奖品位置分别1-8',
|
|
95
|
+
enum: [
|
|
96
|
+
{
|
|
97
|
+
label: '1',
|
|
98
|
+
value: '1',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
label: '2',
|
|
102
|
+
value: '2',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: '3',
|
|
106
|
+
value: '3',
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: '4',
|
|
110
|
+
value: '4',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
label: '5',
|
|
114
|
+
value: '5',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
label: '6',
|
|
118
|
+
value: '6',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
label: '7',
|
|
122
|
+
value: '7',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: '8',
|
|
126
|
+
value: '8',
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
}),
|
|
130
|
+
});
|
|
131
|
+
const events = Tuple([
|
|
132
|
+
{
|
|
133
|
+
name: 'clickLotteryButton',
|
|
134
|
+
title: '点击开始抽奖按钮',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: 'finishLottery',
|
|
138
|
+
title: '开奖',
|
|
139
|
+
detail: Type.Object({
|
|
140
|
+
prize: Type.String({
|
|
141
|
+
title: '开奖结果',
|
|
142
|
+
description: '开奖结果, 等于 prizeResult属性',
|
|
143
|
+
}),
|
|
144
|
+
result: Type.Object({
|
|
145
|
+
desc: Type.String({
|
|
146
|
+
title: '中奖项名称',
|
|
147
|
+
}),
|
|
148
|
+
idx: Type.Number({
|
|
149
|
+
title: '中奖项索引',
|
|
150
|
+
}),
|
|
151
|
+
}),
|
|
152
|
+
}),
|
|
153
|
+
},
|
|
154
|
+
]);
|
|
155
|
+
const config = defineConfig({
|
|
156
|
+
$schema: 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json',
|
|
157
|
+
data,
|
|
158
|
+
events,
|
|
159
|
+
meta: {
|
|
160
|
+
title: '九宫格抽奖',
|
|
161
|
+
description: '用于实现简单的活动抽奖功能。',
|
|
162
|
+
category: '展示',
|
|
163
|
+
categoryOrder: 400,
|
|
164
|
+
componentOrder: 330,
|
|
165
|
+
icon: '../icons/Lottery.svg',
|
|
166
|
+
visible: ['APP'],
|
|
167
|
+
},
|
|
168
|
+
configMeta: {
|
|
169
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Lottery',
|
|
170
|
+
},
|
|
171
|
+
methods: [
|
|
172
|
+
{
|
|
173
|
+
name: 'start',
|
|
174
|
+
label: '开始抽奖',
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
});
|
|
178
|
+
export default config;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Simplify, Static } from '../type-utils';
|
|
3
3
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
|
-
content: import("@sinclair/typebox").TString
|
|
4
|
+
content: import("@sinclair/typebox").TString;
|
|
5
5
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
6
6
|
isDefaultButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
7
7
|
customContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
@@ -10,7 +10,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
10
10
|
declare const config: {
|
|
11
11
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
12
12
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
13
|
-
content: import("@sinclair/typebox").TString
|
|
13
|
+
content: import("@sinclair/typebox").TString;
|
|
14
14
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
15
15
|
isDefaultButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
16
16
|
customContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { Static } from '../type-utils';
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
3
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
|
-
text: import("@sinclair/typebox").TString
|
|
4
|
+
text: import("@sinclair/typebox").TString;
|
|
5
5
|
showMenuByLongpress: import("@sinclair/typebox").TBoolean;
|
|
6
|
-
foregroundColor: import("@sinclair/typebox").TString
|
|
7
|
-
backgroundColor: import("@sinclair/typebox").TString
|
|
6
|
+
foregroundColor: import("@sinclair/typebox").TString;
|
|
7
|
+
backgroundColor: import("@sinclair/typebox").TString;
|
|
8
8
|
}>;
|
|
9
9
|
export type DataType = Simplify<Static<typeof data>>;
|
|
10
10
|
declare const config: {
|
|
11
11
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
12
12
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
13
|
-
text: import("@sinclair/typebox").TString
|
|
13
|
+
text: import("@sinclair/typebox").TString;
|
|
14
14
|
showMenuByLongpress: import("@sinclair/typebox").TBoolean;
|
|
15
|
-
foregroundColor: import("@sinclair/typebox").TString
|
|
16
|
-
backgroundColor: import("@sinclair/typebox").TString
|
|
15
|
+
foregroundColor: import("@sinclair/typebox").TString;
|
|
16
|
+
backgroundColor: import("@sinclair/typebox").TString;
|
|
17
17
|
}>;
|
|
18
|
-
readonly properties: import("@sinclair/typebox").
|
|
19
|
-
text: import("@sinclair/typebox").TString
|
|
18
|
+
readonly properties: import("@sinclair/typebox").TObject<{
|
|
19
|
+
text: import("@sinclair/typebox").TString;
|
|
20
20
|
showMenuByLongpress: import("@sinclair/typebox").TBoolean;
|
|
21
|
-
foregroundColor: import("@sinclair/typebox").TString
|
|
22
|
-
backgroundColor: import("@sinclair/typebox").TString
|
|
23
|
-
}
|
|
21
|
+
foregroundColor: import("@sinclair/typebox").TString;
|
|
22
|
+
backgroundColor: import("@sinclair/typebox").TString;
|
|
23
|
+
}>;
|
|
24
24
|
readonly classes: readonly [{
|
|
25
25
|
readonly name: "根元素";
|
|
26
26
|
readonly selector: ".wd-qrcode";
|
|
@@ -1,83 +1,12 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
3
|
-
readonly data: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly 'x-index': 1;
|
|
11
|
-
readonly 'x-runtime-default': any;
|
|
12
|
-
readonly items: {
|
|
13
|
-
readonly type: "object";
|
|
14
|
-
readonly properties: {};
|
|
15
|
-
};
|
|
16
|
-
readonly 'x-group': "数据";
|
|
17
|
-
};
|
|
18
|
-
readonly key: {
|
|
19
|
-
readonly title: "数据主键";
|
|
20
|
-
readonly 'x-runtime-default': "";
|
|
21
|
-
readonly description: "以循环对象属性名为标识保存循环成员状态";
|
|
22
|
-
readonly 'x-helper-text': "表示数据唯一的标识,如_id。可选项,当列表变化时,配置该项可保持组件状态不被重新创建。[详见文档](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Repeater)";
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly 'x-index': 2;
|
|
25
|
-
readonly 'x-props': {
|
|
26
|
-
readonly 'data-hidebind': true;
|
|
27
|
-
};
|
|
28
|
-
readonly 'x-group': "高级属性";
|
|
29
|
-
};
|
|
30
|
-
readonly suffix: {
|
|
31
|
-
readonly title: "后缀";
|
|
32
|
-
readonly description: "作为当前项值和当前索引的变量名后缀,最终的变量名请看下边的'当前项值变量名'和'当前下标变量名'";
|
|
33
|
-
readonly 'x-runtime-default': "";
|
|
34
|
-
readonly display: false;
|
|
35
|
-
readonly type: "string";
|
|
36
|
-
readonly 'x-index': 3;
|
|
37
|
-
readonly 'x-props': {
|
|
38
|
-
readonly 'data-hidebind': true;
|
|
39
|
-
};
|
|
40
|
-
readonly 'x-linkages': readonly [{
|
|
41
|
-
readonly type: "value:state";
|
|
42
|
-
readonly target: "forItem";
|
|
43
|
-
readonly condition: "{{ true }}";
|
|
44
|
-
readonly state: {
|
|
45
|
-
readonly value: "{{'item' + ($value ? '_' : '') + $value}}";
|
|
46
|
-
};
|
|
47
|
-
}, {
|
|
48
|
-
readonly type: "value:state";
|
|
49
|
-
readonly target: "forIndex";
|
|
50
|
-
readonly condition: "{{ true }}";
|
|
51
|
-
readonly state: {
|
|
52
|
-
readonly value: "{{'index' + ($value ? '_' : '') + $value}}";
|
|
53
|
-
};
|
|
54
|
-
}];
|
|
55
|
-
readonly 'x-group': "高级属性";
|
|
56
|
-
};
|
|
57
|
-
readonly forItem: {
|
|
58
|
-
readonly title: "当前项值变量名";
|
|
59
|
-
readonly display: false;
|
|
60
|
-
readonly type: "string";
|
|
61
|
-
readonly 'x-index': 4;
|
|
62
|
-
readonly editable: false;
|
|
63
|
-
readonly 'x-props': {
|
|
64
|
-
readonly 'data-hidebind': true;
|
|
65
|
-
};
|
|
66
|
-
readonly 'x-group': "高级属性";
|
|
67
|
-
};
|
|
68
|
-
readonly forIndex: {
|
|
69
|
-
readonly title: "当前下标变量名";
|
|
70
|
-
readonly display: false;
|
|
71
|
-
readonly type: "string";
|
|
72
|
-
readonly 'x-index': 5;
|
|
73
|
-
readonly editable: false;
|
|
74
|
-
readonly 'x-props': {
|
|
75
|
-
readonly 'data-hidebind': true;
|
|
76
|
-
};
|
|
77
|
-
readonly 'x-group': "高级属性";
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
};
|
|
3
|
+
readonly data: import("@sinclair/typebox").TObject<{
|
|
4
|
+
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
|
|
5
|
+
key: import("@sinclair/typebox").TString;
|
|
6
|
+
suffix: import("@sinclair/typebox").TString;
|
|
7
|
+
forItem: import("@sinclair/typebox").TString;
|
|
8
|
+
forIndex: import("@sinclair/typebox").TString;
|
|
9
|
+
}>;
|
|
81
10
|
readonly isContainer: true;
|
|
82
11
|
readonly compConfig: {
|
|
83
12
|
readonly componentType: "Repeater";
|
|
@@ -109,18 +38,8 @@ declare const _default: {
|
|
|
109
38
|
readonly configMeta: {
|
|
110
39
|
readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Repeater";
|
|
111
40
|
};
|
|
112
|
-
readonly properties: {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
readonly data: {
|
|
116
|
-
readonly title: "循环数据";
|
|
117
|
-
readonly description: "获取循环的数据";
|
|
118
|
-
readonly type: "array";
|
|
119
|
-
readonly items: {
|
|
120
|
-
readonly type: "any";
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
};
|
|
41
|
+
readonly properties: import("@sinclair/typebox").TObject<{
|
|
42
|
+
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>;
|
|
43
|
+
}>;
|
|
125
44
|
};
|
|
126
45
|
export default _default;
|
|
@@ -1,87 +1,81 @@
|
|
|
1
|
+
import { Type } from '@sinclair/typebox';
|
|
1
2
|
import { defineConfig } from '../type-utils';
|
|
2
3
|
export default defineConfig({
|
|
3
4
|
$schema: 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json',
|
|
4
|
-
data: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
data: Type.Object({
|
|
6
|
+
data: Type.Array(Type.Object({}), {
|
|
7
|
+
title: '数据',
|
|
8
|
+
description: '用于产生循环的数组数据',
|
|
9
|
+
type: 'array',
|
|
10
|
+
'x-index': 1,
|
|
11
|
+
'x-runtime-default': null,
|
|
12
|
+
'x-group': '数据',
|
|
13
|
+
}),
|
|
14
|
+
key: Type.String({
|
|
15
|
+
title: '数据主键',
|
|
16
|
+
'x-runtime-default': '',
|
|
17
|
+
description: '以循环对象属性名为标识保存循环成员状态',
|
|
18
|
+
'x-helper-text': '表示数据唯一的标识,如_id。可选项,当列表变化时,配置该项可保持组件状态不被重新创建。[详见文档](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Repeater)',
|
|
19
|
+
type: 'string',
|
|
20
|
+
'x-index': 2,
|
|
21
|
+
'x-props': {
|
|
22
|
+
'data-hidebind': true,
|
|
18
23
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
'
|
|
24
|
+
'x-group': '高级属性',
|
|
25
|
+
}),
|
|
26
|
+
suffix: Type.String({
|
|
27
|
+
title: '后缀',
|
|
28
|
+
description: "作为当前项值和当前索引的变量名后缀,最终的变量名请看下边的'当前项值变量名'和'当前下标变量名'",
|
|
29
|
+
'x-runtime-default': '',
|
|
30
|
+
display: false,
|
|
31
|
+
type: 'string',
|
|
32
|
+
'x-index': 3,
|
|
33
|
+
'x-props': {
|
|
34
|
+
'data-hidebind': true,
|
|
30
35
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
'x-props': {
|
|
39
|
-
'data-hidebind': true,
|
|
40
|
-
},
|
|
41
|
-
'x-linkages': [
|
|
42
|
-
{
|
|
43
|
-
type: 'value:state',
|
|
44
|
-
target: 'forItem',
|
|
45
|
-
condition: '{{ true }}',
|
|
46
|
-
state: {
|
|
47
|
-
value: "{{'item' + ($value ? '_' : '') + $value}}",
|
|
48
|
-
},
|
|
36
|
+
'x-linkages': [
|
|
37
|
+
{
|
|
38
|
+
type: 'value:state',
|
|
39
|
+
target: 'forItem',
|
|
40
|
+
condition: '{{ true }}',
|
|
41
|
+
state: {
|
|
42
|
+
value: "{{'item' + ($value ? '_' : '') + $value}}",
|
|
49
43
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'value:state',
|
|
47
|
+
target: 'forIndex',
|
|
48
|
+
condition: '{{ true }}',
|
|
49
|
+
state: {
|
|
50
|
+
value: "{{'index' + ($value ? '_' : '') + $value}}",
|
|
57
51
|
},
|
|
58
|
-
],
|
|
59
|
-
'x-group': '高级属性',
|
|
60
|
-
},
|
|
61
|
-
forItem: {
|
|
62
|
-
title: '当前项值变量名',
|
|
63
|
-
display: false,
|
|
64
|
-
type: 'string',
|
|
65
|
-
'x-index': 4,
|
|
66
|
-
editable: false,
|
|
67
|
-
'x-props': {
|
|
68
|
-
'data-hidebind': true,
|
|
69
52
|
},
|
|
70
|
-
|
|
53
|
+
],
|
|
54
|
+
'x-group': '高级属性',
|
|
55
|
+
}),
|
|
56
|
+
forItem: Type.String({
|
|
57
|
+
title: '当前项值变量名',
|
|
58
|
+
display: false,
|
|
59
|
+
type: 'string',
|
|
60
|
+
'x-index': 4,
|
|
61
|
+
editable: false,
|
|
62
|
+
'x-props': {
|
|
63
|
+
'data-hidebind': true,
|
|
71
64
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
'
|
|
65
|
+
'x-group': '高级属性',
|
|
66
|
+
}),
|
|
67
|
+
forIndex: Type.String({
|
|
68
|
+
title: '当前下标变量名',
|
|
69
|
+
display: false,
|
|
70
|
+
type: 'string',
|
|
71
|
+
'x-index': 5,
|
|
72
|
+
editable: false,
|
|
73
|
+
'x-props': {
|
|
74
|
+
'data-hidebind': true,
|
|
82
75
|
},
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
'x-group': '高级属性',
|
|
77
|
+
}),
|
|
78
|
+
}),
|
|
85
79
|
isContainer: true,
|
|
86
80
|
compConfig: {
|
|
87
81
|
componentType: 'Repeater',
|
|
@@ -130,17 +124,11 @@ export default defineConfig({
|
|
|
130
124
|
configMeta: {
|
|
131
125
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Repeater',
|
|
132
126
|
},
|
|
133
|
-
properties: {
|
|
134
|
-
type: '
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
items: {
|
|
141
|
-
type: 'any',
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
},
|
|
127
|
+
properties: Type.Object({
|
|
128
|
+
data: Type.Array(Type.Any({ type: 'any' }), {
|
|
129
|
+
title: '循环数据',
|
|
130
|
+
description: '获取循环的数据',
|
|
131
|
+
type: 'array',
|
|
132
|
+
}),
|
|
133
|
+
}),
|
|
146
134
|
});
|
|
@@ -3,8 +3,8 @@ import { Simplify, Static } from '../type-utils';
|
|
|
3
3
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
4
|
isMultipleSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
5
5
|
tabs: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
6
|
-
title: import("@sinclair/typebox").TString
|
|
7
|
-
value: import("@sinclair/typebox").TString
|
|
6
|
+
title: import("@sinclair/typebox").TString;
|
|
7
|
+
value: import("@sinclair/typebox").TString;
|
|
8
8
|
}>>>;
|
|
9
9
|
selectedIndex: import("@sinclair/typebox").TNumber;
|
|
10
10
|
panel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
@@ -14,8 +14,8 @@ declare const config: {
|
|
|
14
14
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
15
15
|
isMultipleSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
16
16
|
tabs: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
17
|
-
title: import("@sinclair/typebox").TString
|
|
18
|
-
value: import("@sinclair/typebox").TString
|
|
17
|
+
title: import("@sinclair/typebox").TString;
|
|
18
|
+
value: import("@sinclair/typebox").TString;
|
|
19
19
|
}>>>;
|
|
20
20
|
selectedIndex: import("@sinclair/typebox").TNumber;
|
|
21
21
|
panel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Simplify } from 'type-fest';
|
|
2
2
|
import { Static, StaticEventsType } from '../type-utils';
|
|
3
3
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
|
-
text: import("@sinclair/typebox").TString
|
|
4
|
+
text: import("@sinclair/typebox").TString;
|
|
5
5
|
level: import("@sinclair/typebox").TUnsafe<"0" | "1" | "2" | "3" | "4" | "5" | "6">;
|
|
6
6
|
maxLines: import("@sinclair/typebox").TNumber;
|
|
7
7
|
tips: import("@sinclair/typebox").TBoolean;
|
|
@@ -17,7 +17,7 @@ export type EventsType = Simplify<StaticEventsType<typeof events>>;
|
|
|
17
17
|
declare const _default: {
|
|
18
18
|
readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
|
|
19
19
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
20
|
-
text: import("@sinclair/typebox").TString
|
|
20
|
+
text: import("@sinclair/typebox").TString;
|
|
21
21
|
level: import("@sinclair/typebox").TUnsafe<"0" | "1" | "2" | "3" | "4" | "5" | "6">;
|
|
22
22
|
maxLines: import("@sinclair/typebox").TNumber;
|
|
23
23
|
tips: import("@sinclair/typebox").TBoolean;
|
|
@@ -24,16 +24,11 @@ declare const config: {
|
|
|
24
24
|
bubbleContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
25
25
|
bubbleChildren: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
26
26
|
}>;
|
|
27
|
-
readonly properties: import("@sinclair/typebox").
|
|
28
|
-
trigger: import("@sinclair/typebox").TUnsafe<"hover" | "click">;
|
|
27
|
+
readonly properties: import("@sinclair/typebox").TObject<{
|
|
29
28
|
placement: import("@sinclair/typebox").TUnsafe<"left" | "top" | "right" | "bottom" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-end" | "bottom-start" | "left-end" | "left-start">;
|
|
29
|
+
trigger: import("@sinclair/typebox").TUnsafe<"hover" | "click">;
|
|
30
30
|
promptTheme: import("@sinclair/typebox").TUnsafe<"error" | "default" | "dark">;
|
|
31
|
-
|
|
32
|
-
closeDelay: import("@sinclair/typebox").TNumber;
|
|
33
|
-
arrowPointAtCenter: import("@sinclair/typebox").TBoolean;
|
|
34
|
-
bubbleContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
35
|
-
bubbleChildren: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
36
|
-
}>, ["trigger", "placement", "promptTheme"]>;
|
|
31
|
+
}>;
|
|
37
32
|
readonly classes: readonly [{
|
|
38
33
|
readonly name: "根元素";
|
|
39
34
|
readonly selector: ".wd-bubble";
|