@cloudbase/weda-ui 3.1.6 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configs/components/chart/bar.json +14 -7
- package/dist/configs/components/chart/line.json +14 -7
- package/dist/configs/components/chart/pie.json +12 -6
- package/dist/configs/components/form/departTreeSelect.json +124 -0
- package/dist/configs/components/form/userTreeSelect.json +128 -0
- package/dist/configs/components/formdetail.json +105 -0
- package/dist/configs/components/listView.json +9 -1
- package/dist/configs/components/lottery.json +1 -1
- package/dist/configs/components/tabs.json +10 -9
- package/dist/configs/components/wxOpenApi/share.json +5 -2
- package/dist/configs/index.d.ts +6 -0
- package/dist/configs/index.js +6 -0
- package/dist/docs/common/format.js +24 -5
- package/dist/web/actions/showModal/index.css +3 -0
- package/dist/web/actions/showModal/index.d.ts +1 -0
- package/dist/web/actions/showModal/index.js +1 -0
- package/dist/web/components/calendar/index.js +10 -2
- package/dist/web/components/carousel/index.js +4 -0
- package/dist/web/components/chart/common/core/eChartBase.js +8 -2
- package/dist/web/components/form/form/index.js +10 -7
- package/dist/web/components/form/location/common/mapChoose.js +2 -0
- package/dist/web/components/form/location/common/mapView.js +2 -0
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +3 -1
- package/dist/web/components/form/location/components/LocationH5/location.module.css +3 -0
- package/dist/web/components/form/select/h5.js +4 -0
- package/dist/web/components/form/select/index.js +2 -8
- package/dist/web/components/form/switch/index.js +3 -2
- package/dist/web/components/form/switch/switch.module.css +7 -0
- package/dist/web/components/form/uploader/uploader.h5.d.ts +1 -0
- package/dist/web/components/form/uploader/uploader.h5.js +41 -17
- package/dist/web/components/form/uploader/uploader.pc.js +31 -2
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +36 -14
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +34 -11
- package/dist/web/components/form/userOrgSelect/comTool.d.ts +7 -0
- package/dist/web/components/form/userOrgSelect/comTool.js +89 -0
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.d.ts +20 -0
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +259 -0
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.d.ts +4 -0
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +153 -0
- package/dist/web/components/form/userOrgSelect/departTreeSelect/index.d.ts +2 -0
- package/dist/web/components/form/userOrgSelect/departTreeSelect/index.js +17 -0
- package/dist/web/components/form/userOrgSelect/index.d.ts +2 -0
- package/dist/web/components/form/userOrgSelect/index.js +17 -0
- package/dist/web/components/form/userOrgSelect/userOrgSelect.less +643 -0
- package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.d.ts +24 -0
- package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.js +276 -0
- package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.d.ts +9 -0
- package/dist/web/components/form/userOrgSelect/userTreeSelect.pc.js +229 -0
- package/dist/web/components/form/userOrgSelect/utils.d.ts +35 -0
- package/dist/web/components/form/userOrgSelect/utils.js +72 -0
- package/dist/web/components/formdetail/index.css +115 -0
- package/dist/web/components/formdetail/index.d.ts +28 -0
- package/dist/web/components/formdetail/index.js +170 -0
- package/dist/web/components/index.d.ts +3 -0
- package/dist/web/components/index.js +3 -0
- package/dist/web/components/listView/index.css +35 -5
- package/dist/web/components/listView/index.js +92 -68
- package/dist/web/components/listView/interface.d.ts +5 -0
- package/dist/web/components/lottery/index.js +2 -1
- package/dist/web/components/lottery/lotteryUtil.js +1 -0
- package/dist/web/components/navigationBar/index.css +21 -29
- package/dist/web/components/richText/index.css +1 -0
- package/dist/web/components/swiper/index.js +5 -1
- package/dist/web/components/wedaVideo/index.js +1 -0
- package/dist/web/utils/getUserService.d.ts +17 -0
- package/dist/web/utils/getUserService.js +148 -0
- package/dist/web/utils/platform.js +2 -0
- package/dist/web/weda-ui.css +9 -0
- package/package.json +14 -13
- package/dist/asset-manifest.json +0 -17
- package/dist/index.html +0 -88
- package/dist/static/js/bundle.js +0 -963
- package/dist/static/js/bundle.js.map +0 -1
- package/dist/static/js/main.chunk.js +0 -8841
- package/dist/static/js/main.chunk.js.map +0 -1
- package/dist/static/js/vendors~main.chunk.js +0 -247885
- package/dist/static/js/vendors~main.chunk.js.map +0 -1
- package/dist/static/media/ef6fa527e24e354765d806b826b41391.fa67580a.svg +0 -627
- package/dist/web/components/auth/index.d.ts +0 -10
- package/dist/web/components/auth/index.js +0 -37
- package/dist/web/utils/events.d.ts +0 -1
- package/dist/web/utils/events.js +0 -2
|
@@ -94,6 +94,9 @@
|
|
|
94
94
|
"title": "数据源",
|
|
95
95
|
"x-index": 50,
|
|
96
96
|
"x-component": "chart-datasource-select",
|
|
97
|
+
"x-props": {
|
|
98
|
+
"data-hidebind": true
|
|
99
|
+
},
|
|
97
100
|
"x-component-props": {
|
|
98
101
|
"postChange": {
|
|
99
102
|
"addOrUpdateComponentDataBinds": {
|
|
@@ -110,11 +113,11 @@
|
|
|
110
113
|
{
|
|
111
114
|
"type": "value:visible",
|
|
112
115
|
"target": "*(filterData)",
|
|
113
|
-
"condition": "{{ $self.value.type ==='database' ||
|
|
116
|
+
"condition": "{{ ($self.value && $self.value.type ==='database') || ( $self.value && $self.value.type ==='cloud-integration') }}"
|
|
114
117
|
},
|
|
115
118
|
{
|
|
116
119
|
"type": "value:schema",
|
|
117
|
-
"condition": "{{
|
|
120
|
+
"condition": "{{ $self.value&&!!$self.value.name }}",
|
|
118
121
|
"target": "filterData",
|
|
119
122
|
"schema": {
|
|
120
123
|
"x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
|
|
@@ -123,7 +126,7 @@
|
|
|
123
126
|
{
|
|
124
127
|
"type": "value:visible",
|
|
125
128
|
"target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField,groupKeyTimeSpan)",
|
|
126
|
-
"condition": "{{ $self.value.type ==='database' }}"
|
|
129
|
+
"condition": "{{ $self.value && $self.value.type ==='database' }}"
|
|
127
130
|
},
|
|
128
131
|
{
|
|
129
132
|
"type": "value:state",
|
|
@@ -301,7 +304,8 @@
|
|
|
301
304
|
"target": "*(xIsCountEmpty)",
|
|
302
305
|
"condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
|
|
303
306
|
}
|
|
304
|
-
]
|
|
307
|
+
],
|
|
308
|
+
"remarks": "X轴数值字段选择"
|
|
305
309
|
},
|
|
306
310
|
"xStatistics": {
|
|
307
311
|
"title": "统计维度",
|
|
@@ -341,7 +345,8 @@
|
|
|
341
345
|
"target": "*(groupKey)",
|
|
342
346
|
"condition": "{{ (!$self.value || !$self.value.numValue || $self.value.numValue.length<=1) && !!$self.__datasourceName }}"
|
|
343
347
|
}
|
|
344
|
-
]
|
|
348
|
+
],
|
|
349
|
+
"remarks": "Y轴数值字段选择"
|
|
345
350
|
},
|
|
346
351
|
"groupKey": {
|
|
347
352
|
"type": "object",
|
|
@@ -581,7 +586,8 @@
|
|
|
581
586
|
"title": "显示数值",
|
|
582
587
|
"type": "boolean",
|
|
583
588
|
"x-index": 310,
|
|
584
|
-
"default": true
|
|
589
|
+
"default": true,
|
|
590
|
+
"remarks": "数值(Y轴)显示数值"
|
|
585
591
|
},
|
|
586
592
|
"dataTagShow": {
|
|
587
593
|
"x-index": 320,
|
|
@@ -594,7 +600,8 @@
|
|
|
594
600
|
"title": "显示数值",
|
|
595
601
|
"type": "boolean",
|
|
596
602
|
"x-index": 330,
|
|
597
|
-
"default": true
|
|
603
|
+
"default": true,
|
|
604
|
+
"remarks": "数据标签显示数值"
|
|
598
605
|
},
|
|
599
606
|
"unitShow": {
|
|
600
607
|
"x-index": 340,
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
"dataSource": {
|
|
44
44
|
"type": "object",
|
|
45
45
|
"title": "数据源",
|
|
46
|
+
"x-props": {
|
|
47
|
+
"data-hidebind": true
|
|
48
|
+
},
|
|
46
49
|
"x-index": 40,
|
|
47
50
|
"x-component": "chart-datasource-select",
|
|
48
51
|
"x-component-props": {
|
|
@@ -61,11 +64,11 @@
|
|
|
61
64
|
{
|
|
62
65
|
"type": "value:visible",
|
|
63
66
|
"target": "*(filterData)",
|
|
64
|
-
"condition": "{{ $self.value.type ==='database' || $self.value.type ==='cloud-integration' }}"
|
|
67
|
+
"condition": "{{ ($self.value && $self.value.type ==='database') || ($self.value && $self.value.type ==='cloud-integration') }}"
|
|
65
68
|
},
|
|
66
69
|
{
|
|
67
70
|
"type": "value:schema",
|
|
68
|
-
"condition": "{{ !!$self.value.name }}",
|
|
71
|
+
"condition": "{{ $self.value && !!$self.value.name }}",
|
|
69
72
|
"target": "filterData",
|
|
70
73
|
"schema": {
|
|
71
74
|
"x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
|
|
@@ -74,7 +77,7 @@
|
|
|
74
77
|
{
|
|
75
78
|
"type": "value:visible",
|
|
76
79
|
"target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField,groupKeyTimeSpan)",
|
|
77
|
-
"condition": "{{ $self.value.type ==='database' }}"
|
|
80
|
+
"condition": "{{ $self.value && $self.value.type ==='database' }}"
|
|
78
81
|
},
|
|
79
82
|
{
|
|
80
83
|
"type": "value:state",
|
|
@@ -244,7 +247,8 @@
|
|
|
244
247
|
"target": "*(xIsCountEmpty)",
|
|
245
248
|
"condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
|
|
246
249
|
}
|
|
247
|
-
]
|
|
250
|
+
],
|
|
251
|
+
"remarks": "X轴数值字段选择"
|
|
248
252
|
},
|
|
249
253
|
"xStatistics": {
|
|
250
254
|
"title": "统计维度",
|
|
@@ -283,7 +287,8 @@
|
|
|
283
287
|
"condition": "{{ (!$self.value || !$self.value.numValue || $self.value.numValue.length<=1) && !!$self.__datasourceName }}"
|
|
284
288
|
}
|
|
285
289
|
],
|
|
286
|
-
"x-datasource-method-reset": {}
|
|
290
|
+
"x-datasource-method-reset": {},
|
|
291
|
+
"remarks": "Y轴数值字段选择"
|
|
287
292
|
},
|
|
288
293
|
"groupKey": {
|
|
289
294
|
"type": "object",
|
|
@@ -527,7 +532,8 @@
|
|
|
527
532
|
"type": "boolean",
|
|
528
533
|
"x-index": 300,
|
|
529
534
|
"default": true,
|
|
530
|
-
"x-category": "高级属性"
|
|
535
|
+
"x-category": "高级属性",
|
|
536
|
+
"remarks": "数值(Y轴)字段选择"
|
|
531
537
|
},
|
|
532
538
|
"dataTagShow": {
|
|
533
539
|
"x-index": 310,
|
|
@@ -542,7 +548,8 @@
|
|
|
542
548
|
"type": "boolean",
|
|
543
549
|
"x-index": 320,
|
|
544
550
|
"default": true,
|
|
545
|
-
"x-category": "高级属性"
|
|
551
|
+
"x-category": "高级属性",
|
|
552
|
+
"remarks": "数据标签字段选择"
|
|
546
553
|
},
|
|
547
554
|
"unitShow": {
|
|
548
555
|
"x-index": 330,
|
|
@@ -45,6 +45,9 @@
|
|
|
45
45
|
"title": "数据源",
|
|
46
46
|
"x-index": 40,
|
|
47
47
|
"x-component": "chart-datasource-select",
|
|
48
|
+
"x-props": {
|
|
49
|
+
"data-hidebind": true
|
|
50
|
+
},
|
|
48
51
|
"x-component-props": {
|
|
49
52
|
"postChange": {
|
|
50
53
|
"addOrUpdateComponentDataBinds": {
|
|
@@ -61,11 +64,11 @@
|
|
|
61
64
|
{
|
|
62
65
|
"type": "value:visible",
|
|
63
66
|
"target": "*(filterData)",
|
|
64
|
-
"condition": "{{ $self.value.type ==='database' || $self.value.type ==='cloud-integration' }}"
|
|
67
|
+
"condition": "{{ ($self.value && $self.value.type ==='database') || ($self.value && $self.value.type ==='cloud-integration') }}"
|
|
65
68
|
},
|
|
66
69
|
{
|
|
67
70
|
"type": "value:schema",
|
|
68
|
-
"condition": "{{ !!$self.value.name }}",
|
|
71
|
+
"condition": "{{ $self.value && !!$self.value.name }}",
|
|
69
72
|
"target": "filterData",
|
|
70
73
|
"schema": {
|
|
71
74
|
"x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
|
|
@@ -74,7 +77,7 @@
|
|
|
74
77
|
{
|
|
75
78
|
"type": "value:visible",
|
|
76
79
|
"target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField)",
|
|
77
|
-
"condition": "{{ $self.value.type ==='database' }}"
|
|
80
|
+
"condition": "{{ $self.value && $self.value.type ==='database' }}"
|
|
78
81
|
}
|
|
79
82
|
],
|
|
80
83
|
"remarks": "为统计卡片设置数据源,选择已经建好的数据模型,单击数据源下拉菜单,选择统计"
|
|
@@ -242,7 +245,8 @@
|
|
|
242
245
|
"target": "*(xIsCountEmpty)",
|
|
243
246
|
"condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
|
|
244
247
|
}
|
|
245
|
-
]
|
|
248
|
+
],
|
|
249
|
+
"remarks": "X轴数值字段选择"
|
|
246
250
|
},
|
|
247
251
|
"xStatistics": {
|
|
248
252
|
"title": "统计维度",
|
|
@@ -274,7 +278,8 @@
|
|
|
274
278
|
"isMethod": true,
|
|
275
279
|
"dataSourceNamePropKey": "dataSource",
|
|
276
280
|
"maxFieldCount": 1
|
|
277
|
-
}
|
|
281
|
+
},
|
|
282
|
+
"remarks": "Y轴数值字段选择"
|
|
278
283
|
},
|
|
279
284
|
"legendShow": {
|
|
280
285
|
"x-index": 120,
|
|
@@ -355,7 +360,8 @@
|
|
|
355
360
|
"type": "boolean",
|
|
356
361
|
"x-index": 170,
|
|
357
362
|
"default": true,
|
|
358
|
-
"x-category": "高级属性"
|
|
363
|
+
"x-category": "高级属性",
|
|
364
|
+
"remarks": "数据标签字段选择"
|
|
359
365
|
},
|
|
360
366
|
"isPercent": {
|
|
361
367
|
"title": "显示百分比",
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"label": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"default": "部门",
|
|
8
|
+
"title": "标题"
|
|
9
|
+
},
|
|
10
|
+
"labelVisible": {
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"default": true,
|
|
13
|
+
"title": "显示标题"
|
|
14
|
+
},
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"default": "formDepartTreeSelect",
|
|
18
|
+
"title": "提交后台所用字段"
|
|
19
|
+
},
|
|
20
|
+
"placeholder": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"default": "请选择部门",
|
|
23
|
+
"title": "提示文字"
|
|
24
|
+
},
|
|
25
|
+
"defaultValueType": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"default": "noneDepart",
|
|
28
|
+
"title": "选中值",
|
|
29
|
+
"enum": [
|
|
30
|
+
{
|
|
31
|
+
"label": "无",
|
|
32
|
+
"value": "noneDepart"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": "指定部门",
|
|
36
|
+
"value": "confirmDepart"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"x-linkages": [
|
|
40
|
+
{
|
|
41
|
+
"type": "value:visible",
|
|
42
|
+
"target": "confirmValue",
|
|
43
|
+
"condition": "{{$self.value=='confirmDepart'}}"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"confirmValue": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"default": "",
|
|
50
|
+
"title": "指定部门id"
|
|
51
|
+
},
|
|
52
|
+
"defaultValue": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"default": "",
|
|
55
|
+
"title": ""
|
|
56
|
+
},
|
|
57
|
+
"layout": {
|
|
58
|
+
"title": "布局方式",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"default": "horizontal",
|
|
61
|
+
"enum": [
|
|
62
|
+
{
|
|
63
|
+
"label": "水平",
|
|
64
|
+
"value": "horizontal"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"label": "垂直",
|
|
68
|
+
"value": "vertical"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"requiredFlag": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"default": false,
|
|
75
|
+
"title": "是否显示必填标记"
|
|
76
|
+
},
|
|
77
|
+
"multiple": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"default": false,
|
|
80
|
+
"title": "是否多选"
|
|
81
|
+
},
|
|
82
|
+
"size": {
|
|
83
|
+
"title": "大小",
|
|
84
|
+
"type": "string",
|
|
85
|
+
"default": "full",
|
|
86
|
+
"enum": [
|
|
87
|
+
{
|
|
88
|
+
"label": "大",
|
|
89
|
+
"value": "l"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"label": "中",
|
|
93
|
+
"value": "m"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"label": "小",
|
|
97
|
+
"value": "s"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"label": "占满",
|
|
101
|
+
"value": "full"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"disabled": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"default": false,
|
|
108
|
+
"title": "是否禁用"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"meta": {
|
|
113
|
+
"title": "部门选择",
|
|
114
|
+
"description": "部门选择",
|
|
115
|
+
"category": "表单",
|
|
116
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/6389c8eeb3c6a3227ab5d49574152582.svg"
|
|
117
|
+
},
|
|
118
|
+
"events": [
|
|
119
|
+
{
|
|
120
|
+
"name": "change",
|
|
121
|
+
"title": "值改变"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"label": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"default": "成员",
|
|
8
|
+
"title": "标题"
|
|
9
|
+
},
|
|
10
|
+
"labelVisible": {
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"default": true,
|
|
13
|
+
"title": "显示标题"
|
|
14
|
+
},
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"default": "formUserTreeSelect",
|
|
18
|
+
"title": "提交后台所用字段"
|
|
19
|
+
},
|
|
20
|
+
"placeholder": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"default": "请选择成员",
|
|
23
|
+
"title": "提示文字"
|
|
24
|
+
},
|
|
25
|
+
"defaultValueType": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"default": "noneUser",
|
|
28
|
+
"title": "选中值",
|
|
29
|
+
"enum": [
|
|
30
|
+
{
|
|
31
|
+
"label": "无",
|
|
32
|
+
"value": "noneUser"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": "指定成员",
|
|
36
|
+
"value": "confirmUser"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"label": "当前登录用户",
|
|
40
|
+
"value": "loginUser"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"x-linkages": [
|
|
44
|
+
{
|
|
45
|
+
"type": "value:visible",
|
|
46
|
+
"target": "confirmValue",
|
|
47
|
+
"condition": "{{$self.value=='confirmUser' || $self.value=='currentUser'}}"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"confirmValue": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"default": "",
|
|
54
|
+
"title": "指定成员id"
|
|
55
|
+
},
|
|
56
|
+
"defaultValue": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": "",
|
|
59
|
+
"title": "默认值"
|
|
60
|
+
},
|
|
61
|
+
"layout": {
|
|
62
|
+
"title": "布局方式",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"default": "horizontal",
|
|
65
|
+
"enum": [
|
|
66
|
+
{
|
|
67
|
+
"label": "水平",
|
|
68
|
+
"value": "horizontal"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"label": "垂直",
|
|
72
|
+
"value": "vertical"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"requiredFlag": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"default": false,
|
|
79
|
+
"title": "是否显示必填标记"
|
|
80
|
+
},
|
|
81
|
+
"size": {
|
|
82
|
+
"title": "大小",
|
|
83
|
+
"type": "string",
|
|
84
|
+
"default": "full",
|
|
85
|
+
"enum": [
|
|
86
|
+
{
|
|
87
|
+
"label": "大",
|
|
88
|
+
"value": "l"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"label": "中",
|
|
92
|
+
"value": "m"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"label": "小",
|
|
96
|
+
"value": "s"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"label": "占满",
|
|
100
|
+
"value": "full"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"disabled": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"default": false,
|
|
107
|
+
"title": "是否禁用"
|
|
108
|
+
},
|
|
109
|
+
"multiple": {
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"default": false,
|
|
112
|
+
"title": "是否多选"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"meta": {
|
|
117
|
+
"title": "成员选择",
|
|
118
|
+
"description": "成员选择",
|
|
119
|
+
"category": "表单",
|
|
120
|
+
"icon": "https://qcloudimg.tencent-cloud.cn/raw/6c0cb5bbbfd55d1ed3ec5098fc9d214d.svg"
|
|
121
|
+
},
|
|
122
|
+
"events": [
|
|
123
|
+
{
|
|
124
|
+
"name": "change",
|
|
125
|
+
"title": "值改变"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"name": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"title": "绑定字段",
|
|
8
|
+
"default": "formDetail",
|
|
9
|
+
"remarks": "提交表单时会将组件值提交保存到所配置的字段中",
|
|
10
|
+
"x-index": 1,
|
|
11
|
+
"x-component": "_form-field-name-auto-complete",
|
|
12
|
+
"x-rules": [
|
|
13
|
+
{
|
|
14
|
+
"message": "该字段必填",
|
|
15
|
+
"required": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"message": "必须以字母开头,仅能输入字母或下划线或数字",
|
|
19
|
+
"pattern": "^[a-zA-Z][0-9a-zA-Z_]*$"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"required": true,
|
|
23
|
+
"x-category": "基础属性",
|
|
24
|
+
"description": "表单提交数据的 Key,页面内需保证唯一,可据此对当前组件进行赋值、校验等操作"
|
|
25
|
+
},
|
|
26
|
+
"value": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"title": "数组值",
|
|
29
|
+
"format": "array",
|
|
30
|
+
"default": [],
|
|
31
|
+
"remarks": "用来传递数组的初始值",
|
|
32
|
+
"x-index": 2,
|
|
33
|
+
"dataType": "array",
|
|
34
|
+
"inputProp": {
|
|
35
|
+
"changeEvent": "change",
|
|
36
|
+
"valueFromEvent": "event.detail.value"
|
|
37
|
+
},
|
|
38
|
+
"x-category": "基础属性",
|
|
39
|
+
"x-platforms": [""]
|
|
40
|
+
},
|
|
41
|
+
"isPureArray": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"title": "是否是纯属组",
|
|
44
|
+
"default": false,
|
|
45
|
+
"x-index": 3,
|
|
46
|
+
"x-category": "基础属性",
|
|
47
|
+
"x-platforms": [""]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"events": [
|
|
52
|
+
{
|
|
53
|
+
"name": "onDataChange",
|
|
54
|
+
"title": "值改变"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"methods": [
|
|
58
|
+
{
|
|
59
|
+
"name": "addition",
|
|
60
|
+
"label": "新增一行"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "remove",
|
|
64
|
+
"label": "删除该行",
|
|
65
|
+
"params": {
|
|
66
|
+
"properties": {
|
|
67
|
+
"index": {
|
|
68
|
+
"title": "删除数据的标识",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"default": ""
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "change",
|
|
77
|
+
"label": "值改变",
|
|
78
|
+
"params": {
|
|
79
|
+
"properties": {
|
|
80
|
+
"name": {
|
|
81
|
+
"title": "改变值的标识",
|
|
82
|
+
"type": "string",
|
|
83
|
+
"default": ""
|
|
84
|
+
},
|
|
85
|
+
"value": {
|
|
86
|
+
"title": "改变值的value",
|
|
87
|
+
"type": "string",
|
|
88
|
+
"default": ""
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"compConfig": {
|
|
95
|
+
"isDataContainer": true,
|
|
96
|
+
"componentType": "formField"
|
|
97
|
+
},
|
|
98
|
+
"isContainer": true,
|
|
99
|
+
"meta": {
|
|
100
|
+
"title": "明细",
|
|
101
|
+
"description": "明细",
|
|
102
|
+
"category": "表单",
|
|
103
|
+
"visible": []
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
},
|
|
247
247
|
"orderType": {
|
|
248
248
|
"x-index": 40,
|
|
249
|
-
"title": "
|
|
249
|
+
"title": "排序方式",
|
|
250
250
|
"x-category": "基础属性",
|
|
251
251
|
"type": "string",
|
|
252
252
|
"enum": [
|
|
@@ -332,6 +332,14 @@
|
|
|
332
332
|
}
|
|
333
333
|
],
|
|
334
334
|
"remarks": "数据分页样式"
|
|
335
|
+
},
|
|
336
|
+
"isSetStatus": {
|
|
337
|
+
"x-index": 80,
|
|
338
|
+
"title": "显示加载状态",
|
|
339
|
+
"x-category": "基础属性",
|
|
340
|
+
"type": "boolean",
|
|
341
|
+
"default": false,
|
|
342
|
+
"remarks": "是否开启数据列表的加载状态,默认不显示"
|
|
335
343
|
}
|
|
336
344
|
}
|
|
337
345
|
},
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"type": "value:schema",
|
|
80
80
|
"schema": {
|
|
81
81
|
"x-component-props": {
|
|
82
|
-
"options": "{{ $value.map((title, index) => ({label: '奖品名称' + (index + 1), value: index}) ) }}"
|
|
82
|
+
"options": "{{ $value&&$value.map((title, index) => ({label: '奖品名称' + (index + 1), value: index}) ) }}"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"target": "selectedIndex"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
26
|
"tabs": {
|
|
27
|
-
"title": "
|
|
27
|
+
"title": "标签列表",
|
|
28
28
|
"x-props": {
|
|
29
29
|
"data-hidebind": true,
|
|
30
30
|
"data-withBindMeta": true
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"maxLength": 20,
|
|
38
38
|
"default": [
|
|
39
39
|
{
|
|
40
|
-
"title": "
|
|
41
|
-
"value": "
|
|
40
|
+
"title": "标签1",
|
|
41
|
+
"value": "标签1"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"title": "
|
|
45
|
-
"value": "
|
|
44
|
+
"title": "标签2",
|
|
45
|
+
"value": "标签2"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
"title": "
|
|
49
|
-
"value": "
|
|
48
|
+
"title": "标签3",
|
|
49
|
+
"value": "标签3"
|
|
50
50
|
}
|
|
51
51
|
],
|
|
52
52
|
"items": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"type": "value:schema",
|
|
75
75
|
"schema": {
|
|
76
76
|
"x-component-props": {
|
|
77
|
-
"options": "{{ $value.map((title, index) => ({label: '
|
|
77
|
+
"options": "{{ $value && $value.map((title, index) => ({label: '标签' + (index + 1), value: index}) ) }}"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -89,7 +89,8 @@
|
|
|
89
89
|
"x-index": 30,
|
|
90
90
|
"x-category": "基础属性",
|
|
91
91
|
"x-component": "select",
|
|
92
|
-
"remarks": "更改默认选中的选项卡标签"
|
|
92
|
+
"remarks": "更改默认选中的选项卡标签",
|
|
93
|
+
"description": "当该属性绑定动态值时,请传入从0开始的整数索引值"
|
|
93
94
|
},
|
|
94
95
|
"panel": {
|
|
95
96
|
"title": "面板1",
|
|
@@ -126,11 +126,14 @@
|
|
|
126
126
|
"target": "params",
|
|
127
127
|
"condition": "{{$self.value===true}}"
|
|
128
128
|
}
|
|
129
|
-
]
|
|
129
|
+
],
|
|
130
|
+
"x-props": {
|
|
131
|
+
"data-hidebind": true
|
|
132
|
+
}
|
|
130
133
|
},
|
|
131
134
|
"params": {
|
|
132
135
|
"type": "array",
|
|
133
|
-
"title": "参数",
|
|
136
|
+
"title": "{{text('参数', help('如果采用绑定数据的方式,数据格式参考如下:[{key: \"paramKey1\", value: \"paramValue1\"}, {key: \"paramKey2\", value: \"paramValue2\"}]'))}}",
|
|
134
137
|
"x-category": "基础属性",
|
|
135
138
|
"remarks": "分享(转发)的页面的参数,会自动获取到当前选择页面内存在的页面参数并自动根据页面参数进行展开,当用户通过转发的链接进入小程序时,页面便会按照配置的参数进行渲染。如果采用绑定数据的方式,数据格式参考如下:[{key: 'paramKey1', value: 'paramValue1'}, {key: 'paramKey2', value: 'paramValue2'}]",
|
|
136
139
|
"pageId": "",
|