@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
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
|
+
"data": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"chartType": {
|
|
7
|
+
"title": "图形类型",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"default": "pie",
|
|
10
|
+
"x-component": "radio",
|
|
11
|
+
"x-index": 10,
|
|
12
|
+
"enum": [
|
|
13
|
+
{
|
|
14
|
+
"label": "饼形",
|
|
15
|
+
"value": "pie"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"label": "环形",
|
|
19
|
+
"value": "ring"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"isTitle": {
|
|
24
|
+
"title": "显示标题",
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"default": true,
|
|
27
|
+
"x-index": 20,
|
|
28
|
+
"x-linkages": [
|
|
29
|
+
{
|
|
30
|
+
"type": "value:visible",
|
|
31
|
+
"target": "*(title)",
|
|
32
|
+
"condition": "{{ $self.value }}"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"title": {
|
|
37
|
+
"title": "图表标题",
|
|
38
|
+
"default": "饼图标题",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"x-index": 30
|
|
41
|
+
},
|
|
42
|
+
"dataSource": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"title": "数据源",
|
|
45
|
+
"x-index": 40,
|
|
46
|
+
"x-component": "chart-datasource-select",
|
|
47
|
+
"x-component-props": {
|
|
48
|
+
"postChange": {
|
|
49
|
+
"addOrUpdateComponentDataBinds": {
|
|
50
|
+
"dataBind": {
|
|
51
|
+
"propertyPath": "filterData",
|
|
52
|
+
"bindDataPath": "[]",
|
|
53
|
+
"type": "expression",
|
|
54
|
+
"extra": {}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"x-linkages": [
|
|
60
|
+
{
|
|
61
|
+
"type": "value:visible",
|
|
62
|
+
"target": "*(filterData)",
|
|
63
|
+
"condition": "{{ $self.value.type ==='database' || $self.value.type ==='cloud-integration' }}"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "value:schema",
|
|
67
|
+
"condition": "{{ !!$self.value.name }}",
|
|
68
|
+
"target": "filterData",
|
|
69
|
+
"schema": {
|
|
70
|
+
"x-component-props": "{{{selectedDataSourceName: $self.value.name}}}"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "value:visible",
|
|
75
|
+
"target": "*(xFieldShow,xField,xStatistics,xIsCountEmpty,yField)",
|
|
76
|
+
"condition": "{{ $self.value.type ==='database' }}"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"filterData": {
|
|
81
|
+
"title": "数据筛选",
|
|
82
|
+
"x-index": 50,
|
|
83
|
+
"x-component": "condition-select",
|
|
84
|
+
"x-component-props": {
|
|
85
|
+
"dataSourceNamePropKey": "dataSource",
|
|
86
|
+
"customRelOptions": {
|
|
87
|
+
"string": [
|
|
88
|
+
{
|
|
89
|
+
"value": "eq",
|
|
90
|
+
"text": "等于"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"value": "neq",
|
|
94
|
+
"text": "不等于"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"value": "in",
|
|
98
|
+
"text": "包含"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"value": "nin",
|
|
102
|
+
"text": "不包含"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"boolean": [
|
|
106
|
+
{
|
|
107
|
+
"value": "eq",
|
|
108
|
+
"text": "等于"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"number": [
|
|
112
|
+
{
|
|
113
|
+
"value": "eq",
|
|
114
|
+
"text": "等于",
|
|
115
|
+
"type": "equal"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"value": "neq",
|
|
119
|
+
"text": "不等于",
|
|
120
|
+
"type": "unequal"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"value": "gt",
|
|
124
|
+
"text": "大于",
|
|
125
|
+
"type": "greater"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"value": "gte",
|
|
129
|
+
"text": "大于等于",
|
|
130
|
+
"type": "greater_or_equal"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"value": "lt",
|
|
134
|
+
"text": "小于",
|
|
135
|
+
"type": "less"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"value": "lte",
|
|
139
|
+
"text": "小于等于",
|
|
140
|
+
"type": "less_or_equal"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"array": [
|
|
144
|
+
{
|
|
145
|
+
"value": "eq",
|
|
146
|
+
"text": "等于"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"value": "in",
|
|
150
|
+
"text": "包含"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"object": [
|
|
154
|
+
{
|
|
155
|
+
"value": "eq",
|
|
156
|
+
"text": "等于"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"value": "in",
|
|
160
|
+
"text": "包含"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"keyVarType": [
|
|
164
|
+
{
|
|
165
|
+
"value": "eq",
|
|
166
|
+
"text": "等于"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"value": "neq",
|
|
170
|
+
"text": "不等于"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"value": "gt",
|
|
174
|
+
"text": "大于"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"value": "lt",
|
|
178
|
+
"text": "小于"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"x-props": {
|
|
184
|
+
"data-hidebind": true,
|
|
185
|
+
"data-hideBindValue": true,
|
|
186
|
+
"data-withBindMeta": true
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"setColor": {
|
|
190
|
+
"type": "array",
|
|
191
|
+
"title": "配色",
|
|
192
|
+
"x-index": 60,
|
|
193
|
+
"x-component": "color-plate"
|
|
194
|
+
},
|
|
195
|
+
"dimensionalityShow": {
|
|
196
|
+
"x-index": 70,
|
|
197
|
+
"x-category": "基础属性",
|
|
198
|
+
"x-component": "sub-category-title",
|
|
199
|
+
"x-component-props": {
|
|
200
|
+
"text": "维度"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"xField": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"title": "字段选择",
|
|
206
|
+
"x-index": 80,
|
|
207
|
+
"x-category": "基础属性",
|
|
208
|
+
"x-component": "data-source-field-select",
|
|
209
|
+
"x-datasource-method-reset": "",
|
|
210
|
+
"x-component-props": {
|
|
211
|
+
"dataSourceNamePropKey": "dataSource",
|
|
212
|
+
"isMethod": true
|
|
213
|
+
},
|
|
214
|
+
"x-linkages": [
|
|
215
|
+
{
|
|
216
|
+
"type": "value:schema",
|
|
217
|
+
"condition": "{{ $self.inputed && !!$self.value }}",
|
|
218
|
+
"target": "xStatistics",
|
|
219
|
+
"schema": {
|
|
220
|
+
"enum": "{{$self.value.format ==='datetime' ? [{'label':'年','value':'y'},{'label':'月','value':'m'},{'label':'周','value':'w'},{'label':'日','value':'d'},{'label':'时','value':'h'},{'label':'分','value':'min'}] : ($self.value.format ==='date'? [{'label':'年','value':'y'},{'label':'月','value':'m'},{'label':'周','value':'w'},{'label':'日','value':'d'}] : []) }}"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"type": "value:state",
|
|
225
|
+
"target": "xStatistics",
|
|
226
|
+
"condition": "{{ $self.inputed && !!$self.value }}",
|
|
227
|
+
"state": {
|
|
228
|
+
"value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"type": "value:visible",
|
|
233
|
+
"target": "*(xStatistics)",
|
|
234
|
+
"condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"type": "value:visible",
|
|
238
|
+
"target": "*(xIsCountEmpty)",
|
|
239
|
+
"condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"xStatistics": {
|
|
244
|
+
"title": "统计维度",
|
|
245
|
+
"type": "string",
|
|
246
|
+
"x-category": "基础属性",
|
|
247
|
+
"x-index": 90,
|
|
248
|
+
"enum": []
|
|
249
|
+
},
|
|
250
|
+
"xIsCountEmpty": {
|
|
251
|
+
"title": "统计空值",
|
|
252
|
+
"type": "boolean",
|
|
253
|
+
"default": false,
|
|
254
|
+
"x-index": 100
|
|
255
|
+
},
|
|
256
|
+
"yFieldSubTitle": {
|
|
257
|
+
"x-index": 105,
|
|
258
|
+
"x-component": "sub-category-title",
|
|
259
|
+
"x-component-props": {
|
|
260
|
+
"text": "数值"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"yField": {
|
|
264
|
+
"type": "object",
|
|
265
|
+
"title": "字段选择",
|
|
266
|
+
"x-index": 110,
|
|
267
|
+
"x-category": "基础属性",
|
|
268
|
+
"x-component": "chart-y-field-select",
|
|
269
|
+
"x-component-props": {
|
|
270
|
+
"isMethod": true,
|
|
271
|
+
"dataSourceNamePropKey": "dataSource",
|
|
272
|
+
"maxFieldCount": 1
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"legendShow": {
|
|
276
|
+
"x-index": 120,
|
|
277
|
+
"x-category": "基础属性",
|
|
278
|
+
"x-component": "sub-category-title",
|
|
279
|
+
"x-component-props": {
|
|
280
|
+
"text": "图例"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"isLegend": {
|
|
284
|
+
"title": "显示图例",
|
|
285
|
+
"type": "boolean",
|
|
286
|
+
"default": true,
|
|
287
|
+
"x-category": "基础属性",
|
|
288
|
+
"x-index": 130,
|
|
289
|
+
"x-linkages": [
|
|
290
|
+
{
|
|
291
|
+
"type": "value:visible",
|
|
292
|
+
"target": "*(legend)",
|
|
293
|
+
"condition": "{{ $self.value }}"
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
"legend2": {
|
|
298
|
+
"title": "图例位置",
|
|
299
|
+
"type": "string",
|
|
300
|
+
"default": "bottom",
|
|
301
|
+
"x-category": "基础属性",
|
|
302
|
+
"x-index": 140,
|
|
303
|
+
"x-platforms": [
|
|
304
|
+
"PCWEB"
|
|
305
|
+
],
|
|
306
|
+
"enum": [
|
|
307
|
+
{
|
|
308
|
+
"value": "top",
|
|
309
|
+
"label": "上方"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"value": "bottom",
|
|
313
|
+
"label": "下方"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"value": "left",
|
|
317
|
+
"label": "左侧"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"value": "right",
|
|
321
|
+
"label": "右侧"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"legend": {
|
|
326
|
+
"title": "图例位置",
|
|
327
|
+
"type": "string",
|
|
328
|
+
"default": "bottom",
|
|
329
|
+
"x-category": "基础属性",
|
|
330
|
+
"x-index": 150,
|
|
331
|
+
"x-platforms": [
|
|
332
|
+
"MOBILEWEB",
|
|
333
|
+
"MP"
|
|
334
|
+
],
|
|
335
|
+
"enum": [
|
|
336
|
+
{
|
|
337
|
+
"value": "top",
|
|
338
|
+
"label": "上方"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"value": "bottom",
|
|
342
|
+
"label": "下方"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
"dataTagShow": {
|
|
347
|
+
"x-index": 160,
|
|
348
|
+
"x-category": "高级属性",
|
|
349
|
+
"x-component": "sub-category-title",
|
|
350
|
+
"x-component-props": {
|
|
351
|
+
"text": "数据标签"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"isSeriesShowSymbol": {
|
|
355
|
+
"title": "显示数值",
|
|
356
|
+
"type": "boolean",
|
|
357
|
+
"x-index": 170,
|
|
358
|
+
"default": true,
|
|
359
|
+
"x-category": "高级属性"
|
|
360
|
+
},
|
|
361
|
+
"isPercent": {
|
|
362
|
+
"title": "显示百分比",
|
|
363
|
+
"type": "boolean",
|
|
364
|
+
"x-index": 180,
|
|
365
|
+
"default": false,
|
|
366
|
+
"x-category": "高级属性"
|
|
367
|
+
},
|
|
368
|
+
"unitShow": {
|
|
369
|
+
"x-index": 190,
|
|
370
|
+
"x-category": "高级属性",
|
|
371
|
+
"x-component": "sub-category-title",
|
|
372
|
+
"x-component-props": {
|
|
373
|
+
"text": "显示单位"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"isUnit": {
|
|
377
|
+
"title": "显示单位",
|
|
378
|
+
"type": "boolean",
|
|
379
|
+
"x-index": 200,
|
|
380
|
+
"default": false,
|
|
381
|
+
"x-category": "高级属性",
|
|
382
|
+
"x-linkages": [
|
|
383
|
+
{
|
|
384
|
+
"type": "value:visible",
|
|
385
|
+
"target": "*(unit,decimalDigits,suffix)",
|
|
386
|
+
"condition": "{{ $self.value }}"
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
"unit": {
|
|
391
|
+
"type": "number",
|
|
392
|
+
"title": "数值量级",
|
|
393
|
+
"default": 1,
|
|
394
|
+
"x-category": "高级属性",
|
|
395
|
+
"x-index": 210,
|
|
396
|
+
"enum": [
|
|
397
|
+
{
|
|
398
|
+
"label": "个",
|
|
399
|
+
"value": 1
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"label": "十",
|
|
403
|
+
"value": 10
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"label": "百",
|
|
407
|
+
"value": 100
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"label": "千",
|
|
411
|
+
"value": 1000
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"label": "万",
|
|
415
|
+
"value": 10000
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"label": "十万",
|
|
419
|
+
"value": 100000
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"label": "百万",
|
|
423
|
+
"value": 1000000
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"label": "千万",
|
|
427
|
+
"value": 10000000
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"label": "亿",
|
|
431
|
+
"value": 100000000
|
|
432
|
+
}
|
|
433
|
+
],
|
|
434
|
+
"x-linkages": [
|
|
435
|
+
{
|
|
436
|
+
"type": "value:state",
|
|
437
|
+
"target": "suffix",
|
|
438
|
+
"condition": "{{ $self.inputed && $self.value!==1 }}",
|
|
439
|
+
"state": {
|
|
440
|
+
"value": "{{$self.props.enum.find(s=>s.value===$self.value) ? $self.props.enum.find(s=>s.value===$self.value).label: '' }}"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"type": "value:state",
|
|
445
|
+
"target": "suffix",
|
|
446
|
+
"condition": "{{ $self.inputed && $self.value===1 }}",
|
|
447
|
+
"state": {
|
|
448
|
+
"value": ""
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
"decimalDigits": {
|
|
454
|
+
"title": "小数位数",
|
|
455
|
+
"type": "number",
|
|
456
|
+
"default": 0,
|
|
457
|
+
"x-props": {
|
|
458
|
+
"max": 10,
|
|
459
|
+
"min": 0
|
|
460
|
+
},
|
|
461
|
+
"x-index": 220,
|
|
462
|
+
"x-category": "高级属性",
|
|
463
|
+
"x-linkages": [
|
|
464
|
+
{
|
|
465
|
+
"type": "value:state",
|
|
466
|
+
"target": "decimalDigits",
|
|
467
|
+
"condition": "{{ $self.value == '' || isNaN($self.value) || $self.value < 0 }}",
|
|
468
|
+
"state": {
|
|
469
|
+
"value": 0
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
]
|
|
473
|
+
},
|
|
474
|
+
"suffix": {
|
|
475
|
+
"title": "后缀",
|
|
476
|
+
"type": "string",
|
|
477
|
+
"default": "",
|
|
478
|
+
"x-index": 230,
|
|
479
|
+
"x-category": "高级属性"
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"events": [],
|
|
484
|
+
"meta": {
|
|
485
|
+
"title": "饼图",
|
|
486
|
+
"description": "饼图组件主要用于报表场景下表示数据在总体中的占比,支持小程序、H5 和 PC Web 端。",
|
|
487
|
+
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/PieChart.svg",
|
|
488
|
+
"category": "图表组件",
|
|
489
|
+
"componentOrder": 1,
|
|
490
|
+
"visible": [
|
|
491
|
+
"APP"
|
|
492
|
+
]
|
|
493
|
+
},
|
|
494
|
+
"configMeta": {
|
|
495
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Pie"
|
|
496
|
+
}
|
|
497
|
+
}
|
|
@@ -58,16 +58,36 @@
|
|
|
58
58
|
"x-component-props": {
|
|
59
59
|
"dataSourceNamePropKey": "dataSource",
|
|
60
60
|
"blackListConfig": {
|
|
61
|
-
"type": [
|
|
61
|
+
"type": [
|
|
62
|
+
"object",
|
|
63
|
+
"array"
|
|
64
|
+
]
|
|
62
65
|
},
|
|
63
66
|
"customRelOptions": {
|
|
64
67
|
"string": [
|
|
65
|
-
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
{
|
|
69
|
+
"text": "等于",
|
|
70
|
+
"value": "eq"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"text": "不等于",
|
|
74
|
+
"value": "neq"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"text": "包含",
|
|
78
|
+
"value": "in"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"text": "不包含",
|
|
82
|
+
"value": "nin"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"boolean": [
|
|
86
|
+
{
|
|
87
|
+
"text": "等于",
|
|
88
|
+
"value": "eq"
|
|
89
|
+
}
|
|
69
90
|
],
|
|
70
|
-
"boolean": [{ "text": "等于", "value": "eq" }],
|
|
71
91
|
"keyVarType": [
|
|
72
92
|
{
|
|
73
93
|
"value": "eq",
|
|
@@ -87,11 +107,31 @@
|
|
|
87
107
|
}
|
|
88
108
|
],
|
|
89
109
|
"number": [
|
|
90
|
-
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
110
|
+
{
|
|
111
|
+
"text": "等于",
|
|
112
|
+
"value": "eq",
|
|
113
|
+
"type": "equal"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"text": "不等于",
|
|
117
|
+
"value": "neq",
|
|
118
|
+
"type": "unequal"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"text": "小于",
|
|
122
|
+
"value": "lt",
|
|
123
|
+
"type": "less"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"text": "小于或等于",
|
|
127
|
+
"value": "lte",
|
|
128
|
+
"type": "less_or_equal"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"text": "大于",
|
|
132
|
+
"value": "gt",
|
|
133
|
+
"type": "greater"
|
|
134
|
+
},
|
|
95
135
|
{
|
|
96
136
|
"text": "大于或等于",
|
|
97
137
|
"value": "gte",
|
|
@@ -320,12 +360,20 @@
|
|
|
320
360
|
}
|
|
321
361
|
}
|
|
322
362
|
},
|
|
323
|
-
"events": [
|
|
363
|
+
"events": [
|
|
364
|
+
{
|
|
365
|
+
"title": "点击",
|
|
366
|
+
"name": "tap"
|
|
367
|
+
}
|
|
368
|
+
],
|
|
324
369
|
"meta": {
|
|
325
370
|
"title": "统计卡片",
|
|
326
|
-
"description": "
|
|
371
|
+
"description": "统计卡片组件主要提供报表场景下的指标数据统计并展示功能,支持小程序、H5 和 PC Web 端。",
|
|
327
372
|
"icon": "//qcloudimg.tencent-cloud.cn/raw/8475042e83e7cb5731983a9432de9e30.svg",
|
|
328
373
|
"category": "图表组件",
|
|
329
374
|
"componentOrder": 1
|
|
375
|
+
},
|
|
376
|
+
"configMeta": {
|
|
377
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/statisticsCard"
|
|
330
378
|
}
|
|
331
379
|
}
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"title": "容器备注",
|
|
7
7
|
"type": "string",
|
|
8
8
|
"description": "鼠标 hover 后的提示",
|
|
9
|
-
"x-platforms": [
|
|
9
|
+
"x-platforms": [
|
|
10
|
+
"PCWEB"
|
|
11
|
+
]
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
},
|
|
@@ -40,8 +42,11 @@
|
|
|
40
42
|
"meta": {
|
|
41
43
|
"title": "普通容器",
|
|
42
44
|
"category": "布局容器",
|
|
43
|
-
"description": "
|
|
45
|
+
"description": "容器中可放入多个组件,常用于在前端中对页面布局进行管理的场景。 同时也可以通过容器组件绑定数据对容器内的组件进行循环遍历。",
|
|
44
46
|
"componentOrder": 1000,
|
|
45
47
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Container.svg"
|
|
48
|
+
},
|
|
49
|
+
"configMeta": {
|
|
50
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/Container"
|
|
46
51
|
}
|
|
47
52
|
}
|
|
@@ -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": "dataView"
|
|
33
|
+
},
|
|
34
|
+
"x-props": {
|
|
35
|
+
"data-hidebind": true
|
|
36
|
+
},
|
|
33
37
|
"x-linkages": [
|
|
34
38
|
{
|
|
35
39
|
"type": "value:schema",
|
|
@@ -64,8 +68,16 @@
|
|
|
64
68
|
}
|
|
65
69
|
],
|
|
66
70
|
"blackListConfig": {
|
|
67
|
-
"format": [
|
|
68
|
-
|
|
71
|
+
"format": [
|
|
72
|
+
"related",
|
|
73
|
+
"father-son",
|
|
74
|
+
"x-file",
|
|
75
|
+
"x-image"
|
|
76
|
+
],
|
|
77
|
+
"type": [
|
|
78
|
+
"object",
|
|
79
|
+
"array"
|
|
80
|
+
]
|
|
69
81
|
},
|
|
70
82
|
"customRelOptions": {
|
|
71
83
|
"number": [
|
|
@@ -130,10 +142,13 @@
|
|
|
130
142
|
},
|
|
131
143
|
"isContainer": true,
|
|
132
144
|
"meta": {
|
|
133
|
-
"title": "
|
|
145
|
+
"title": "数据详情",
|
|
134
146
|
"category": "数据容器",
|
|
135
|
-
"description": "
|
|
147
|
+
"description": "适用于以展示多条数据详细内容的场景,不借助变量绑定,即可获取数据模型中的数据。",
|
|
136
148
|
"componentOrder": 1000,
|
|
137
149
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/DataView.svg"
|
|
150
|
+
},
|
|
151
|
+
"configMeta": {
|
|
152
|
+
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/DataView"
|
|
138
153
|
}
|
|
139
154
|
}
|