@cloudbase/weda-ui 0.2.16 → 1.0.24
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 +41 -169
- package/package.json +23 -11
- package/src/configs/components/calendar.json +4 -1
- package/src/configs/components/chart/bar.json +724 -0
- package/src/configs/components/chart/line.json +679 -0
- package/src/configs/components/chart/pie.json +497 -0
- package/src/configs/components/chart/statisticsCard.json +61 -13
- package/src/configs/components/container.json +7 -2
- package/src/configs/components/dataView.json +21 -6
- package/src/configs/components/form/checkbox.json +97 -5
- package/src/configs/components/form/radio.json +96 -4
- package/src/configs/components/form/select.json +245 -11
- package/src/configs/components/graphicCard.json +84 -73
- package/src/configs/components/image.json +7 -2
- package/src/configs/components/link.json +19 -3
- package/src/configs/components/listView.json +65 -18
- package/src/configs/components/lottery.json +151 -0
- package/src/configs/components/modal.json +37 -5
- package/src/configs/components/navLayout.json +87 -75
- package/src/configs/components/navigationBar.json +59 -0
- package/src/configs/components/richtextview.json +4 -1
- package/src/configs/components/scrollVeiw.json +74 -22
- package/src/configs/components/swiper.json +4 -1
- package/src/configs/components/tabs.json +51 -8
- package/src/configs/components/text.json +33 -25
- package/src/configs/components/wxOpenApi/phone.json +141 -0
- package/src/configs/components/wxOpenApi/phoneCode.json +121 -0
- package/src/configs/components/wxOpenApi/share.json +167 -0
- package/src/configs/components/wxOpenApi/userInfo.json +174 -0
- package/src/configs/index.js +20 -0
- package/src/index.js +2 -0
- package/src/mp/components/button/index.wxml +1 -2
- package/src/mp/components/chart/bar/index.js +258 -0
- package/src/mp/components/chart/bar/index.json +6 -0
- package/src/mp/components/chart/bar/index.wxml +3 -0
- package/src/mp/components/chart/bar/index.wxss +9 -0
- package/src/mp/components/chart/common/config/bar.js +50 -0
- package/src/mp/components/chart/common/config/global.js +16 -0
- package/src/mp/components/chart/common/config/line.js +48 -0
- package/src/mp/components/chart/common/config/pie.js +36 -0
- package/src/mp/components/chart/common/core/eChartBar.js +263 -0
- package/src/mp/components/chart/common/core/eChartBase.js +375 -0
- package/src/mp/components/chart/common/core/eChartLine.js +229 -0
- package/src/mp/components/chart/common/core/eChartPie.js +166 -0
- package/src/mp/components/chart/common/lib/echarts.min.js +18 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.js +277 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +4 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +4 -0
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +4 -0
- package/src/mp/components/chart/ec-canvas/wx-canvas.js +107 -0
- package/src/mp/components/chart/line/index.js +247 -0
- package/src/mp/components/chart/line/index.json +6 -0
- package/src/mp/components/chart/line/index.wxml +3 -0
- package/src/mp/components/chart/line/index.wxss +9 -0
- package/src/mp/components/chart/pie/index.js +182 -0
- package/src/mp/components/chart/pie/index.json +6 -0
- package/src/mp/components/chart/pie/index.wxml +4 -0
- package/src/mp/components/chart/pie/index.wxss +9 -0
- package/src/mp/components/chart/statisticsCard/index.js +33 -6
- package/src/mp/components/form/checkbox/index.js +41 -2
- package/src/mp/components/form/checkbox/index.wxml +1 -1
- package/src/mp/components/form/form/index.wxml +1 -2
- package/src/mp/components/form/input/index.js +1 -1
- package/src/mp/components/form/location/index.js +43 -2
- package/src/mp/components/form/radio/index.js +38 -0
- package/src/mp/components/form/select/index.js +348 -40
- package/src/mp/components/form/select/index.wxml +21 -6
- package/src/mp/components/form/select/region/index.js +101 -0
- package/src/mp/components/form/textarea/index.wxml +6 -5
- package/src/mp/components/form/uploader/index.js +76 -44
- package/src/mp/components/form/uploader/index.wxml +15 -3
- package/src/mp/components/form/uploaderFile/index.js +61 -29
- package/src/mp/components/graphicCard/index.js +26 -28
- package/src/mp/components/listView/index.js +52 -64
- package/src/mp/components/listView/index.wxml +2 -2
- package/src/mp/components/listView/index.wxss +5 -0
- package/src/mp/components/lottery/index.js +270 -0
- package/src/mp/components/lottery/index.json +4 -0
- package/src/mp/components/lottery/index.wxml +43 -0
- package/src/mp/components/lottery/index.wxss +317 -0
- package/src/mp/components/navLayout/index.js +3 -3
- package/src/mp/components/navigationBar/index.js +193 -0
- package/src/mp/components/navigationBar/index.json +6 -0
- package/src/mp/components/navigationBar/index.wxml +88 -0
- package/src/mp/components/navigationBar/index.wxss +1257 -0
- package/src/mp/components/tabs/index.js +7 -2
- package/src/mp/components/tabs/index.wxml +2 -1
- package/src/mp/components/text/index.js +0 -25
- package/src/mp/components/text/index.wxml +3 -3
- package/src/mp/components/wxOpenApi/phone/index.js +117 -0
- package/src/mp/components/wxOpenApi/phone/index.json +4 -0
- package/src/mp/components/wxOpenApi/phone/index.wxml +15 -0
- package/src/mp/components/wxOpenApi/phone/index.wxss +22 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.js +89 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.json +4 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.wxml +15 -0
- package/src/mp/components/wxOpenApi/phoneCode/index.wxss +22 -0
- package/src/mp/components/wxOpenApi/share/index.js +117 -0
- package/src/mp/components/wxOpenApi/share/index.json +4 -0
- package/src/mp/components/wxOpenApi/share/index.wxml +15 -0
- package/src/mp/components/wxOpenApi/share/index.wxss +22 -0
- package/src/mp/components/wxOpenApi/userInfo/index.js +88 -0
- package/src/mp/components/wxOpenApi/userInfo/index.json +4 -0
- package/src/mp/components/wxOpenApi/userInfo/index.wxml +14 -0
- package/src/mp/components/wxOpenApi/userInfo/index.wxss +22 -0
- package/src/mp/index.json +10 -1
- package/src/mp/style/weda-ui.wxss +2 -0
- package/src/mp/utils/constant.js +15 -0
- package/src/mp/utils/destr.js +48 -0
- package/src/mp/utils/lodash.js +2 -0
- package/src/mp/utils/platform.js +25 -0
- package/src/mp/utils/tcb.js +44 -0
- package/src/setupTests.js +2 -1
- package/src/web/components/button/index.css +8 -1
- package/src/web/components/button/index.tsx +3 -2
- package/src/web/components/chart/bar/index.tsx +140 -0
- package/src/web/components/chart/common/config/bar.js +49 -0
- package/src/web/components/chart/common/config/global.js +16 -0
- package/src/web/components/chart/common/config/line.js +50 -0
- package/src/web/components/chart/common/config/pie.js +37 -0
- package/src/web/components/chart/common/core/eChartBar.js +265 -0
- package/src/web/components/chart/common/core/eChartBase.ts +383 -0
- package/src/web/components/chart/common/core/eChartLine.js +231 -0
- package/src/web/components/chart/common/core/eChartPie.js +170 -0
- package/src/web/components/chart/common/core/type.ts +34 -0
- package/src/web/components/chart/common/echart.css +106 -0
- package/src/web/components/chart/common/echarts.ts +33 -0
- package/src/web/components/chart/common/useChart.tsx +69 -0
- package/src/web/components/chart/line/index.tsx +136 -0
- package/src/web/components/chart/pie/index.tsx +99 -0
- package/src/web/components/chart/statisticsCard/index.tsx +29 -8
- package/src/web/components/form/checkbox/index.tsx +61 -23
- package/src/web/components/form/formcell/index.tsx +10 -5
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +3 -3
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +2 -2
- package/src/web/components/form/radio/index.tsx +90 -53
- package/src/web/components/form/select/h5.tsx +371 -72
- package/src/web/components/form/select/index.css +10 -0
- package/src/web/components/form/select/index.tsx +392 -145
- package/src/web/components/form/select/region/index.ts +122 -31
- package/src/web/components/form/select/time.jsx +90 -0
- package/src/web/components/form/select/year.tsx +170 -0
- package/src/web/components/form/tips/index.css +4 -0
- package/src/web/components/form/tips/index.tsx +4 -3
- package/src/web/components/form/uploader/uploader.h5.tsx +28 -19
- package/src/web/components/form/uploader/uploader.pc.tsx +17 -20
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +48 -44
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +28 -26
- package/src/web/components/graphicCard/index.css +1 -5
- package/src/web/components/graphicCard/index.tsx +4 -3
- package/src/web/components/image/image.tsx +1 -1
- package/src/web/components/image/index.tsx +1 -1
- package/src/web/components/index.js +13 -2
- package/src/web/components/link/index.tsx +6 -3
- package/src/web/components/listView/index.css +4 -0
- package/src/web/components/listView/index.tsx +10 -18
- package/src/web/components/lottery/index.css +327 -0
- package/src/web/components/lottery/index.tsx +567 -0
- package/src/web/components/lottery/lotteryUtil.ts +130 -0
- package/src/web/components/modal/index.tsx +3 -1
- package/src/web/components/navigationBar/chevron-right--double.svg +3 -0
- package/src/web/components/navigationBar/common.tsx +198 -0
- package/src/web/components/navigationBar/h5Menu.tsx +179 -0
- package/src/web/components/navigationBar/horizontalMenu.tsx +200 -0
- package/src/web/components/navigationBar/index.css +762 -0
- package/src/web/components/navigationBar/index.tsx +231 -0
- package/src/web/components/navigationBar/type.d.ts +111 -0
- package/src/web/components/navigationBar/verticalMenu.tsx +81 -0
- package/src/web/components/phone/index.css +0 -0
- package/src/web/components/phone/index.tsx +22 -0
- package/src/web/components/phoneCode/index.css +0 -0
- package/src/web/components/phoneCode/index.tsx +22 -0
- package/src/web/components/richTextView/index.tsx +3 -5
- package/src/web/components/share/index.css +0 -0
- package/src/web/components/share/index.tsx +38 -0
- package/src/web/components/tabs/index.tsx +2 -0
- package/src/web/components/tabs/tabs.h5.tsx +43 -33
- package/src/web/components/tabs/tabs.pc.tsx +23 -10
- package/src/web/components/text/index.tsx +6 -14
- package/src/web/components/userInfo/index.css +0 -0
- package/src/web/components/userInfo/index.tsx +30 -0
- package/src/web/utils/{constant.js → constant.ts} +17 -2
- package/src/web/utils/lodash.ts +2 -0
- package/src/web/utils/platform.js +10 -1
- package/src/web/utils/tcb.js +20 -6
- package/src/web/weda-ui.css +2 -0
- package/CHANGELOG.md +0 -240
- package/src/.DS_Store +0 -0
- package/src/configs/.DS_Store +0 -0
- package/src/mp/.gitignore +0 -10
- package/src/web/.DS_Store +0 -0
- package/src/web/components/form/select/region/cities.ts +0 -2410
- package/src/web/components/form/select/region/provinces.ts +0 -240
- package/src/web/components/form/select/region/regions.ts +0 -20645
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"navOption": {
|
|
6
6
|
"type": "array",
|
|
7
7
|
"title": "图文内容",
|
|
8
|
-
"icon":"icon",
|
|
8
|
+
"icon": "icon",
|
|
9
9
|
"items": {
|
|
10
10
|
"type": "object",
|
|
11
11
|
"title": "示例标题",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"default": {
|
|
14
14
|
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
15
15
|
"title": "示例标题",
|
|
16
|
-
"des":"这是一段示例描述,这是一段示例描述"
|
|
16
|
+
"des": "这是一段示例描述,这是一段示例描述"
|
|
17
17
|
},
|
|
18
18
|
"display": "title",
|
|
19
19
|
"properties": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"default": "这是一段示例描述,这是一段示例描述",
|
|
37
37
|
"x-index": 15
|
|
38
38
|
},
|
|
39
|
-
"tapStatus":{
|
|
39
|
+
"tapStatus": {
|
|
40
40
|
"enum": [
|
|
41
41
|
{
|
|
42
42
|
"value": "tap",
|
|
@@ -52,13 +52,22 @@
|
|
|
52
52
|
"value": "outer",
|
|
53
53
|
"label": "外部链接",
|
|
54
54
|
"icon": "weda-editor-icon-link",
|
|
55
|
-
"tooltip":[
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
"tooltip": [
|
|
56
|
+
{
|
|
57
|
+
"platform": [
|
|
58
|
+
"ALL",
|
|
59
|
+
"MP"
|
|
60
|
+
],
|
|
61
|
+
"text": "小程序平台不支持跳转外部链接"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"disabled": [
|
|
65
|
+
{
|
|
66
|
+
"platform": [
|
|
67
|
+
"MP"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
]
|
|
62
71
|
}
|
|
63
72
|
],
|
|
64
73
|
"type": "string",
|
|
@@ -97,20 +106,21 @@
|
|
|
97
106
|
"x-category": "基础属性",
|
|
98
107
|
"x-index": 120,
|
|
99
108
|
"x-component-props": {
|
|
100
|
-
"hideAddPlatform": [
|
|
101
|
-
|
|
109
|
+
"hideAddPlatform": [
|
|
110
|
+
"MP"
|
|
111
|
+
],
|
|
112
|
+
"addHidden": true
|
|
102
113
|
},
|
|
103
114
|
"x-linkages": [
|
|
104
115
|
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
116
|
+
"type": "value:state",
|
|
117
|
+
"target": "*(dataForm.params)",
|
|
118
|
+
"condition": "{{$self.value && $self.value.length>0}}",
|
|
119
|
+
"state": {
|
|
120
|
+
"pageId": "{{$self.value}}"
|
|
121
|
+
}
|
|
111
122
|
}
|
|
112
|
-
|
|
113
|
-
]
|
|
123
|
+
]
|
|
114
124
|
},
|
|
115
125
|
"outerUrl": {
|
|
116
126
|
"title": "URL地址",
|
|
@@ -127,18 +137,18 @@
|
|
|
127
137
|
"default": false,
|
|
128
138
|
"type": "boolean",
|
|
129
139
|
"x-linkages": [
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
140
|
+
{
|
|
141
|
+
"type": "value:visible",
|
|
142
|
+
"target": "*(dataForm.params)",
|
|
143
|
+
"condition": "{{$self.value==true}}"
|
|
144
|
+
}
|
|
135
145
|
]
|
|
136
146
|
},
|
|
137
147
|
"params": {
|
|
138
148
|
"type": "array",
|
|
139
149
|
"title": "参数",
|
|
140
|
-
"pageId":"",
|
|
141
|
-
"x-component":"page-params",
|
|
150
|
+
"pageId": "",
|
|
151
|
+
"x-component": "page-params",
|
|
142
152
|
"default": []
|
|
143
153
|
}
|
|
144
154
|
}
|
|
@@ -147,25 +157,25 @@
|
|
|
147
157
|
{
|
|
148
158
|
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
149
159
|
"title": "示例标题",
|
|
150
|
-
"des":"这是一段示例描述,这是一段示例描述",
|
|
160
|
+
"des": "这是一段示例描述,这是一段示例描述",
|
|
151
161
|
"tapStatus": "tap"
|
|
152
162
|
},
|
|
153
163
|
{
|
|
154
164
|
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
155
165
|
"title": "示例标题",
|
|
156
|
-
"des":"这是一段示例描述,这是一段示例描述",
|
|
166
|
+
"des": "这是一段示例描述,这是一段示例描述",
|
|
157
167
|
"tapStatus": "tap"
|
|
158
168
|
},
|
|
159
169
|
{
|
|
160
170
|
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
161
171
|
"title": "示例标题",
|
|
162
|
-
"des":"这是一段示例描述,这是一段示例描述",
|
|
172
|
+
"des": "这是一段示例描述,这是一段示例描述",
|
|
163
173
|
"tapStatus": "tap"
|
|
164
174
|
},
|
|
165
175
|
{
|
|
166
176
|
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
167
177
|
"title": "示例标题",
|
|
168
|
-
"des":"这是一段示例描述,这是一段示例描述",
|
|
178
|
+
"des": "这是一段示例描述,这是一段示例描述",
|
|
169
179
|
"tapStatus": "tap"
|
|
170
180
|
}
|
|
171
181
|
],
|
|
@@ -217,7 +227,7 @@
|
|
|
217
227
|
"default": "100%",
|
|
218
228
|
"title": "图片高度",
|
|
219
229
|
"x-category": "高级属性",
|
|
220
|
-
|
|
230
|
+
"x-index": 20
|
|
221
231
|
},
|
|
222
232
|
"iconWidthSize": {
|
|
223
233
|
"type": "string",
|
|
@@ -225,7 +235,7 @@
|
|
|
225
235
|
"title": "图片宽度",
|
|
226
236
|
"description": "默认单位px",
|
|
227
237
|
"x-category": "高级属性",
|
|
228
|
-
|
|
238
|
+
"x-index": 25
|
|
229
239
|
},
|
|
230
240
|
"titleVisible": {
|
|
231
241
|
"title": "显示标题",
|
|
@@ -249,38 +259,37 @@
|
|
|
249
259
|
"x-category": "高级属性",
|
|
250
260
|
"default": "rgb(0, 0, 0)"
|
|
251
261
|
},
|
|
252
|
-
|
|
253
262
|
"titleFontWeight": {
|
|
254
263
|
"type": "string",
|
|
255
264
|
"title": "标题字重",
|
|
256
265
|
"default": "bolder",
|
|
257
266
|
"x-category": "高级属性",
|
|
258
267
|
"x-index": 50,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
268
|
+
"enum": [
|
|
269
|
+
{
|
|
270
|
+
"label": "细",
|
|
271
|
+
"value": "lighter"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"label": "正常",
|
|
275
|
+
"value": "normal"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"label": "粗",
|
|
279
|
+
"value": "bolder"
|
|
280
|
+
}
|
|
281
|
+
]
|
|
273
282
|
},
|
|
274
283
|
"titleFontSize": {
|
|
275
284
|
"type": "number",
|
|
276
285
|
"title": "标题字号",
|
|
277
286
|
"default": 14,
|
|
278
287
|
"x-category": "高级属性",
|
|
279
|
-
"x-props":{
|
|
280
|
-
"min":0,
|
|
281
|
-
"max":100
|
|
288
|
+
"x-props": {
|
|
289
|
+
"min": 0,
|
|
290
|
+
"max": 100
|
|
282
291
|
},
|
|
283
|
-
"x-index":60
|
|
292
|
+
"x-index": 60
|
|
284
293
|
},
|
|
285
294
|
"titleLineHeight": {
|
|
286
295
|
"title": "标题行高",
|
|
@@ -318,38 +327,37 @@
|
|
|
318
327
|
"x-category": "高级属性",
|
|
319
328
|
"default": "rgba(0, 0, 0, 0.4)"
|
|
320
329
|
},
|
|
321
|
-
|
|
322
330
|
"desFontWeight": {
|
|
323
331
|
"type": "string",
|
|
324
332
|
"title": "描述字重",
|
|
325
333
|
"default": "normal",
|
|
326
334
|
"x-category": "高级属性",
|
|
327
335
|
"x-index": 110,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
336
|
+
"enum": [
|
|
337
|
+
{
|
|
338
|
+
"label": "细",
|
|
339
|
+
"value": "lighter"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"label": "正常",
|
|
343
|
+
"value": "normal"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"label": "粗",
|
|
347
|
+
"value": "bolder"
|
|
348
|
+
}
|
|
349
|
+
]
|
|
342
350
|
},
|
|
343
351
|
"desFontSize": {
|
|
344
352
|
"type": "number",
|
|
345
353
|
"title": "描述字号",
|
|
346
354
|
"default": 14,
|
|
347
355
|
"x-category": "高级属性",
|
|
348
|
-
"x-props":{
|
|
349
|
-
"min":0,
|
|
350
|
-
"max":100
|
|
356
|
+
"x-props": {
|
|
357
|
+
"min": 0,
|
|
358
|
+
"max": 100
|
|
351
359
|
},
|
|
352
|
-
"x-index":120
|
|
360
|
+
"x-index": 120
|
|
353
361
|
},
|
|
354
362
|
"desLineHeight": {
|
|
355
363
|
"title": "描述行高",
|
|
@@ -371,7 +379,7 @@
|
|
|
371
379
|
"default": true,
|
|
372
380
|
"x-category": "高级属性",
|
|
373
381
|
"x-index": 150,
|
|
374
|
-
"description":"无行为的按钮将保持隐藏",
|
|
382
|
+
"description": "无行为的按钮将保持隐藏",
|
|
375
383
|
"x-linkages": [
|
|
376
384
|
{
|
|
377
385
|
"type": "value:visible",
|
|
@@ -384,7 +392,6 @@
|
|
|
384
392
|
"title": "按钮文案",
|
|
385
393
|
"type": "string",
|
|
386
394
|
"default": "查看详情",
|
|
387
|
-
|
|
388
395
|
"x-category": "高级属性",
|
|
389
396
|
"x-index": 160
|
|
390
397
|
}
|
|
@@ -392,8 +399,12 @@
|
|
|
392
399
|
},
|
|
393
400
|
"meta": {
|
|
394
401
|
"title": "图文卡片",
|
|
402
|
+
"description": "以卡片形式展示包含图片、标题、描述信息在内的列表信息。",
|
|
395
403
|
"category": "展示",
|
|
396
404
|
"componentOrder": 501,
|
|
397
405
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/GraphicCard.svg"
|
|
406
|
+
},
|
|
407
|
+
"configMeta": {
|
|
408
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/GraphicCard"
|
|
398
409
|
}
|
|
399
410
|
}
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
"showMenuByLongpress": {
|
|
21
21
|
"title": "识别小程序码",
|
|
22
22
|
"type": "boolean",
|
|
23
|
-
"x-platforms": [
|
|
23
|
+
"x-platforms": [
|
|
24
|
+
"MP"
|
|
25
|
+
],
|
|
24
26
|
"x-category": "高级属性",
|
|
25
27
|
"description": "小程序专有属性,长按图片可唤起识别小程序码功能"
|
|
26
28
|
},
|
|
@@ -157,8 +159,11 @@
|
|
|
157
159
|
],
|
|
158
160
|
"meta": {
|
|
159
161
|
"title": "图片",
|
|
160
|
-
"description": "
|
|
162
|
+
"description": "用于在页面进行图片的展示。",
|
|
161
163
|
"category": "多媒体",
|
|
162
164
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Image.svg"
|
|
165
|
+
},
|
|
166
|
+
"configMeta": {
|
|
167
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/media/Image"
|
|
163
168
|
}
|
|
164
169
|
}
|
|
@@ -20,9 +20,19 @@
|
|
|
20
20
|
"x-category": "基础属性",
|
|
21
21
|
"x-index": 120,
|
|
22
22
|
"x-component-props": {
|
|
23
|
-
"hideAddPlatform": [
|
|
23
|
+
"hideAddPlatform": [
|
|
24
|
+
"MP"
|
|
25
|
+
]
|
|
24
26
|
}
|
|
25
27
|
},
|
|
28
|
+
"isOpenInNewWindow": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"title": "是否打开新窗口",
|
|
31
|
+
"x-category": "基础属性",
|
|
32
|
+
"x-index": 130,
|
|
33
|
+
"default": false,
|
|
34
|
+
"description": "仅外部链接生效"
|
|
35
|
+
},
|
|
26
36
|
"params": {
|
|
27
37
|
"type": "array",
|
|
28
38
|
"title": "携带参数",
|
|
@@ -50,11 +60,17 @@
|
|
|
50
60
|
},
|
|
51
61
|
"meta": {
|
|
52
62
|
"title": "链接",
|
|
53
|
-
"description": "",
|
|
63
|
+
"description": "用于实现超链接跳转。",
|
|
54
64
|
"category": "文本",
|
|
55
65
|
"componentOrder": 10,
|
|
56
66
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Link.svg",
|
|
57
|
-
"platform": [
|
|
67
|
+
"platform": [
|
|
68
|
+
"MOBILEWEB",
|
|
69
|
+
"PCWEB"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"configMeta": {
|
|
73
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/text/Link"
|
|
58
74
|
},
|
|
59
75
|
"events": [
|
|
60
76
|
{
|
|
@@ -28,8 +28,12 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"x-component": "datasource-selector",
|
|
31
|
-
"x-component-props": {
|
|
32
|
-
|
|
31
|
+
"x-component-props": {
|
|
32
|
+
"dataContainerType": "listView"
|
|
33
|
+
},
|
|
34
|
+
"x-props": {
|
|
35
|
+
"data-hidebind": true
|
|
36
|
+
},
|
|
33
37
|
"x-linkages": [
|
|
34
38
|
{
|
|
35
39
|
"type": "value:schema",
|
|
@@ -96,8 +100,14 @@
|
|
|
96
100
|
}
|
|
97
101
|
],
|
|
98
102
|
"blackListConfig": {
|
|
99
|
-
"format": [
|
|
100
|
-
|
|
103
|
+
"format": [
|
|
104
|
+
"x-file",
|
|
105
|
+
"x-image"
|
|
106
|
+
],
|
|
107
|
+
"type": [
|
|
108
|
+
"object",
|
|
109
|
+
"array"
|
|
110
|
+
]
|
|
101
111
|
},
|
|
102
112
|
"customRelOptions": {
|
|
103
113
|
"number": [
|
|
@@ -108,7 +118,8 @@
|
|
|
108
118
|
},
|
|
109
119
|
{
|
|
110
120
|
"value": "unequal",
|
|
111
|
-
"text": "不等于"
|
|
121
|
+
"text": "不等于",
|
|
122
|
+
"type": "unequal"
|
|
112
123
|
},
|
|
113
124
|
{
|
|
114
125
|
"value": "greater",
|
|
@@ -154,8 +165,14 @@
|
|
|
154
165
|
"x-category": "基础属性",
|
|
155
166
|
"type": "string",
|
|
156
167
|
"enum": [
|
|
157
|
-
{
|
|
158
|
-
|
|
168
|
+
{
|
|
169
|
+
"label": "升序",
|
|
170
|
+
"value": "asc"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"label": "降序",
|
|
174
|
+
"value": "desc"
|
|
175
|
+
}
|
|
159
176
|
],
|
|
160
177
|
"x-props": {
|
|
161
178
|
"clearable": true
|
|
@@ -178,11 +195,26 @@
|
|
|
178
195
|
"x-category": "基础属性",
|
|
179
196
|
"default": "simpleList",
|
|
180
197
|
"enum": [
|
|
181
|
-
{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
{
|
|
198
|
+
{
|
|
199
|
+
"label": "简单列表",
|
|
200
|
+
"value": "simpleList"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"label": "详细列表",
|
|
204
|
+
"value": "detailList"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"label": "图文列表",
|
|
208
|
+
"value": "imageTextList"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"label": "卡片列表",
|
|
212
|
+
"value": "cardList"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"label": "不使用模板",
|
|
216
|
+
"value": "none"
|
|
217
|
+
}
|
|
186
218
|
],
|
|
187
219
|
"x-component": "data-sources-template-selector"
|
|
188
220
|
},
|
|
@@ -193,10 +225,22 @@
|
|
|
193
225
|
"x-category": "基础属性",
|
|
194
226
|
"default": "loadMoreButton",
|
|
195
227
|
"enum": [
|
|
196
|
-
{
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
228
|
+
{
|
|
229
|
+
"label": "点击加载更多",
|
|
230
|
+
"value": "loadMoreButton"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"label": "触底加载更多",
|
|
234
|
+
"value": "bottomLoad"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"label": "分页器",
|
|
238
|
+
"value": "pagination"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"label": "不分页",
|
|
242
|
+
"value": "none"
|
|
243
|
+
}
|
|
200
244
|
]
|
|
201
245
|
}
|
|
202
246
|
}
|
|
@@ -221,10 +265,13 @@
|
|
|
221
265
|
},
|
|
222
266
|
"isContainer": true,
|
|
223
267
|
"meta": {
|
|
224
|
-
"title": "
|
|
268
|
+
"title": "数据列表",
|
|
225
269
|
"category": "数据容器",
|
|
226
|
-
"description": "
|
|
270
|
+
"description": "适用于以列表形式展示多条数据的场景,不借助变量绑定,即可获取数据模型中的数据。",
|
|
227
271
|
"componentOrder": 1000,
|
|
228
272
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/ListView.svg"
|
|
273
|
+
},
|
|
274
|
+
"configMeta": {
|
|
275
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView"
|
|
229
276
|
}
|
|
230
277
|
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"prizeList": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"title": "奖品设置",
|
|
8
|
+
"description": "仅前8项奖品会展示在组件中",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"title": "prizeList",
|
|
12
|
+
"default": {
|
|
13
|
+
"title": "奖品名称",
|
|
14
|
+
"image": "https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/0aa4dc06-e375-45c2-8ec2-0461a83d5d4a.png"
|
|
15
|
+
},
|
|
16
|
+
"properties": {
|
|
17
|
+
"title": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"title": "奖品名称",
|
|
20
|
+
"default": "一等奖"
|
|
21
|
+
},
|
|
22
|
+
"image": {
|
|
23
|
+
"type": "image",
|
|
24
|
+
"title": "奖品图片",
|
|
25
|
+
"default": ""
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"default": [
|
|
30
|
+
{
|
|
31
|
+
"title": "8元优惠券",
|
|
32
|
+
"image": "https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/70122750-ba8b-4ac7-be71-c2300f1f8c6f.png"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"title": "劳动节水杯",
|
|
36
|
+
"image": "https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/c2842881-5e15-409d-8dd3-352205abe38c.png"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"title": "10元优惠券",
|
|
40
|
+
"image": "https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/b99c4350-c619-4fff-90e0-1980075e0417.png"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"image": "https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/7cefce40-73e4-4cdd-aa30-d178a4cb6624.png",
|
|
44
|
+
"title": "旅行背包"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "谢谢参与",
|
|
48
|
+
"image": "https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/0aa4dc06-e375-45c2-8ec2-0461a83d5d4a.png"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"title": "20积分",
|
|
52
|
+
"image": "https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/de35f413-6971-4ab3-a816-9c488e169d46.png"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"title": "流量券",
|
|
56
|
+
"image": "https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/3c0ff8a2-8362-4219-875d-0778d65bba80.png"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"title": "10元优惠券",
|
|
60
|
+
"image": "https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/d11056cc-b8a1-4d50-b993-65d8a434802f.png"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"x-index": 10,
|
|
64
|
+
"x-component": "list-bind-switch",
|
|
65
|
+
"x-component-props": {
|
|
66
|
+
"origin-component": "list"
|
|
67
|
+
},
|
|
68
|
+
"x-props": {
|
|
69
|
+
"data-withBindMeta": true
|
|
70
|
+
},
|
|
71
|
+
"x-linkages": [
|
|
72
|
+
{
|
|
73
|
+
"type": "value:schema",
|
|
74
|
+
"schema": {
|
|
75
|
+
"x-component-props": {
|
|
76
|
+
"options": "{{ $value.map((title, index) => ({label: '奖品名称' + (index + 1), value: index}) ) }}"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"target": "selectedIndex"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"enablePrize": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"title": "启动抽奖",
|
|
86
|
+
"x-index": 20,
|
|
87
|
+
"default": true
|
|
88
|
+
},
|
|
89
|
+
"prizeResult": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"title": "抽奖结果",
|
|
92
|
+
"x-index": 30,
|
|
93
|
+
"default": "1",
|
|
94
|
+
"description": "以左上角为起始位置,顺时针确定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
|
+
},
|
|
132
|
+
"events": [
|
|
133
|
+
{
|
|
134
|
+
"name": "clickLotteryButton",
|
|
135
|
+
"title": "开始抽奖"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "finishLottery",
|
|
139
|
+
"title": "开奖",
|
|
140
|
+
"value": "event.detail.prize"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"meta": {
|
|
144
|
+
"title": "九宫格抽奖",
|
|
145
|
+
"description": "九宫格抽奖",
|
|
146
|
+
"category": "高级",
|
|
147
|
+
"componentOrder": 101,
|
|
148
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/NavLayout.svg",
|
|
149
|
+
"visible": ["APP"]
|
|
150
|
+
}
|
|
151
|
+
}
|