@next-bricks/data-view 1.3.0 → 1.3.1

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.
@@ -126,6 +126,98 @@
126
126
  "description": "现代风页面标题",
127
127
  "category": "big-screen-content"
128
128
  },
129
+ {
130
+ "name": "data-view.tabs-drawer",
131
+ "properties": [
132
+ {
133
+ "name": "tabList",
134
+ "description": "",
135
+ "required": true,
136
+ "default": "-",
137
+ "attribute": false,
138
+ "type": "TabItem[]"
139
+ },
140
+ {
141
+ "name": "activeKey",
142
+ "description": "",
143
+ "required": true,
144
+ "default": "-",
145
+ "type": "string"
146
+ },
147
+ {
148
+ "name": "width",
149
+ "description": "",
150
+ "attribute": false,
151
+ "type": "number | string"
152
+ },
153
+ {
154
+ "name": "drawerStyle",
155
+ "description": "",
156
+ "attribute": false,
157
+ "type": "React.CSSProperties"
158
+ },
159
+ {
160
+ "name": "bodyStyle",
161
+ "description": "",
162
+ "attribute": false,
163
+ "type": "React.CSSProperties"
164
+ },
165
+ {
166
+ "name": "zIndex",
167
+ "description": "",
168
+ "type": "number"
169
+ },
170
+ {
171
+ "name": "visible",
172
+ "description": "",
173
+ "type": "boolean"
174
+ }
175
+ ],
176
+ "events": [
177
+ {
178
+ "name": "open",
179
+ "description": "",
180
+ "detail": {
181
+ "description": null,
182
+ "type": "void"
183
+ }
184
+ },
185
+ {
186
+ "name": "close",
187
+ "description": "",
188
+ "detail": {
189
+ "description": null,
190
+ "type": "void"
191
+ }
192
+ },
193
+ {
194
+ "name": "tab.change",
195
+ "description": "",
196
+ "detail": {
197
+ "description": "`string`",
198
+ "type": "string"
199
+ }
200
+ }
201
+ ],
202
+ "slots": [],
203
+ "methods": [
204
+ {
205
+ "name": "open",
206
+ "params": [],
207
+ "description": "",
208
+ "returns": {}
209
+ },
210
+ {
211
+ "name": "close",
212
+ "params": [],
213
+ "description": "",
214
+ "returns": {}
215
+ }
216
+ ],
217
+ "parts": [],
218
+ "description": "大屏仪标签页抽屉",
219
+ "category": "big-screen-layout"
220
+ },
129
221
  {
130
222
  "name": "data-view.modern-style-treemap",
131
223
  "properties": [
@@ -220,98 +312,6 @@
220
312
  "description": "大屏电池",
221
313
  "category": "big-screen-content"
222
314
  },
223
- {
224
- "name": "data-view.tabs-drawer",
225
- "properties": [
226
- {
227
- "name": "tabList",
228
- "description": "",
229
- "required": true,
230
- "default": "-",
231
- "attribute": false,
232
- "type": "TabItem[]"
233
- },
234
- {
235
- "name": "activeKey",
236
- "description": "",
237
- "required": true,
238
- "default": "-",
239
- "type": "string"
240
- },
241
- {
242
- "name": "width",
243
- "description": "",
244
- "attribute": false,
245
- "type": "number | string"
246
- },
247
- {
248
- "name": "drawerStyle",
249
- "description": "",
250
- "attribute": false,
251
- "type": "React.CSSProperties"
252
- },
253
- {
254
- "name": "bodyStyle",
255
- "description": "",
256
- "attribute": false,
257
- "type": "React.CSSProperties"
258
- },
259
- {
260
- "name": "zIndex",
261
- "description": "",
262
- "type": "number"
263
- },
264
- {
265
- "name": "visible",
266
- "description": "",
267
- "type": "boolean"
268
- }
269
- ],
270
- "events": [
271
- {
272
- "name": "open",
273
- "description": "",
274
- "detail": {
275
- "description": null,
276
- "type": "void"
277
- }
278
- },
279
- {
280
- "name": "close",
281
- "description": "",
282
- "detail": {
283
- "description": null,
284
- "type": "void"
285
- }
286
- },
287
- {
288
- "name": "tab.change",
289
- "description": "",
290
- "detail": {
291
- "description": "`string`",
292
- "type": "string"
293
- }
294
- }
295
- ],
296
- "slots": [],
297
- "methods": [
298
- {
299
- "name": "open",
300
- "params": [],
301
- "description": "",
302
- "returns": {}
303
- },
304
- {
305
- "name": "close",
306
- "params": [],
307
- "description": "",
308
- "returns": {}
309
- }
310
- ],
311
- "parts": [],
312
- "description": "大屏仪标签页抽屉",
313
- "category": "big-screen-layout"
314
- },
315
315
  {
316
316
  "name": "data-view.dropdown-menu",
317
317
  "properties": [
@@ -1001,6 +1001,24 @@
1001
1001
  "description": "大屏网格背景",
1002
1002
  "category": "big-screen-layout"
1003
1003
  },
1004
+ {
1005
+ "name": "data-view.gear-background",
1006
+ "properties": [
1007
+ {
1008
+ "name": "color",
1009
+ "description": "",
1010
+ "default": "\"#3366FF\"",
1011
+ "attribute": false,
1012
+ "type": "React.CSSProperties[\"color\"]"
1013
+ }
1014
+ ],
1015
+ "events": [],
1016
+ "slots": [],
1017
+ "methods": [],
1018
+ "parts": [],
1019
+ "description": "齿轮背景",
1020
+ "category": "big-screen-layout"
1021
+ },
1004
1022
  {
1005
1023
  "name": "data-view.radar-chart",
1006
1024
  "properties": [
@@ -1084,24 +1102,6 @@
1084
1102
  "description": "雷达图",
1085
1103
  "category": "big-screen-content"
1086
1104
  },
1087
- {
1088
- "name": "data-view.gear-background",
1089
- "properties": [
1090
- {
1091
- "name": "color",
1092
- "description": "",
1093
- "default": "\"#3366FF\"",
1094
- "attribute": false,
1095
- "type": "React.CSSProperties[\"color\"]"
1096
- }
1097
- ],
1098
- "events": [],
1099
- "slots": [],
1100
- "methods": [],
1101
- "parts": [],
1102
- "description": "齿轮背景",
1103
- "category": "big-screen-layout"
1104
- },
1105
1105
  {
1106
1106
  "name": "data-view.title-text",
1107
1107
  "properties": [
package/dist/types.json CHANGED
@@ -144,145 +144,6 @@
144
144
  "events": [],
145
145
  "methods": []
146
146
  },
147
- "data-view.battery-chart": {
148
- "properties": [
149
- {
150
- "name": "value",
151
- "annotation": {
152
- "type": "keyword",
153
- "value": "number"
154
- }
155
- },
156
- {
157
- "name": "batteryWidth",
158
- "annotation": {
159
- "type": "keyword",
160
- "value": "number"
161
- }
162
- },
163
- {
164
- "name": "batteryHeight",
165
- "annotation": {
166
- "type": "keyword",
167
- "value": "number"
168
- }
169
- },
170
- {
171
- "name": "thresholdColors",
172
- "annotation": {
173
- "type": "array",
174
- "elementType": {
175
- "type": "reference",
176
- "typeName": {
177
- "type": "identifier",
178
- "name": "ThresholdColor"
179
- }
180
- }
181
- }
182
- },
183
- {
184
- "name": "thresholdValue",
185
- "annotation": {
186
- "type": "keyword",
187
- "value": "number"
188
- }
189
- }
190
- ],
191
- "events": [],
192
- "methods": [],
193
- "types": [
194
- {
195
- "type": "interface",
196
- "name": "ThresholdColor",
197
- "body": [
198
- {
199
- "type": "propertySignature",
200
- "key": {
201
- "type": "identifier",
202
- "name": "color"
203
- },
204
- "annotation": {
205
- "type": "indexedAccess",
206
- "objectType": {
207
- "type": "reference",
208
- "typeName": {
209
- "type": "qualifiedName",
210
- "left": {
211
- "type": "identifier",
212
- "name": "React"
213
- },
214
- "right": {
215
- "type": "identifier",
216
- "name": "CSSProperties"
217
- }
218
- }
219
- },
220
- "indexType": {
221
- "type": "jsLiteral",
222
- "value": "color"
223
- }
224
- },
225
- "computed": false
226
- },
227
- {
228
- "type": "propertySignature",
229
- "key": {
230
- "type": "identifier",
231
- "name": "startValue"
232
- },
233
- "annotation": {
234
- "type": "keyword",
235
- "value": "number"
236
- },
237
- "computed": false
238
- },
239
- {
240
- "type": "propertySignature",
241
- "key": {
242
- "type": "identifier",
243
- "name": "endValue"
244
- },
245
- "annotation": {
246
- "type": "keyword",
247
- "value": "number"
248
- },
249
- "computed": false
250
- },
251
- {
252
- "type": "propertySignature",
253
- "key": {
254
- "type": "identifier",
255
- "name": "headerColor"
256
- },
257
- "annotation": {
258
- "type": "indexedAccess",
259
- "objectType": {
260
- "type": "reference",
261
- "typeName": {
262
- "type": "qualifiedName",
263
- "left": {
264
- "type": "identifier",
265
- "name": "React"
266
- },
267
- "right": {
268
- "type": "identifier",
269
- "name": "CSSProperties"
270
- }
271
- }
272
- },
273
- "indexType": {
274
- "type": "jsLiteral",
275
- "value": "color"
276
- }
277
- },
278
- "optional": true,
279
- "computed": false,
280
- "description": "电池头的颜色,默认取 color,color为渐变色,需要单独配置头部颜色,请使用该属性"
281
- }
282
- ]
283
- }
284
- ]
285
- },
286
147
  "data-view.tabs-drawer": {
287
148
  "properties": [
288
149
  {
@@ -476,6 +337,145 @@
476
337
  }
477
338
  ]
478
339
  },
340
+ "data-view.battery-chart": {
341
+ "properties": [
342
+ {
343
+ "name": "value",
344
+ "annotation": {
345
+ "type": "keyword",
346
+ "value": "number"
347
+ }
348
+ },
349
+ {
350
+ "name": "batteryWidth",
351
+ "annotation": {
352
+ "type": "keyword",
353
+ "value": "number"
354
+ }
355
+ },
356
+ {
357
+ "name": "batteryHeight",
358
+ "annotation": {
359
+ "type": "keyword",
360
+ "value": "number"
361
+ }
362
+ },
363
+ {
364
+ "name": "thresholdColors",
365
+ "annotation": {
366
+ "type": "array",
367
+ "elementType": {
368
+ "type": "reference",
369
+ "typeName": {
370
+ "type": "identifier",
371
+ "name": "ThresholdColor"
372
+ }
373
+ }
374
+ }
375
+ },
376
+ {
377
+ "name": "thresholdValue",
378
+ "annotation": {
379
+ "type": "keyword",
380
+ "value": "number"
381
+ }
382
+ }
383
+ ],
384
+ "events": [],
385
+ "methods": [],
386
+ "types": [
387
+ {
388
+ "type": "interface",
389
+ "name": "ThresholdColor",
390
+ "body": [
391
+ {
392
+ "type": "propertySignature",
393
+ "key": {
394
+ "type": "identifier",
395
+ "name": "color"
396
+ },
397
+ "annotation": {
398
+ "type": "indexedAccess",
399
+ "objectType": {
400
+ "type": "reference",
401
+ "typeName": {
402
+ "type": "qualifiedName",
403
+ "left": {
404
+ "type": "identifier",
405
+ "name": "React"
406
+ },
407
+ "right": {
408
+ "type": "identifier",
409
+ "name": "CSSProperties"
410
+ }
411
+ }
412
+ },
413
+ "indexType": {
414
+ "type": "jsLiteral",
415
+ "value": "color"
416
+ }
417
+ },
418
+ "computed": false
419
+ },
420
+ {
421
+ "type": "propertySignature",
422
+ "key": {
423
+ "type": "identifier",
424
+ "name": "startValue"
425
+ },
426
+ "annotation": {
427
+ "type": "keyword",
428
+ "value": "number"
429
+ },
430
+ "computed": false
431
+ },
432
+ {
433
+ "type": "propertySignature",
434
+ "key": {
435
+ "type": "identifier",
436
+ "name": "endValue"
437
+ },
438
+ "annotation": {
439
+ "type": "keyword",
440
+ "value": "number"
441
+ },
442
+ "computed": false
443
+ },
444
+ {
445
+ "type": "propertySignature",
446
+ "key": {
447
+ "type": "identifier",
448
+ "name": "headerColor"
449
+ },
450
+ "annotation": {
451
+ "type": "indexedAccess",
452
+ "objectType": {
453
+ "type": "reference",
454
+ "typeName": {
455
+ "type": "qualifiedName",
456
+ "left": {
457
+ "type": "identifier",
458
+ "name": "React"
459
+ },
460
+ "right": {
461
+ "type": "identifier",
462
+ "name": "CSSProperties"
463
+ }
464
+ }
465
+ },
466
+ "indexType": {
467
+ "type": "jsLiteral",
468
+ "value": "color"
469
+ }
470
+ },
471
+ "optional": true,
472
+ "computed": false,
473
+ "description": "电池头的颜色,默认取 color,color为渐变色,需要单独配置头部颜色,请使用该属性"
474
+ }
475
+ ]
476
+ }
477
+ ]
478
+ },
479
479
  "data-view.dropdown-menu": {
480
480
  "properties": [
481
481
  {
@@ -11,32 +11,24 @@
11
11
  bricks:
12
12
  - brick: div
13
13
  properties:
14
- textContent:
14
+ textContent: 内容区
15
15
  events:
16
16
  detail.open.change:
17
17
  - action: console.log
18
18
  properties:
19
19
  detailContentStyle:
20
- background: "red"
20
+ background: "yellow"
21
21
  dataSource:
22
- - text: "西藏 1234"
22
+ - text: "西藏 12311"
23
23
  detailDisplayLocation: "textBottom"
24
- lngLat:
25
- lng: 90.132212
26
- lat: 30.660361
27
- - text: "四川 8978569"
24
+ city: 西藏
25
+ - text: "四川 89781169"
28
26
  detailDisplayLocation: "textBottom"
29
- lngLat:
30
- lng: 103.065735
31
- lat: 30.659462
32
- - text: "台湾 2348"
27
+ city: 四川
28
+ - text: "台湾 234181"
33
29
  detailDisplayLocation: "pageCenter"
34
- lngLat:
35
- lng: 121.509062
36
- lat: 24.044332
37
- - text: "湖北 2348"
30
+ city: 台湾
31
+ - text: "江西 21348"
38
32
  detailDisplayLocation: "pageCenter"
39
- lngLat:
40
- lng: 112.598572
41
- lat: 30.984355
33
+ city: 江西
42
34
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/data-view",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/data-view",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,5 +41,5 @@
41
41
  "peerDependencies": {
42
42
  "@next-bricks/icons": "*"
43
43
  },
44
- "gitHead": "0599e34278acf19aa2b568868e0dbefa0df51076"
44
+ "gitHead": "51e30f054860a8f1770dd6fbf9e99590d23683f5"
45
45
  }