@cloudbase/weda-ui 0.2.15 → 0.2.16
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/package.json +10 -7
- package/src/configs/components/calendar.json +75 -0
- package/src/configs/components/carousel.json +273 -0
- package/src/configs/components/chart/statisticsCard.json +331 -0
- package/src/configs/components/dataView.json +139 -0
- package/src/configs/components/form/location.json +152 -0
- package/src/configs/components/form/uploaderFile.json +2 -1
- package/src/configs/components/graphicCard.json +399 -0
- package/src/configs/components/link.json +2 -2
- package/src/configs/components/listView.json +230 -0
- package/src/configs/components/navLayout.json +350 -0
- package/src/configs/components/swiper.json +3 -3
- package/src/configs/index.js +16 -0
- package/src/mp/components/button/index.js +12 -13
- package/src/mp/components/button/index.wxml +1 -1
- package/src/mp/components/calendar/arrowright--line.svg +11 -0
- package/src/mp/components/calendar/index.js +238 -0
- package/src/mp/components/calendar/index.json +4 -0
- package/src/mp/components/calendar/index.wxml +37 -0
- package/src/mp/components/calendar/index.wxss +178 -0
- package/src/mp/components/carousel/index.js +88 -0
- package/src/mp/components/carousel/index.json +7 -0
- package/src/mp/components/carousel/index.wxml +6 -0
- package/src/mp/components/chart/statisticsCard/index.js +226 -0
- package/src/mp/components/chart/statisticsCard/index.json +4 -0
- package/src/mp/components/chart/statisticsCard/index.wxml +9 -0
- package/src/mp/components/chart/statisticsCard/index.wxss +45 -0
- package/src/mp/components/dataView/index.js +34 -0
- package/src/mp/components/dataView/index.json +7 -0
- package/src/mp/components/dataView/index.wxml +15 -0
- package/src/mp/components/dataView/index.wxss +0 -0
- package/src/mp/components/form/location/components/mapChoose/index.js +201 -0
- package/src/mp/components/form/location/components/mapChoose/index.json +4 -0
- package/src/mp/components/form/location/components/mapChoose/index.wxml +42 -0
- package/src/mp/components/form/location/components/mapChoose/index.wxss +188 -0
- package/src/mp/components/form/location/index.js +341 -0
- package/src/mp/components/form/location/index.json +6 -0
- package/src/mp/components/form/location/index.wxml +25 -0
- package/src/mp/components/form/location/index.wxss +91 -0
- package/src/mp/components/form/uploader/index.js +39 -35
- package/src/mp/components/form/uploaderFile/index.js +61 -14
- package/src/mp/components/graphicCard/chevron-right.svg +3 -0
- package/src/mp/components/graphicCard/index.js +205 -0
- package/src/mp/components/graphicCard/index.json +4 -0
- package/src/mp/components/graphicCard/index.wxml +29 -0
- package/src/mp/components/graphicCard/index.wxss +157 -0
- package/src/mp/components/image/index.js +0 -1
- package/src/mp/components/listView/arrow-right-line.svg +3 -0
- package/src/mp/components/listView/index.js +286 -0
- package/src/mp/components/listView/index.json +4 -0
- package/src/mp/components/listView/index.wxml +40 -0
- package/src/mp/components/listView/index.wxss +150 -0
- package/src/mp/components/listView/more-line.svg +3 -0
- package/src/mp/components/navLayout/index.js +123 -0
- package/src/mp/components/navLayout/index.json +7 -0
- package/src/mp/components/navLayout/index.wxml +25 -0
- package/src/mp/components/navLayout/index.wxss +1193 -0
- package/src/mp/components/swiper/index.wxml +2 -0
- package/src/mp/index.json +9 -1
- package/src/mp/utils/debounce.js +133 -0
- package/src/mp/utils/dr_square_point.js +25 -0
- package/src/mp/utils/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js +1336 -0
- package/src/mp/utils/spark-md5.js +776 -0
- package/src/mp/utils/tcb.js +18 -0
- package/src/web/components/calendar/index.css +382 -0
- package/src/web/components/calendar/index.jsx +312 -0
- package/src/web/components/calendar/util.js +90 -0
- package/src/web/components/carousel/index.css +119 -0
- package/src/web/components/carousel/index.tsx +417 -0
- package/src/web/components/chart/statisticsCard/index.css +62 -0
- package/src/web/components/chart/statisticsCard/index.tsx +286 -0
- package/src/web/components/chart/statisticsCard/interface.ts +14 -0
- package/src/web/components/dataView/index.tsx +20 -0
- package/src/web/components/dataView/interface.ts +6 -0
- package/src/web/components/form/location/common/mapChoose.css +178 -0
- package/src/web/components/form/location/common/mapChoose.jsx +343 -0
- package/src/web/components/form/location/common/mapView.jsx +190 -0
- package/src/web/components/form/location/common/propsConfig.js +54 -0
- package/src/web/components/form/location/common/selectModal.css +44 -0
- package/src/web/components/form/location/common/selectModal.jsx +82 -0
- package/src/web/components/form/location/common/useLocationInfo.js +100 -0
- package/src/web/components/form/location/components/LocationH5/index.css +243 -0
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +403 -0
- package/src/web/components/form/location/components/LocationPC/Header.jsx +109 -0
- package/src/web/components/form/location/components/LocationPC/index.css +44 -0
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +323 -0
- package/src/web/components/form/location/constants.js +4 -0
- package/src/web/components/form/location/index.css +0 -0
- package/src/web/components/form/location/index.jsx +25 -0
- package/src/web/components/form/uploader/uploader.h5.tsx +16 -10
- package/src/web/components/form/uploader/uploader.pc.tsx +15 -11
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +122 -107
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +22 -19
- package/src/web/components/graphicCard/index.css +163 -0
- package/src/web/components/graphicCard/index.tsx +309 -0
- package/src/web/components/image/image.tsx +0 -1
- package/src/web/components/index.js +12 -0
- package/src/web/components/listView/arrow-right-line.svg +3 -0
- package/src/web/components/listView/index.css +139 -0
- package/src/web/components/listView/index.tsx +354 -0
- package/src/web/components/listView/interface.ts +98 -0
- package/src/web/components/navLayout/index.css +332 -0
- package/src/web/components/navLayout/index.tsx +247 -0
- package/src/web/components/tabs/index.tsx +2 -2
- package/src/web/components/tabs/tabs.h5.tsx +7 -4
- package/src/web/components/uploaderFileView/index.css +9 -9
- package/src/web/components/uploaderFileView/index.jsx +32 -23
- package/src/web/types.d.ts +15 -14
- package/src/web/utils/debounce.js +98 -0
- package/src/web/utils/platform.js +31 -0
- package/src/web/utils/tcb.js +35 -0
- package/src/web/utils/tmap.js +4 -0
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"navOption": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"title": "图文内容",
|
|
8
|
+
"icon":"icon",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"title": "示例标题",
|
|
12
|
+
"x-image": "this.icon",
|
|
13
|
+
"default": {
|
|
14
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
15
|
+
"title": "示例标题",
|
|
16
|
+
"des":"这是一段示例描述,这是一段示例描述"
|
|
17
|
+
},
|
|
18
|
+
"display": "title",
|
|
19
|
+
"properties": {
|
|
20
|
+
"icon": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"x-component": "image",
|
|
23
|
+
"title": "图片",
|
|
24
|
+
"default": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
25
|
+
"x-index": 20
|
|
26
|
+
},
|
|
27
|
+
"title": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"title": "标题",
|
|
30
|
+
"default": "示例标题",
|
|
31
|
+
"x-index": 10
|
|
32
|
+
},
|
|
33
|
+
"des": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"title": "描述",
|
|
36
|
+
"default": "这是一段示例描述,这是一段示例描述",
|
|
37
|
+
"x-index": 15
|
|
38
|
+
},
|
|
39
|
+
"tapStatus":{
|
|
40
|
+
"enum": [
|
|
41
|
+
{
|
|
42
|
+
"value": "tap",
|
|
43
|
+
"label": "无行为",
|
|
44
|
+
"icon": "weda-editor-icon-alert-close"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"value": "inside",
|
|
48
|
+
"label": "打开页面",
|
|
49
|
+
"icon": "weda-editor-icon-docs"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"value": "outer",
|
|
53
|
+
"label": "外部链接",
|
|
54
|
+
"icon": "weda-editor-icon-link",
|
|
55
|
+
"tooltip":[{
|
|
56
|
+
"platform":["ALL","MP"],
|
|
57
|
+
"text":"小程序平台不支持跳转外部链接"
|
|
58
|
+
}],
|
|
59
|
+
"disabled": [{
|
|
60
|
+
"platform":["MP"]
|
|
61
|
+
}]
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"type": "string",
|
|
65
|
+
"title": "点击时",
|
|
66
|
+
"default": "tap",
|
|
67
|
+
"x-index": 40,
|
|
68
|
+
"x-component": "icon-text-radio",
|
|
69
|
+
"x-linkages": [
|
|
70
|
+
{
|
|
71
|
+
"type": "value:visible",
|
|
72
|
+
"target": "*(dataForm.insideUrl)",
|
|
73
|
+
"condition": "{{$self.value=='inside'}}"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "value:visible",
|
|
77
|
+
"target": "*(dataForm.outerUrl)",
|
|
78
|
+
"condition": "{{$self.value=='outer'}}"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "value:visible",
|
|
82
|
+
"target": "*(dataForm.withParams)",
|
|
83
|
+
"condition": "{{$self.value=='inside'}}"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "value:visible",
|
|
87
|
+
"target": "*(dataForm.newPage)",
|
|
88
|
+
"condition": "{{$self.value=='outer'}}"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"insideUrl": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"x-component": "page-list",
|
|
95
|
+
"default": "",
|
|
96
|
+
"title": "应用页面",
|
|
97
|
+
"x-category": "基础属性",
|
|
98
|
+
"x-index": 120,
|
|
99
|
+
"x-component-props": {
|
|
100
|
+
"hideAddPlatform": ["MP"],
|
|
101
|
+
"addHidden":true
|
|
102
|
+
},
|
|
103
|
+
"x-linkages": [
|
|
104
|
+
{
|
|
105
|
+
"type": "value:state",
|
|
106
|
+
"target": "*(dataForm.params)",
|
|
107
|
+
"condition": "{{$self.value && $self.value.length>0}}",
|
|
108
|
+
"state":{
|
|
109
|
+
"pageId":"{{$self.value}}"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"outerUrl": {
|
|
116
|
+
"title": "URL地址",
|
|
117
|
+
"default": "",
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
"newPage": {
|
|
121
|
+
"title": "打开新页面",
|
|
122
|
+
"default": false,
|
|
123
|
+
"type": "boolean"
|
|
124
|
+
},
|
|
125
|
+
"withParams": {
|
|
126
|
+
"title": "携带参数",
|
|
127
|
+
"default": false,
|
|
128
|
+
"type": "boolean",
|
|
129
|
+
"x-linkages": [
|
|
130
|
+
{
|
|
131
|
+
"type": "value:visible",
|
|
132
|
+
"target": "*(dataForm.params)",
|
|
133
|
+
"condition": "{{$self.value==true}}"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"params": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"title": "参数",
|
|
140
|
+
"pageId":"",
|
|
141
|
+
"x-component":"page-params",
|
|
142
|
+
"default": []
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"default": [
|
|
147
|
+
{
|
|
148
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
149
|
+
"title": "示例标题",
|
|
150
|
+
"des":"这是一段示例描述,这是一段示例描述",
|
|
151
|
+
"tapStatus": "tap"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
155
|
+
"title": "示例标题",
|
|
156
|
+
"des":"这是一段示例描述,这是一段示例描述",
|
|
157
|
+
"tapStatus": "tap"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
161
|
+
"title": "示例标题",
|
|
162
|
+
"des":"这是一段示例描述,这是一段示例描述",
|
|
163
|
+
"tapStatus": "tap"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/478c35e469057b4d6352ccc14e00ebc5.png",
|
|
167
|
+
"title": "示例标题",
|
|
168
|
+
"des":"这是一段示例描述,这是一段示例描述",
|
|
169
|
+
"tapStatus": "tap"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"x-index": 1,
|
|
173
|
+
"x-component": "list"
|
|
174
|
+
},
|
|
175
|
+
"ColMobile": {
|
|
176
|
+
"type": "number",
|
|
177
|
+
"default": 2,
|
|
178
|
+
"title": "移动端列数",
|
|
179
|
+
"x-category": "基础属性",
|
|
180
|
+
"enum": [
|
|
181
|
+
{
|
|
182
|
+
"label": "1",
|
|
183
|
+
"value": 1
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"label": "2",
|
|
187
|
+
"value": 2
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"ColPC": {
|
|
192
|
+
"type": "number",
|
|
193
|
+
"default": 4,
|
|
194
|
+
"title": "PC端列数",
|
|
195
|
+
"x-category": "基础属性",
|
|
196
|
+
"enum": [
|
|
197
|
+
{
|
|
198
|
+
"label": "3",
|
|
199
|
+
"value": 3
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"label": "4",
|
|
203
|
+
"value": 4
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
"textAlign": {
|
|
208
|
+
"title": "对齐",
|
|
209
|
+
"type": "string",
|
|
210
|
+
"default": "left",
|
|
211
|
+
"x-component": "textAlign",
|
|
212
|
+
"x-index": 10,
|
|
213
|
+
"x-category": "高级属性"
|
|
214
|
+
},
|
|
215
|
+
"iconHeightSize": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"default": "100%",
|
|
218
|
+
"title": "图片高度",
|
|
219
|
+
"x-category": "高级属性",
|
|
220
|
+
"x-index": 20
|
|
221
|
+
},
|
|
222
|
+
"iconWidthSize": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"default": "100%",
|
|
225
|
+
"title": "图片宽度",
|
|
226
|
+
"description": "默认单位px",
|
|
227
|
+
"x-category": "高级属性",
|
|
228
|
+
"x-index": 25
|
|
229
|
+
},
|
|
230
|
+
"titleVisible": {
|
|
231
|
+
"title": "显示标题",
|
|
232
|
+
"type": "boolean",
|
|
233
|
+
"default": true,
|
|
234
|
+
"x-category": "高级属性",
|
|
235
|
+
"x-index": 30,
|
|
236
|
+
"x-linkages": [
|
|
237
|
+
{
|
|
238
|
+
"type": "value:visible",
|
|
239
|
+
"target": "*(titleColor,titleFontWeight,titleFontSize,titleLineHeight,titleMaxLines)",
|
|
240
|
+
"condition": "{{$self.value}}"
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
"titleColor": {
|
|
245
|
+
"title": "标题颜色",
|
|
246
|
+
"type": "string",
|
|
247
|
+
"x-component": "color",
|
|
248
|
+
"x-index": 40,
|
|
249
|
+
"x-category": "高级属性",
|
|
250
|
+
"default": "rgb(0, 0, 0)"
|
|
251
|
+
},
|
|
252
|
+
|
|
253
|
+
"titleFontWeight": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"title": "标题字重",
|
|
256
|
+
"default": "bolder",
|
|
257
|
+
"x-category": "高级属性",
|
|
258
|
+
"x-index": 50,
|
|
259
|
+
"enum": [
|
|
260
|
+
{
|
|
261
|
+
"label": "细",
|
|
262
|
+
"value": "lighter"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"label": "正常",
|
|
266
|
+
"value": "normal"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"label": "粗",
|
|
270
|
+
"value": "bolder"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"titleFontSize": {
|
|
275
|
+
"type": "number",
|
|
276
|
+
"title": "标题字号",
|
|
277
|
+
"default": 14,
|
|
278
|
+
"x-category": "高级属性",
|
|
279
|
+
"x-props":{
|
|
280
|
+
"min":0,
|
|
281
|
+
"max":100
|
|
282
|
+
},
|
|
283
|
+
"x-index":60
|
|
284
|
+
},
|
|
285
|
+
"titleLineHeight": {
|
|
286
|
+
"title": "标题行高",
|
|
287
|
+
"type": "string",
|
|
288
|
+
"x-index": 70,
|
|
289
|
+
"x-category": "高级属性",
|
|
290
|
+
"default": "auto"
|
|
291
|
+
},
|
|
292
|
+
"titleMaxLines": {
|
|
293
|
+
"title": "标题行数",
|
|
294
|
+
"type": "number",
|
|
295
|
+
"default": 1,
|
|
296
|
+
"x-index": 80,
|
|
297
|
+
"x-category": "高级属性"
|
|
298
|
+
},
|
|
299
|
+
"desVisible": {
|
|
300
|
+
"title": "显示描述",
|
|
301
|
+
"type": "boolean",
|
|
302
|
+
"default": true,
|
|
303
|
+
"x-category": "高级属性",
|
|
304
|
+
"x-index": 90,
|
|
305
|
+
"x-linkages": [
|
|
306
|
+
{
|
|
307
|
+
"type": "value:visible",
|
|
308
|
+
"target": "*(desColor,desFontWeight,desFontSize,desLineHeight,desMaxLines)",
|
|
309
|
+
"condition": "{{$self.value}}"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
"desColor": {
|
|
314
|
+
"title": "描述颜色",
|
|
315
|
+
"type": "string",
|
|
316
|
+
"x-component": "color",
|
|
317
|
+
"x-index": 100,
|
|
318
|
+
"x-category": "高级属性",
|
|
319
|
+
"default": "rgba(0, 0, 0, 0.4)"
|
|
320
|
+
},
|
|
321
|
+
|
|
322
|
+
"desFontWeight": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"title": "描述字重",
|
|
325
|
+
"default": "normal",
|
|
326
|
+
"x-category": "高级属性",
|
|
327
|
+
"x-index": 110,
|
|
328
|
+
"enum": [
|
|
329
|
+
{
|
|
330
|
+
"label": "细",
|
|
331
|
+
"value": "lighter"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"label": "正常",
|
|
335
|
+
"value": "normal"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"label": "粗",
|
|
339
|
+
"value": "bolder"
|
|
340
|
+
}
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
"desFontSize": {
|
|
344
|
+
"type": "number",
|
|
345
|
+
"title": "描述字号",
|
|
346
|
+
"default": 14,
|
|
347
|
+
"x-category": "高级属性",
|
|
348
|
+
"x-props":{
|
|
349
|
+
"min":0,
|
|
350
|
+
"max":100
|
|
351
|
+
},
|
|
352
|
+
"x-index":120
|
|
353
|
+
},
|
|
354
|
+
"desLineHeight": {
|
|
355
|
+
"title": "描述行高",
|
|
356
|
+
"type": "string",
|
|
357
|
+
"x-index": 130,
|
|
358
|
+
"x-category": "高级属性",
|
|
359
|
+
"default": "auto"
|
|
360
|
+
},
|
|
361
|
+
"desMaxLines": {
|
|
362
|
+
"title": "描述行数",
|
|
363
|
+
"type": "number",
|
|
364
|
+
"default": 2,
|
|
365
|
+
"x-index": 140,
|
|
366
|
+
"x-category": "高级属性"
|
|
367
|
+
},
|
|
368
|
+
"buttonVisible": {
|
|
369
|
+
"title": "显示详情按钮",
|
|
370
|
+
"type": "boolean",
|
|
371
|
+
"default": true,
|
|
372
|
+
"x-category": "高级属性",
|
|
373
|
+
"x-index": 150,
|
|
374
|
+
"description":"无行为的按钮将保持隐藏",
|
|
375
|
+
"x-linkages": [
|
|
376
|
+
{
|
|
377
|
+
"type": "value:visible",
|
|
378
|
+
"target": "*(buttonText)",
|
|
379
|
+
"condition": "{{$self.value}}"
|
|
380
|
+
}
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
"buttonText": {
|
|
384
|
+
"title": "按钮文案",
|
|
385
|
+
"type": "string",
|
|
386
|
+
"default": "查看详情",
|
|
387
|
+
|
|
388
|
+
"x-category": "高级属性",
|
|
389
|
+
"x-index": 160
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"meta": {
|
|
394
|
+
"title": "图文卡片",
|
|
395
|
+
"category": "展示",
|
|
396
|
+
"componentOrder": 501,
|
|
397
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/GraphicCard.svg"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"url": {
|
|
16
16
|
"type": "string",
|
|
17
17
|
"x-component": "page-list",
|
|
18
|
-
"default": "https://cloud.tencent.com",
|
|
19
18
|
"title": "跳转页面",
|
|
20
19
|
"description": "通过下拉选择应用页面,可以实现内部页面跳转",
|
|
21
20
|
"x-category": "基础属性",
|
|
@@ -54,7 +53,8 @@
|
|
|
54
53
|
"description": "",
|
|
55
54
|
"category": "文本",
|
|
56
55
|
"componentOrder": 10,
|
|
57
|
-
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Link.svg"
|
|
56
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Link.svg",
|
|
57
|
+
"platform": ["MOBILEWEB", "PCWEB"]
|
|
58
58
|
},
|
|
59
59
|
"events": [
|
|
60
60
|
{
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"datasource": {
|
|
6
|
+
"x-index": 10,
|
|
7
|
+
"title": "数据模型",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"x-category": "基础属性",
|
|
10
|
+
"properties": {
|
|
11
|
+
"name": {
|
|
12
|
+
"title": "数据模型名",
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"extra": {
|
|
16
|
+
"title": "数据模型属性",
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"viewId": {
|
|
20
|
+
"title": "数据模型视图id",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"methodName": {
|
|
24
|
+
"title": "数据模型方法名",
|
|
25
|
+
"type": "object"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"x-component": "datasource-selector",
|
|
31
|
+
"x-component-props": { "dataContainerType": "listView" },
|
|
32
|
+
"x-props": { "data-hidebind": true },
|
|
33
|
+
"x-linkages": [
|
|
34
|
+
{
|
|
35
|
+
"type": "value:schema",
|
|
36
|
+
"target": "params",
|
|
37
|
+
"schema": {
|
|
38
|
+
"x-component-props": "{{$value}}"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "value:schema",
|
|
43
|
+
"condition": "{{ !!$value.name }}",
|
|
44
|
+
"target": "orderBy",
|
|
45
|
+
"schema": {
|
|
46
|
+
"enum": "{{getDataSourceValueOptions($value.name)}}"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "value:state",
|
|
51
|
+
"condition": "{{!!$value.name && !!$form.values.orderBy && getDataSourceValueOptions($value.name).every(o => o.value !== $form.values.orderBy)}}",
|
|
52
|
+
"target": "orderBy",
|
|
53
|
+
"state": {
|
|
54
|
+
"value": ""
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "value:schema",
|
|
59
|
+
"condition": "{{ !!$value.name }}",
|
|
60
|
+
"target": "where",
|
|
61
|
+
"schema": {
|
|
62
|
+
"x-component-props": "{{{selectedDataSourceName: $value.name}}}"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "value:schema",
|
|
67
|
+
"condition": "{{ !$value.name }}",
|
|
68
|
+
"target": "orderBy",
|
|
69
|
+
"schema": {
|
|
70
|
+
"x-props": "{{{clearable: true, disabled: true, tooltip: '请先选择数据源'}}}"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "value:schema",
|
|
75
|
+
"condition": "{{ !!$value.name }}",
|
|
76
|
+
"target": "orderBy",
|
|
77
|
+
"schema": {
|
|
78
|
+
"x-props": "{{{clearable: true,disabled: false}}}"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"where": {
|
|
84
|
+
"x-index": 20,
|
|
85
|
+
"title": "数据筛选",
|
|
86
|
+
"x-category": "基础属性",
|
|
87
|
+
"type": "array",
|
|
88
|
+
"items": {},
|
|
89
|
+
"x-component": "condition-select",
|
|
90
|
+
"x-component-props": {
|
|
91
|
+
"selectedDataSourceName": null,
|
|
92
|
+
"customLogicOptions": [
|
|
93
|
+
{
|
|
94
|
+
"text": "且",
|
|
95
|
+
"value": "and"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"blackListConfig": {
|
|
99
|
+
"format": ["related", "father-son", "x-file", "x-image"],
|
|
100
|
+
"type": ["object", "array"]
|
|
101
|
+
},
|
|
102
|
+
"customRelOptions": {
|
|
103
|
+
"number": [
|
|
104
|
+
{
|
|
105
|
+
"value": "equal",
|
|
106
|
+
"text": "等于",
|
|
107
|
+
"type": "equal"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"value": "unequal",
|
|
111
|
+
"text": "不等于"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"value": "greater",
|
|
115
|
+
"text": "大于",
|
|
116
|
+
"type": "greate"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"value": "greater_or_equal",
|
|
120
|
+
"text": "大于等于",
|
|
121
|
+
"type": "greater_or_equal"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"value": "less",
|
|
125
|
+
"text": "小于",
|
|
126
|
+
"type": "less"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"value": "less_or_equal",
|
|
130
|
+
"text": "小于等于",
|
|
131
|
+
"type": "less_or_equal"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"x-props": {
|
|
137
|
+
"data-hidebind": true,
|
|
138
|
+
"data-hideBindValue": true,
|
|
139
|
+
"data-withBindMeta": true
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"orderBy": {
|
|
143
|
+
"x-index": 30,
|
|
144
|
+
"title": "排序字段",
|
|
145
|
+
"x-category": "基础属性",
|
|
146
|
+
"type": "string",
|
|
147
|
+
"x-props": {
|
|
148
|
+
"clearable": true
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"orderType": {
|
|
152
|
+
"x-index": 40,
|
|
153
|
+
"title": "排序类型",
|
|
154
|
+
"x-category": "基础属性",
|
|
155
|
+
"type": "string",
|
|
156
|
+
"enum": [
|
|
157
|
+
{ "label": "升序", "value": "asc" },
|
|
158
|
+
{ "label": "降序", "value": "desc" }
|
|
159
|
+
],
|
|
160
|
+
"x-props": {
|
|
161
|
+
"clearable": true
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"pageSize": {
|
|
165
|
+
"x-index": 50,
|
|
166
|
+
"title": "显示条数",
|
|
167
|
+
"type": "number",
|
|
168
|
+
"default": 5,
|
|
169
|
+
"x-category": "基础属性",
|
|
170
|
+
"x-props": {
|
|
171
|
+
"min": 1
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"template": {
|
|
175
|
+
"x-index": 60,
|
|
176
|
+
"title": "模板",
|
|
177
|
+
"type": "string",
|
|
178
|
+
"x-category": "基础属性",
|
|
179
|
+
"default": "simpleList",
|
|
180
|
+
"enum": [
|
|
181
|
+
{ "label": "简单列表", "value": "simpleList" },
|
|
182
|
+
{ "label": "详细列表", "value": "detailList" },
|
|
183
|
+
{ "label": "图文列表", "value": "imageTextList" },
|
|
184
|
+
{ "label": "卡片列表", "value": "cardList" },
|
|
185
|
+
{ "label": "不使用模板", "value": "none" }
|
|
186
|
+
],
|
|
187
|
+
"x-component": "data-sources-template-selector"
|
|
188
|
+
},
|
|
189
|
+
"pagination": {
|
|
190
|
+
"x-index": 70,
|
|
191
|
+
"title": "分页",
|
|
192
|
+
"type": "string",
|
|
193
|
+
"x-category": "基础属性",
|
|
194
|
+
"default": "loadMoreButton",
|
|
195
|
+
"enum": [
|
|
196
|
+
{ "label": "点击加载更多", "value": "loadMoreButton" },
|
|
197
|
+
{ "label": "触底加载更多", "value": "bottomLoad" },
|
|
198
|
+
{ "label": "分页器", "value": "pagination" },
|
|
199
|
+
{ "label": "不分页", "value": "none" }
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"events": [
|
|
205
|
+
{
|
|
206
|
+
"name": "queryEmpty",
|
|
207
|
+
"title": "查询为空"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "querySuccess",
|
|
211
|
+
"title": "查询成功"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "queryFail",
|
|
215
|
+
"title": "查询失败"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"compConfig": {
|
|
219
|
+
"isDataContainer": true,
|
|
220
|
+
"componentType": "listview"
|
|
221
|
+
},
|
|
222
|
+
"isContainer": true,
|
|
223
|
+
"meta": {
|
|
224
|
+
"title": "列表视图",
|
|
225
|
+
"category": "数据容器",
|
|
226
|
+
"description": "数据容器组件",
|
|
227
|
+
"componentOrder": 1000,
|
|
228
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/ListView.svg"
|
|
229
|
+
}
|
|
230
|
+
}
|