@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.
Files changed (194) hide show
  1. package/README.md +41 -169
  2. package/package.json +23 -11
  3. package/src/configs/components/calendar.json +4 -1
  4. package/src/configs/components/chart/bar.json +724 -0
  5. package/src/configs/components/chart/line.json +679 -0
  6. package/src/configs/components/chart/pie.json +497 -0
  7. package/src/configs/components/chart/statisticsCard.json +61 -13
  8. package/src/configs/components/container.json +7 -2
  9. package/src/configs/components/dataView.json +21 -6
  10. package/src/configs/components/form/checkbox.json +97 -5
  11. package/src/configs/components/form/radio.json +96 -4
  12. package/src/configs/components/form/select.json +245 -11
  13. package/src/configs/components/graphicCard.json +84 -73
  14. package/src/configs/components/image.json +7 -2
  15. package/src/configs/components/link.json +19 -3
  16. package/src/configs/components/listView.json +65 -18
  17. package/src/configs/components/lottery.json +151 -0
  18. package/src/configs/components/modal.json +37 -5
  19. package/src/configs/components/navLayout.json +87 -75
  20. package/src/configs/components/navigationBar.json +59 -0
  21. package/src/configs/components/richtextview.json +4 -1
  22. package/src/configs/components/scrollVeiw.json +74 -22
  23. package/src/configs/components/swiper.json +4 -1
  24. package/src/configs/components/tabs.json +51 -8
  25. package/src/configs/components/text.json +33 -25
  26. package/src/configs/components/wxOpenApi/phone.json +141 -0
  27. package/src/configs/components/wxOpenApi/phoneCode.json +121 -0
  28. package/src/configs/components/wxOpenApi/share.json +167 -0
  29. package/src/configs/components/wxOpenApi/userInfo.json +174 -0
  30. package/src/configs/index.js +20 -0
  31. package/src/index.js +2 -0
  32. package/src/mp/components/button/index.wxml +1 -2
  33. package/src/mp/components/chart/bar/index.js +258 -0
  34. package/src/mp/components/chart/bar/index.json +6 -0
  35. package/src/mp/components/chart/bar/index.wxml +3 -0
  36. package/src/mp/components/chart/bar/index.wxss +9 -0
  37. package/src/mp/components/chart/common/config/bar.js +50 -0
  38. package/src/mp/components/chart/common/config/global.js +16 -0
  39. package/src/mp/components/chart/common/config/line.js +48 -0
  40. package/src/mp/components/chart/common/config/pie.js +36 -0
  41. package/src/mp/components/chart/common/core/eChartBar.js +263 -0
  42. package/src/mp/components/chart/common/core/eChartBase.js +375 -0
  43. package/src/mp/components/chart/common/core/eChartLine.js +229 -0
  44. package/src/mp/components/chart/common/core/eChartPie.js +166 -0
  45. package/src/mp/components/chart/common/lib/echarts.min.js +18 -0
  46. package/src/mp/components/chart/ec-canvas/ec-canvas.js +277 -0
  47. package/src/mp/components/chart/ec-canvas/ec-canvas.json +4 -0
  48. package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +4 -0
  49. package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +4 -0
  50. package/src/mp/components/chart/ec-canvas/wx-canvas.js +107 -0
  51. package/src/mp/components/chart/line/index.js +247 -0
  52. package/src/mp/components/chart/line/index.json +6 -0
  53. package/src/mp/components/chart/line/index.wxml +3 -0
  54. package/src/mp/components/chart/line/index.wxss +9 -0
  55. package/src/mp/components/chart/pie/index.js +182 -0
  56. package/src/mp/components/chart/pie/index.json +6 -0
  57. package/src/mp/components/chart/pie/index.wxml +4 -0
  58. package/src/mp/components/chart/pie/index.wxss +9 -0
  59. package/src/mp/components/chart/statisticsCard/index.js +33 -6
  60. package/src/mp/components/form/checkbox/index.js +41 -2
  61. package/src/mp/components/form/checkbox/index.wxml +1 -1
  62. package/src/mp/components/form/form/index.wxml +1 -2
  63. package/src/mp/components/form/input/index.js +1 -1
  64. package/src/mp/components/form/location/index.js +43 -2
  65. package/src/mp/components/form/radio/index.js +38 -0
  66. package/src/mp/components/form/select/index.js +348 -40
  67. package/src/mp/components/form/select/index.wxml +21 -6
  68. package/src/mp/components/form/select/region/index.js +101 -0
  69. package/src/mp/components/form/textarea/index.wxml +6 -5
  70. package/src/mp/components/form/uploader/index.js +76 -44
  71. package/src/mp/components/form/uploader/index.wxml +15 -3
  72. package/src/mp/components/form/uploaderFile/index.js +61 -29
  73. package/src/mp/components/graphicCard/index.js +26 -28
  74. package/src/mp/components/listView/index.js +52 -64
  75. package/src/mp/components/listView/index.wxml +2 -2
  76. package/src/mp/components/listView/index.wxss +5 -0
  77. package/src/mp/components/lottery/index.js +270 -0
  78. package/src/mp/components/lottery/index.json +4 -0
  79. package/src/mp/components/lottery/index.wxml +43 -0
  80. package/src/mp/components/lottery/index.wxss +317 -0
  81. package/src/mp/components/navLayout/index.js +3 -3
  82. package/src/mp/components/navigationBar/index.js +193 -0
  83. package/src/mp/components/navigationBar/index.json +6 -0
  84. package/src/mp/components/navigationBar/index.wxml +88 -0
  85. package/src/mp/components/navigationBar/index.wxss +1257 -0
  86. package/src/mp/components/tabs/index.js +7 -2
  87. package/src/mp/components/tabs/index.wxml +2 -1
  88. package/src/mp/components/text/index.js +0 -25
  89. package/src/mp/components/text/index.wxml +3 -3
  90. package/src/mp/components/wxOpenApi/phone/index.js +117 -0
  91. package/src/mp/components/wxOpenApi/phone/index.json +4 -0
  92. package/src/mp/components/wxOpenApi/phone/index.wxml +15 -0
  93. package/src/mp/components/wxOpenApi/phone/index.wxss +22 -0
  94. package/src/mp/components/wxOpenApi/phoneCode/index.js +89 -0
  95. package/src/mp/components/wxOpenApi/phoneCode/index.json +4 -0
  96. package/src/mp/components/wxOpenApi/phoneCode/index.wxml +15 -0
  97. package/src/mp/components/wxOpenApi/phoneCode/index.wxss +22 -0
  98. package/src/mp/components/wxOpenApi/share/index.js +117 -0
  99. package/src/mp/components/wxOpenApi/share/index.json +4 -0
  100. package/src/mp/components/wxOpenApi/share/index.wxml +15 -0
  101. package/src/mp/components/wxOpenApi/share/index.wxss +22 -0
  102. package/src/mp/components/wxOpenApi/userInfo/index.js +88 -0
  103. package/src/mp/components/wxOpenApi/userInfo/index.json +4 -0
  104. package/src/mp/components/wxOpenApi/userInfo/index.wxml +14 -0
  105. package/src/mp/components/wxOpenApi/userInfo/index.wxss +22 -0
  106. package/src/mp/index.json +10 -1
  107. package/src/mp/style/weda-ui.wxss +2 -0
  108. package/src/mp/utils/constant.js +15 -0
  109. package/src/mp/utils/destr.js +48 -0
  110. package/src/mp/utils/lodash.js +2 -0
  111. package/src/mp/utils/platform.js +25 -0
  112. package/src/mp/utils/tcb.js +44 -0
  113. package/src/setupTests.js +2 -1
  114. package/src/web/components/button/index.css +8 -1
  115. package/src/web/components/button/index.tsx +3 -2
  116. package/src/web/components/chart/bar/index.tsx +140 -0
  117. package/src/web/components/chart/common/config/bar.js +49 -0
  118. package/src/web/components/chart/common/config/global.js +16 -0
  119. package/src/web/components/chart/common/config/line.js +50 -0
  120. package/src/web/components/chart/common/config/pie.js +37 -0
  121. package/src/web/components/chart/common/core/eChartBar.js +265 -0
  122. package/src/web/components/chart/common/core/eChartBase.ts +383 -0
  123. package/src/web/components/chart/common/core/eChartLine.js +231 -0
  124. package/src/web/components/chart/common/core/eChartPie.js +170 -0
  125. package/src/web/components/chart/common/core/type.ts +34 -0
  126. package/src/web/components/chart/common/echart.css +106 -0
  127. package/src/web/components/chart/common/echarts.ts +33 -0
  128. package/src/web/components/chart/common/useChart.tsx +69 -0
  129. package/src/web/components/chart/line/index.tsx +136 -0
  130. package/src/web/components/chart/pie/index.tsx +99 -0
  131. package/src/web/components/chart/statisticsCard/index.tsx +29 -8
  132. package/src/web/components/form/checkbox/index.tsx +61 -23
  133. package/src/web/components/form/formcell/index.tsx +10 -5
  134. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +3 -3
  135. package/src/web/components/form/location/components/LocationPC/location.PC.jsx +2 -2
  136. package/src/web/components/form/radio/index.tsx +90 -53
  137. package/src/web/components/form/select/h5.tsx +371 -72
  138. package/src/web/components/form/select/index.css +10 -0
  139. package/src/web/components/form/select/index.tsx +392 -145
  140. package/src/web/components/form/select/region/index.ts +122 -31
  141. package/src/web/components/form/select/time.jsx +90 -0
  142. package/src/web/components/form/select/year.tsx +170 -0
  143. package/src/web/components/form/tips/index.css +4 -0
  144. package/src/web/components/form/tips/index.tsx +4 -3
  145. package/src/web/components/form/uploader/uploader.h5.tsx +28 -19
  146. package/src/web/components/form/uploader/uploader.pc.tsx +17 -20
  147. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +48 -44
  148. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +28 -26
  149. package/src/web/components/graphicCard/index.css +1 -5
  150. package/src/web/components/graphicCard/index.tsx +4 -3
  151. package/src/web/components/image/image.tsx +1 -1
  152. package/src/web/components/image/index.tsx +1 -1
  153. package/src/web/components/index.js +13 -2
  154. package/src/web/components/link/index.tsx +6 -3
  155. package/src/web/components/listView/index.css +4 -0
  156. package/src/web/components/listView/index.tsx +10 -18
  157. package/src/web/components/lottery/index.css +327 -0
  158. package/src/web/components/lottery/index.tsx +567 -0
  159. package/src/web/components/lottery/lotteryUtil.ts +130 -0
  160. package/src/web/components/modal/index.tsx +3 -1
  161. package/src/web/components/navigationBar/chevron-right--double.svg +3 -0
  162. package/src/web/components/navigationBar/common.tsx +198 -0
  163. package/src/web/components/navigationBar/h5Menu.tsx +179 -0
  164. package/src/web/components/navigationBar/horizontalMenu.tsx +200 -0
  165. package/src/web/components/navigationBar/index.css +762 -0
  166. package/src/web/components/navigationBar/index.tsx +231 -0
  167. package/src/web/components/navigationBar/type.d.ts +111 -0
  168. package/src/web/components/navigationBar/verticalMenu.tsx +81 -0
  169. package/src/web/components/phone/index.css +0 -0
  170. package/src/web/components/phone/index.tsx +22 -0
  171. package/src/web/components/phoneCode/index.css +0 -0
  172. package/src/web/components/phoneCode/index.tsx +22 -0
  173. package/src/web/components/richTextView/index.tsx +3 -5
  174. package/src/web/components/share/index.css +0 -0
  175. package/src/web/components/share/index.tsx +38 -0
  176. package/src/web/components/tabs/index.tsx +2 -0
  177. package/src/web/components/tabs/tabs.h5.tsx +43 -33
  178. package/src/web/components/tabs/tabs.pc.tsx +23 -10
  179. package/src/web/components/text/index.tsx +6 -14
  180. package/src/web/components/userInfo/index.css +0 -0
  181. package/src/web/components/userInfo/index.tsx +30 -0
  182. package/src/web/utils/{constant.js → constant.ts} +17 -2
  183. package/src/web/utils/lodash.ts +2 -0
  184. package/src/web/utils/platform.js +10 -1
  185. package/src/web/utils/tcb.js +20 -6
  186. package/src/web/weda-ui.css +2 -0
  187. package/CHANGELOG.md +0 -240
  188. package/src/.DS_Store +0 -0
  189. package/src/configs/.DS_Store +0 -0
  190. package/src/mp/.gitignore +0 -10
  191. package/src/web/.DS_Store +0 -0
  192. package/src/web/components/form/select/region/cities.ts +0 -2410
  193. package/src/web/components/form/select/region/provinces.ts +0 -240
  194. package/src/web/components/form/select/region/regions.ts +0 -20645
@@ -0,0 +1,679 @@
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": "line",
10
+ "x-component": "radio",
11
+ "x-index": 10,
12
+ "enum": [
13
+ {
14
+ "label": "折线",
15
+ "value": "line"
16
+ },
17
+ {
18
+ "label": "曲线",
19
+ "value": "bight"
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
+ "type": "string",
39
+ "default": "折线图标题",
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,groupKeyTimeSpan)",
76
+ "condition": "{{ $self.value.type ==='database' }}"
77
+ },
78
+ {
79
+ "type": "value:state",
80
+ "condition": "{{ !!$self.value }}",
81
+ "target": "yField",
82
+ "state": {
83
+ "__datasourceName": "{{$self.value.name}}"
84
+ }
85
+ }
86
+ ]
87
+ },
88
+ "filterData": {
89
+ "title": "数据筛选",
90
+ "x-index": 50,
91
+ "x-component": "condition-select",
92
+ "x-component-props": {
93
+ "dataSourceNamePropKey": "dataSource",
94
+ "customRelOptions": {
95
+ "string": [
96
+ {
97
+ "value": "eq",
98
+ "text": "等于"
99
+ },
100
+ {
101
+ "value": "neq",
102
+ "text": "不等于"
103
+ },
104
+ {
105
+ "value": "in",
106
+ "text": "包含"
107
+ },
108
+ {
109
+ "value": "nin",
110
+ "text": "不包含"
111
+ }
112
+ ],
113
+ "boolean": [
114
+ {
115
+ "value": "eq",
116
+ "text": "等于"
117
+ }
118
+ ],
119
+ "number": [
120
+ {
121
+ "value": "eq",
122
+ "text": "等于",
123
+ "type": "equal"
124
+ },
125
+ {
126
+ "value": "neq",
127
+ "text": "不等于",
128
+ "type": "unequal"
129
+ },
130
+ {
131
+ "value": "gt",
132
+ "text": "大于",
133
+ "type": "greater"
134
+ },
135
+ {
136
+ "value": "gte",
137
+ "text": "大于等于",
138
+ "type": "greater_or_equal"
139
+ },
140
+ {
141
+ "value": "lt",
142
+ "text": "小于",
143
+ "type": "less"
144
+ },
145
+ {
146
+ "value": "lte",
147
+ "text": "小于等于",
148
+ "type": "less_or_equal"
149
+ }
150
+ ],
151
+ "array": [
152
+ {
153
+ "value": "eq",
154
+ "text": "等于"
155
+ },
156
+ {
157
+ "value": "in",
158
+ "text": "包含"
159
+ }
160
+ ],
161
+ "object": [
162
+ {
163
+ "value": "eq",
164
+ "text": "等于"
165
+ },
166
+ {
167
+ "value": "in",
168
+ "text": "包含"
169
+ }
170
+ ],
171
+ "keyVarType": [
172
+ {
173
+ "value": "eq",
174
+ "text": "等于"
175
+ },
176
+ {
177
+ "value": "neq",
178
+ "text": "不等于"
179
+ },
180
+ {
181
+ "value": "gt",
182
+ "text": "大于"
183
+ },
184
+ {
185
+ "value": "lt",
186
+ "text": "小于"
187
+ }
188
+ ]
189
+ }
190
+ },
191
+ "x-props": {
192
+ "data-hidebind": true,
193
+ "data-hideBindValue": true,
194
+ "data-withBindMeta": true
195
+ }
196
+ },
197
+ "xFieldShow": {
198
+ "x-index": 60,
199
+ "x-category": "基础属性",
200
+ "x-component": "sub-category-title",
201
+ "x-component-props": {
202
+ "text": "维度(X轴)"
203
+ }
204
+ },
205
+ "xField": {
206
+ "type": "object",
207
+ "title": "字段选择",
208
+ "x-index": 70,
209
+ "x-category": "基础属性",
210
+ "x-component": "data-source-field-select",
211
+ "x-datasource-method-reset": "",
212
+ "x-component-props": {
213
+ "dataSourceNamePropKey": "dataSource",
214
+ "isMethod": true,
215
+ "disabledTypes": [
216
+ "time"
217
+ ]
218
+ },
219
+ "x-linkages": [
220
+ {
221
+ "type": "value:schema",
222
+ "condition": "{{ !!$self.value }}",
223
+ "target": "xStatistics",
224
+ "schema": {
225
+ "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'}]: []) }}"
226
+ }
227
+ },
228
+ {
229
+ "type": "value:state",
230
+ "target": "xStatistics",
231
+ "condition": "{{ !!$self.value }}",
232
+ "state": {
233
+ "value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
234
+ }
235
+ },
236
+ {
237
+ "type": "value:visible",
238
+ "target": "*(xStatistics)",
239
+ "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
240
+ },
241
+ {
242
+ "type": "value:visible",
243
+ "target": "*(xIsCountEmpty)",
244
+ "condition": "{{ $self.value && ($self.value.format !=='datetime' && $self.value.format !=='date') }}"
245
+ }
246
+ ]
247
+ },
248
+ "xStatistics": {
249
+ "title": "统计维度",
250
+ "type": "string",
251
+ "x-category": "基础属性",
252
+ "x-index": 80,
253
+ "enum": []
254
+ },
255
+ "xIsCountEmpty": {
256
+ "title": "统计空值",
257
+ "type": "boolean",
258
+ "default": false,
259
+ "x-index": 90
260
+ },
261
+ "yFieldSubTitle": {
262
+ "x-index": 95,
263
+ "x-component": "sub-category-title",
264
+ "x-component-props": {
265
+ "text": "数值(Y轴)"
266
+ }
267
+ },
268
+ "yField": {
269
+ "type": "object",
270
+ "title": "字段选择",
271
+ "x-index": 100,
272
+ "x-category": "基础属性",
273
+ "x-component": "chart-y-field-select",
274
+ "x-component-props": {
275
+ "isMethod": true,
276
+ "dataSourceNamePropKey": "dataSource"
277
+ },
278
+ "x-linkages": [
279
+ {
280
+ "type": "value:visible",
281
+ "target": "*(groupKey)",
282
+ "condition": "{{ (!$self.value || !$self.value.numValue || $self.value.numValue.length<=1) && !!$self.__datasourceName }}"
283
+ }
284
+ ],
285
+ "x-datasource-method-reset": {}
286
+ },
287
+ "groupKey": {
288
+ "type": "object",
289
+ "title": "分组",
290
+ "x-index": 110,
291
+ "x-category": "基础属性",
292
+ "x-component": "data-source-field-select",
293
+ "x-datasource-method-reset": "",
294
+ "x-component-props": {
295
+ "dataSourceNamePropKey": "dataSource",
296
+ "isMethod": true,
297
+ "clearable": true
298
+ },
299
+ "x-linkages": [
300
+ {
301
+ "type": "value:state",
302
+ "target": "groupKeyTimeSpan",
303
+ "condition": "{{ !!$self.value }}",
304
+ "state": {
305
+ "value": "{{$self.value.format ==='datetime' ? 'y':$self.value.format ==='date'?'y':''}}"
306
+ }
307
+ },
308
+ {
309
+ "type": "value:visible",
310
+ "target": "*(groupKeyTimeSpan)",
311
+ "condition": "{{ $self.value && ($self.value.format ==='datetime' || $self.value.format ==='date') }}"
312
+ },
313
+ {
314
+ "type": "value:schema",
315
+ "condition": "{{ !!$self.value }}",
316
+ "target": "groupKeyTimeSpan",
317
+ "schema": {
318
+ "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'}]: []) }}"
319
+ }
320
+ }
321
+ ]
322
+ },
323
+ "groupKeyTimeSpan": {
324
+ "title": "分组维度",
325
+ "type": "string",
326
+ "x-category": "基础属性",
327
+ "x-index": 120,
328
+ "enum": []
329
+ },
330
+ "legendShow": {
331
+ "x-index": 130,
332
+ "x-category": "基础属性",
333
+ "x-component": "sub-category-title",
334
+ "x-component-props": {
335
+ "text": "图例"
336
+ }
337
+ },
338
+ "isLegend": {
339
+ "title": "显示图例",
340
+ "type": "boolean",
341
+ "default": true,
342
+ "x-category": "基础属性",
343
+ "x-index": 140,
344
+ "x-linkages": [
345
+ {
346
+ "type": "value:visible",
347
+ "target": "*(legend)",
348
+ "condition": "{{ $self.value }}"
349
+ }
350
+ ]
351
+ },
352
+ "legend2": {
353
+ "title": "图例位置",
354
+ "type": "string",
355
+ "default": "bottom",
356
+ "x-category": "基础属性",
357
+ "x-index": 150,
358
+ "x-platforms": [
359
+ "PCWEB"
360
+ ],
361
+ "enum": [
362
+ {
363
+ "value": "top",
364
+ "label": "上方"
365
+ },
366
+ {
367
+ "value": "bottom",
368
+ "label": "下方"
369
+ },
370
+ {
371
+ "value": "left",
372
+ "label": "左侧"
373
+ },
374
+ {
375
+ "value": "right",
376
+ "label": "右侧"
377
+ }
378
+ ],
379
+ "display": false
380
+ },
381
+ "legend": {
382
+ "title": "图例位置",
383
+ "type": "string",
384
+ "default": "bottom",
385
+ "x-category": "基础属性",
386
+ "x-index": 160,
387
+ "x-platforms": [
388
+ "MOBILEWEB",
389
+ "MP"
390
+ ],
391
+ "enum": [
392
+ {
393
+ "value": "top",
394
+ "label": "上方"
395
+ },
396
+ {
397
+ "value": "bottom",
398
+ "label": "下方"
399
+ }
400
+ ]
401
+ },
402
+ "xFieldShowHight": {
403
+ "x-index": 170,
404
+ "x-category": "高级属性",
405
+ "x-component": "sub-category-title",
406
+ "x-component-props": {
407
+ "text": "维度(X轴)"
408
+ }
409
+ },
410
+ "isXaxisName": {
411
+ "title": "显示坐标轴名称",
412
+ "type": "boolean",
413
+ "default": true,
414
+ "x-index": 180,
415
+ "x-category": "高级属性",
416
+ "x-linkages": [
417
+ {
418
+ "type": "value:visible",
419
+ "target": "*(xAxisName)",
420
+ "condition": "{{ $self.value }}"
421
+ }
422
+ ]
423
+ },
424
+ "xAxisName": {
425
+ "title": "名称",
426
+ "type": "string",
427
+ "default": "",
428
+ "x-category": "高级属性",
429
+ "x-index": 190
430
+ },
431
+ "isXaxisAxisLabelShow": {
432
+ "title": "显示标签",
433
+ "type": "boolean",
434
+ "x-index": 200,
435
+ "default": true,
436
+ "x-category": "高级属性"
437
+ },
438
+ "isXaxisAxisTickShow": {
439
+ "title": "显示X轴刻度线",
440
+ "type": "boolean",
441
+ "x-index": 210,
442
+ "default": true,
443
+ "x-category": "高级属性"
444
+ },
445
+ "isXaxisAxisLabelRotate": {
446
+ "title": "文字自动倾斜",
447
+ "type": "boolean",
448
+ "x-index": 220,
449
+ "default": false,
450
+ "x-category": "高级属性"
451
+ },
452
+ "yFieldShow": {
453
+ "x-index": 230,
454
+ "x-category": "高级属性",
455
+ "x-component": "sub-category-title",
456
+ "x-component-props": {
457
+ "text": "数值(Y轴)"
458
+ }
459
+ },
460
+ "isYAxisSplitlineLinestyleWidth": {
461
+ "title": "显示网格线",
462
+ "type": "boolean",
463
+ "x-index": 240,
464
+ "default": true,
465
+ "x-category": "高级属性",
466
+ "x-linkages": [
467
+ {
468
+ "type": "value:visible",
469
+ "target": "*(yAxisSplitlineLinestyleType)",
470
+ "condition": "{{ $self.value }}"
471
+ }
472
+ ]
473
+ },
474
+ "yAxisSplitlineLinestyleType": {
475
+ "title": "网格线线条",
476
+ "type": "string",
477
+ "default": "solid",
478
+ "x-category": "高级属性",
479
+ "x-index": 250,
480
+ "enum": [
481
+ {
482
+ "value": "solid",
483
+ "label": "实线"
484
+ },
485
+ {
486
+ "value": "dashed",
487
+ "label": "虚线"
488
+ },
489
+ {
490
+ "value": "dotted",
491
+ "label": "点线"
492
+ }
493
+ ]
494
+ },
495
+ "yAxisMax": {
496
+ "title": "最大值",
497
+ "type": "number",
498
+ "x-index": 260,
499
+ "x-category": "高级属性"
500
+ },
501
+ "yAxisMin": {
502
+ "title": "最小值",
503
+ "type": "number",
504
+ "x-index": 270,
505
+ "x-category": "高级属性"
506
+ },
507
+ "isYAxisName": {
508
+ "title": "显示Y轴名称",
509
+ "type": "boolean",
510
+ "x-index": 280,
511
+ "default": true,
512
+ "x-category": "高级属性",
513
+ "x-linkages": [
514
+ {
515
+ "type": "value:visible",
516
+ "target": "*(yAxisName)",
517
+ "condition": "{{ $self.value }}"
518
+ }
519
+ ]
520
+ },
521
+ "yAxisName": {
522
+ "title": "名称",
523
+ "type": "string",
524
+ "default": "",
525
+ "x-category": "高级属性",
526
+ "x-index": 290
527
+ },
528
+ "isYAxisShow": {
529
+ "title": "显示数值",
530
+ "type": "boolean",
531
+ "x-index": 300,
532
+ "default": true,
533
+ "x-category": "高级属性"
534
+ },
535
+ "dataTagShow": {
536
+ "x-index": 310,
537
+ "x-category": "高级属性",
538
+ "x-component": "sub-category-title",
539
+ "x-component-props": {
540
+ "text": "数据标签"
541
+ }
542
+ },
543
+ "isSeriesShowSymbol": {
544
+ "title": "显示数值",
545
+ "type": "boolean",
546
+ "x-index": 320,
547
+ "default": true,
548
+ "x-category": "高级属性"
549
+ },
550
+ "unitShow": {
551
+ "x-index": 330,
552
+ "x-category": "高级属性",
553
+ "x-component": "sub-category-title",
554
+ "x-component-props": {
555
+ "text": "显示单位"
556
+ }
557
+ },
558
+ "isUnit": {
559
+ "title": "显示单位",
560
+ "type": "boolean",
561
+ "x-index": 340,
562
+ "default": false,
563
+ "x-category": "高级属性",
564
+ "x-linkages": [
565
+ {
566
+ "type": "value:visible",
567
+ "target": "*(unit,decimalDigits,suffix)",
568
+ "condition": "{{ $self.value }}"
569
+ }
570
+ ]
571
+ },
572
+ "unit": {
573
+ "type": "number",
574
+ "title": "数值量级",
575
+ "x-category": "高级属性",
576
+ "x-index": 350,
577
+ "default": 1,
578
+ "enum": [
579
+ {
580
+ "label": "个",
581
+ "value": 1
582
+ },
583
+ {
584
+ "label": "十",
585
+ "value": 10
586
+ },
587
+ {
588
+ "label": "百",
589
+ "value": 100
590
+ },
591
+ {
592
+ "label": "千",
593
+ "value": 1000
594
+ },
595
+ {
596
+ "label": "万",
597
+ "value": 10000
598
+ },
599
+ {
600
+ "label": "十万",
601
+ "value": 100000
602
+ },
603
+ {
604
+ "label": "百万",
605
+ "value": 1000000
606
+ },
607
+ {
608
+ "label": "千万",
609
+ "value": 10000000
610
+ },
611
+ {
612
+ "label": "亿",
613
+ "value": 100000000
614
+ }
615
+ ],
616
+ "x-linkages": [
617
+ {
618
+ "type": "value:state",
619
+ "target": "suffix",
620
+ "condition": "{{ $self.inputed && $self.value!==1 }}",
621
+ "state": {
622
+ "value": "{{$self.props.enum.find(s=>s.value===$self.value) ? $self.props.enum.find(s=>s.value===$self.value).label: '' }}"
623
+ }
624
+ },
625
+ {
626
+ "type": "value:state",
627
+ "target": "suffix",
628
+ "condition": "{{ $self.inputed && $self.value===1 }}",
629
+ "state": {
630
+ "value": ""
631
+ }
632
+ }
633
+ ]
634
+ },
635
+ "decimalDigits": {
636
+ "title": "小数位数",
637
+ "type": "number",
638
+ "default": 0,
639
+ "x-props": {
640
+ "max": 10,
641
+ "min": 0
642
+ },
643
+ "x-index": 360,
644
+ "x-category": "高级属性",
645
+ "x-linkages": [
646
+ {
647
+ "type": "value:state",
648
+ "target": "decimalDigits",
649
+ "condition": "{{ $self.value == '' || isNaN($self.value) || $self.value < 0 }}",
650
+ "state": {
651
+ "value": 0
652
+ }
653
+ }
654
+ ]
655
+ },
656
+ "suffix": {
657
+ "title": "后缀",
658
+ "type": "string",
659
+ "default": "",
660
+ "x-index": 370,
661
+ "x-category": "高级属性"
662
+ }
663
+ }
664
+ },
665
+ "events": [],
666
+ "meta": {
667
+ "title": "折线图",
668
+ "description": "折线图组件主要用于报表场景下展示数据随时间变化产生的趋势,支持小程序、H5 和 PC Web 端。",
669
+ "icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/LineChart.svg",
670
+ "category": "图表组件",
671
+ "componentOrder": 1,
672
+ "visible": [
673
+ "APP"
674
+ ]
675
+ },
676
+ "configMeta": {
677
+ "docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Line"
678
+ }
679
+ }