@next-bricks/data-view 1.7.0 → 1.8.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/bricks.json +9 -9
- package/dist/chunks/3035.c14dd436.js +2 -0
- package/dist/chunks/3035.c14dd436.js.map +1 -0
- package/dist/chunks/{6565.de76a169.js → 5214.6fb670ee.js} +2 -2
- package/dist/chunks/5214.6fb670ee.js.map +1 -0
- package/dist/chunks/bubbles-indicator.9c56af44.js +2 -0
- package/dist/chunks/bubbles-indicator.9c56af44.js.map +1 -0
- package/dist/chunks/china-map-chart.d1e8b843.js +2 -0
- package/dist/chunks/china-map-chart.d1e8b843.js.map +1 -0
- package/dist/chunks/crystal-ball-indicator.67278de8.js +2 -0
- package/dist/chunks/crystal-ball-indicator.67278de8.js.map +1 -0
- package/dist/chunks/globe-with-gear-indicator.a35ef0d2.js +2 -0
- package/dist/chunks/globe-with-gear-indicator.a35ef0d2.js.map +1 -0
- package/dist/chunks/{globe-with-halo-indicator.0762631d.js → globe-with-halo-indicator.ed913008.js} +2 -2
- package/dist/chunks/globe-with-halo-indicator.ed913008.js.map +1 -0
- package/dist/chunks/globe-with-orbit-indicator.14c59388.js +2 -0
- package/dist/chunks/globe-with-orbit-indicator.14c59388.js.map +1 -0
- package/dist/chunks/{main.a5af19c9.js → main.f2f04361.js} +2 -2
- package/dist/chunks/{main.a5af19c9.js.map → main.f2f04361.js.map} +1 -1
- package/dist/examples.json +18 -18
- package/dist/images/eae6fa62.png +0 -0
- package/dist/index.1906baf6.js +2 -0
- package/dist/index.1906baf6.js.map +1 -0
- package/dist/manifest.json +219 -214
- package/dist/types.json +291 -284
- package/dist-types/china-map-chart/index.d.ts +9 -1
- package/dist-types/shared/useContainerScale.d.ts +2 -1
- package/docs/china-map-chart.md +31 -2
- package/package.json +2 -2
- package/dist/chunks/2938.1d24bf3a.js +0 -2
- package/dist/chunks/2938.1d24bf3a.js.map +0 -1
- package/dist/chunks/6565.de76a169.js.map +0 -1
- package/dist/chunks/bubbles-indicator.56727686.js +0 -2
- package/dist/chunks/bubbles-indicator.56727686.js.map +0 -1
- package/dist/chunks/china-map-chart.eb43bf10.js +0 -2
- package/dist/chunks/china-map-chart.eb43bf10.js.map +0 -1
- package/dist/chunks/crystal-ball-indicator.7d4537b8.js +0 -2
- package/dist/chunks/crystal-ball-indicator.7d4537b8.js.map +0 -1
- package/dist/chunks/globe-with-gear-indicator.e8196cc6.js +0 -2
- package/dist/chunks/globe-with-gear-indicator.e8196cc6.js.map +0 -1
- package/dist/chunks/globe-with-halo-indicator.0762631d.js.map +0 -1
- package/dist/chunks/globe-with-orbit-indicator.36fcd0e1.js +0 -2
- package/dist/chunks/globe-with-orbit-indicator.36fcd0e1.js.map +0 -1
- package/dist/images/698229b4.png +0 -0
- package/dist/index.477c735f.js +0 -2
- package/dist/index.477c735f.js.map +0 -1
package/dist/types.json
CHANGED
|
@@ -40,110 +40,6 @@
|
|
|
40
40
|
"events": [],
|
|
41
41
|
"methods": []
|
|
42
42
|
},
|
|
43
|
-
"data-view.modern-style-page-title": {
|
|
44
|
-
"properties": [
|
|
45
|
-
{
|
|
46
|
-
"name": "pageTitle",
|
|
47
|
-
"annotation": {
|
|
48
|
-
"type": "keyword",
|
|
49
|
-
"value": "string"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "description",
|
|
54
|
-
"annotation": {
|
|
55
|
-
"type": "keyword",
|
|
56
|
-
"value": "string"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "backgroundStyle",
|
|
61
|
-
"annotation": {
|
|
62
|
-
"type": "reference",
|
|
63
|
-
"typeName": {
|
|
64
|
-
"type": "identifier",
|
|
65
|
-
"name": "CSSProperties"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "leftRoundStyle",
|
|
71
|
-
"annotation": {
|
|
72
|
-
"type": "reference",
|
|
73
|
-
"typeName": {
|
|
74
|
-
"type": "identifier",
|
|
75
|
-
"name": "CSSProperties"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"name": "rightRoundStyle",
|
|
81
|
-
"annotation": {
|
|
82
|
-
"type": "reference",
|
|
83
|
-
"typeName": {
|
|
84
|
-
"type": "identifier",
|
|
85
|
-
"name": "CSSProperties"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"events": [],
|
|
91
|
-
"methods": []
|
|
92
|
-
},
|
|
93
|
-
"data-view.modern-style-component-title": {
|
|
94
|
-
"properties": [
|
|
95
|
-
{
|
|
96
|
-
"name": "hideLeftComponent",
|
|
97
|
-
"annotation": {
|
|
98
|
-
"type": "keyword",
|
|
99
|
-
"value": "boolean"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"name": "hideRightComponent",
|
|
104
|
-
"annotation": {
|
|
105
|
-
"type": "keyword",
|
|
106
|
-
"value": "boolean"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "componentTitle",
|
|
111
|
-
"annotation": {
|
|
112
|
-
"type": "keyword",
|
|
113
|
-
"value": "string"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"name": "titleTextStyle",
|
|
118
|
-
"annotation": {
|
|
119
|
-
"type": "reference",
|
|
120
|
-
"typeName": {
|
|
121
|
-
"type": "identifier",
|
|
122
|
-
"name": "CSSProperties"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "squareColor",
|
|
128
|
-
"annotation": {
|
|
129
|
-
"type": "indexedAccess",
|
|
130
|
-
"objectType": {
|
|
131
|
-
"type": "reference",
|
|
132
|
-
"typeName": {
|
|
133
|
-
"type": "identifier",
|
|
134
|
-
"name": "CSSProperties"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"indexType": {
|
|
138
|
-
"type": "jsLiteral",
|
|
139
|
-
"value": "color"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
],
|
|
144
|
-
"events": [],
|
|
145
|
-
"methods": []
|
|
146
|
-
},
|
|
147
43
|
"data-view.tabs-drawer": {
|
|
148
44
|
"properties": [
|
|
149
45
|
{
|
|
@@ -337,6 +233,110 @@
|
|
|
337
233
|
}
|
|
338
234
|
]
|
|
339
235
|
},
|
|
236
|
+
"data-view.modern-style-component-title": {
|
|
237
|
+
"properties": [
|
|
238
|
+
{
|
|
239
|
+
"name": "hideLeftComponent",
|
|
240
|
+
"annotation": {
|
|
241
|
+
"type": "keyword",
|
|
242
|
+
"value": "boolean"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "hideRightComponent",
|
|
247
|
+
"annotation": {
|
|
248
|
+
"type": "keyword",
|
|
249
|
+
"value": "boolean"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "componentTitle",
|
|
254
|
+
"annotation": {
|
|
255
|
+
"type": "keyword",
|
|
256
|
+
"value": "string"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "titleTextStyle",
|
|
261
|
+
"annotation": {
|
|
262
|
+
"type": "reference",
|
|
263
|
+
"typeName": {
|
|
264
|
+
"type": "identifier",
|
|
265
|
+
"name": "CSSProperties"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "squareColor",
|
|
271
|
+
"annotation": {
|
|
272
|
+
"type": "indexedAccess",
|
|
273
|
+
"objectType": {
|
|
274
|
+
"type": "reference",
|
|
275
|
+
"typeName": {
|
|
276
|
+
"type": "identifier",
|
|
277
|
+
"name": "CSSProperties"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"indexType": {
|
|
281
|
+
"type": "jsLiteral",
|
|
282
|
+
"value": "color"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"events": [],
|
|
288
|
+
"methods": []
|
|
289
|
+
},
|
|
290
|
+
"data-view.modern-style-page-title": {
|
|
291
|
+
"properties": [
|
|
292
|
+
{
|
|
293
|
+
"name": "pageTitle",
|
|
294
|
+
"annotation": {
|
|
295
|
+
"type": "keyword",
|
|
296
|
+
"value": "string"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "description",
|
|
301
|
+
"annotation": {
|
|
302
|
+
"type": "keyword",
|
|
303
|
+
"value": "string"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"name": "backgroundStyle",
|
|
308
|
+
"annotation": {
|
|
309
|
+
"type": "reference",
|
|
310
|
+
"typeName": {
|
|
311
|
+
"type": "identifier",
|
|
312
|
+
"name": "CSSProperties"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"name": "leftRoundStyle",
|
|
318
|
+
"annotation": {
|
|
319
|
+
"type": "reference",
|
|
320
|
+
"typeName": {
|
|
321
|
+
"type": "identifier",
|
|
322
|
+
"name": "CSSProperties"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "rightRoundStyle",
|
|
328
|
+
"annotation": {
|
|
329
|
+
"type": "reference",
|
|
330
|
+
"typeName": {
|
|
331
|
+
"type": "identifier",
|
|
332
|
+
"name": "CSSProperties"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"events": [],
|
|
338
|
+
"methods": []
|
|
339
|
+
},
|
|
340
340
|
"data-view.battery-chart": {
|
|
341
341
|
"properties": [
|
|
342
342
|
{
|
|
@@ -831,28 +831,6 @@
|
|
|
831
831
|
}
|
|
832
832
|
]
|
|
833
833
|
},
|
|
834
|
-
"data-view.app-wall-relation-line": {
|
|
835
|
-
"properties": [
|
|
836
|
-
{
|
|
837
|
-
"name": "lightColor",
|
|
838
|
-
"annotation": {
|
|
839
|
-
"type": "union",
|
|
840
|
-
"types": [
|
|
841
|
-
{
|
|
842
|
-
"type": "jsLiteral",
|
|
843
|
-
"value": "blue"
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
"type": "jsLiteral",
|
|
847
|
-
"value": "purple"
|
|
848
|
-
}
|
|
849
|
-
]
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
],
|
|
853
|
-
"events": [],
|
|
854
|
-
"methods": []
|
|
855
|
-
},
|
|
856
834
|
"data-view.cabinet-button": {
|
|
857
835
|
"properties": [
|
|
858
836
|
{
|
|
@@ -876,6 +854,28 @@
|
|
|
876
854
|
"events": [],
|
|
877
855
|
"methods": []
|
|
878
856
|
},
|
|
857
|
+
"data-view.app-wall-relation-line": {
|
|
858
|
+
"properties": [
|
|
859
|
+
{
|
|
860
|
+
"name": "lightColor",
|
|
861
|
+
"annotation": {
|
|
862
|
+
"type": "union",
|
|
863
|
+
"types": [
|
|
864
|
+
{
|
|
865
|
+
"type": "jsLiteral",
|
|
866
|
+
"value": "blue"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"type": "jsLiteral",
|
|
870
|
+
"value": "purple"
|
|
871
|
+
}
|
|
872
|
+
]
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
],
|
|
876
|
+
"events": [],
|
|
877
|
+
"methods": []
|
|
878
|
+
},
|
|
879
879
|
"data-view.cabinet-node": {
|
|
880
880
|
"properties": [
|
|
881
881
|
{
|
|
@@ -1766,10 +1766,15 @@
|
|
|
1766
1766
|
"events": [],
|
|
1767
1767
|
"methods": []
|
|
1768
1768
|
},
|
|
1769
|
-
"data-view.
|
|
1770
|
-
"properties": [
|
|
1771
|
-
|
|
1772
|
-
|
|
1769
|
+
"data-view.tech-mesh-base-view": {
|
|
1770
|
+
"properties": [],
|
|
1771
|
+
"events": [],
|
|
1772
|
+
"methods": []
|
|
1773
|
+
},
|
|
1774
|
+
"data-view.hi-tech-button": {
|
|
1775
|
+
"properties": [
|
|
1776
|
+
{
|
|
1777
|
+
"name": "type",
|
|
1773
1778
|
"annotation": {
|
|
1774
1779
|
"type": "reference",
|
|
1775
1780
|
"typeName": {
|
|
@@ -1837,11 +1842,6 @@
|
|
|
1837
1842
|
}
|
|
1838
1843
|
]
|
|
1839
1844
|
},
|
|
1840
|
-
"data-view.tech-mesh-base-view": {
|
|
1841
|
-
"properties": [],
|
|
1842
|
-
"events": [],
|
|
1843
|
-
"methods": []
|
|
1844
|
-
},
|
|
1845
1845
|
"data-view.simple-card-item": {
|
|
1846
1846
|
"properties": [
|
|
1847
1847
|
{
|
|
@@ -2420,155 +2420,6 @@
|
|
|
2420
2420
|
}
|
|
2421
2421
|
]
|
|
2422
2422
|
},
|
|
2423
|
-
"data-view.china-map-chart": {
|
|
2424
|
-
"properties": [
|
|
2425
|
-
{
|
|
2426
|
-
"name": "dataSource",
|
|
2427
|
-
"annotation": {
|
|
2428
|
-
"type": "array",
|
|
2429
|
-
"elementType": {
|
|
2430
|
-
"type": "reference",
|
|
2431
|
-
"typeName": {
|
|
2432
|
-
"type": "identifier",
|
|
2433
|
-
"name": "DataSource"
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
},
|
|
2438
|
-
{
|
|
2439
|
-
"name": "detailContentStyle",
|
|
2440
|
-
"annotation": {
|
|
2441
|
-
"type": "reference",
|
|
2442
|
-
"typeName": {
|
|
2443
|
-
"type": "identifier",
|
|
2444
|
-
"name": "CSSProperties"
|
|
2445
|
-
}
|
|
2446
|
-
}
|
|
2447
|
-
}
|
|
2448
|
-
],
|
|
2449
|
-
"events": [
|
|
2450
|
-
{
|
|
2451
|
-
"name": "detail.open.change",
|
|
2452
|
-
"detail": {
|
|
2453
|
-
"annotation": {
|
|
2454
|
-
"type": "typeLiteral",
|
|
2455
|
-
"members": [
|
|
2456
|
-
{
|
|
2457
|
-
"type": "propertySignature",
|
|
2458
|
-
"key": {
|
|
2459
|
-
"type": "identifier",
|
|
2460
|
-
"name": "open"
|
|
2461
|
-
},
|
|
2462
|
-
"annotation": {
|
|
2463
|
-
"type": "keyword",
|
|
2464
|
-
"value": "boolean"
|
|
2465
|
-
},
|
|
2466
|
-
"computed": false
|
|
2467
|
-
},
|
|
2468
|
-
{
|
|
2469
|
-
"type": "propertySignature",
|
|
2470
|
-
"key": {
|
|
2471
|
-
"type": "identifier",
|
|
2472
|
-
"name": "data"
|
|
2473
|
-
},
|
|
2474
|
-
"annotation": {
|
|
2475
|
-
"type": "reference",
|
|
2476
|
-
"typeName": {
|
|
2477
|
-
"type": "identifier",
|
|
2478
|
-
"name": "Record"
|
|
2479
|
-
},
|
|
2480
|
-
"typeParameters": {
|
|
2481
|
-
"type": "typeParameterInstantiation",
|
|
2482
|
-
"params": [
|
|
2483
|
-
{
|
|
2484
|
-
"type": "keyword",
|
|
2485
|
-
"value": "string"
|
|
2486
|
-
},
|
|
2487
|
-
{
|
|
2488
|
-
"type": "keyword",
|
|
2489
|
-
"value": "any"
|
|
2490
|
-
}
|
|
2491
|
-
]
|
|
2492
|
-
}
|
|
2493
|
-
},
|
|
2494
|
-
"computed": false
|
|
2495
|
-
}
|
|
2496
|
-
]
|
|
2497
|
-
}
|
|
2498
|
-
}
|
|
2499
|
-
}
|
|
2500
|
-
],
|
|
2501
|
-
"methods": [],
|
|
2502
|
-
"types": [
|
|
2503
|
-
{
|
|
2504
|
-
"type": "interface",
|
|
2505
|
-
"name": "DataSource",
|
|
2506
|
-
"body": [
|
|
2507
|
-
{
|
|
2508
|
-
"type": "propertySignature",
|
|
2509
|
-
"key": {
|
|
2510
|
-
"type": "identifier",
|
|
2511
|
-
"name": "city"
|
|
2512
|
-
},
|
|
2513
|
-
"annotation": {
|
|
2514
|
-
"type": "keyword",
|
|
2515
|
-
"value": "string"
|
|
2516
|
-
},
|
|
2517
|
-
"computed": false,
|
|
2518
|
-
"description": "省级行政区域名,例如:四川、北京"
|
|
2519
|
-
},
|
|
2520
|
-
{
|
|
2521
|
-
"type": "propertySignature",
|
|
2522
|
-
"key": {
|
|
2523
|
-
"type": "identifier",
|
|
2524
|
-
"name": "detailDisplayLocation"
|
|
2525
|
-
},
|
|
2526
|
-
"annotation": {
|
|
2527
|
-
"type": "union",
|
|
2528
|
-
"types": [
|
|
2529
|
-
{
|
|
2530
|
-
"type": "jsLiteral",
|
|
2531
|
-
"value": "pageCenter"
|
|
2532
|
-
},
|
|
2533
|
-
{
|
|
2534
|
-
"type": "jsLiteral",
|
|
2535
|
-
"value": "textBottom"
|
|
2536
|
-
}
|
|
2537
|
-
]
|
|
2538
|
-
},
|
|
2539
|
-
"computed": false
|
|
2540
|
-
},
|
|
2541
|
-
{
|
|
2542
|
-
"type": "propertySignature",
|
|
2543
|
-
"key": {
|
|
2544
|
-
"type": "identifier",
|
|
2545
|
-
"name": "text"
|
|
2546
|
-
},
|
|
2547
|
-
"annotation": {
|
|
2548
|
-
"type": "keyword",
|
|
2549
|
-
"value": "string"
|
|
2550
|
-
},
|
|
2551
|
-
"computed": false
|
|
2552
|
-
},
|
|
2553
|
-
{
|
|
2554
|
-
"type": "indexSignature",
|
|
2555
|
-
"parameter": {
|
|
2556
|
-
"type": "identifier",
|
|
2557
|
-
"name": "x",
|
|
2558
|
-
"annotation": {
|
|
2559
|
-
"type": "keyword",
|
|
2560
|
-
"value": "string"
|
|
2561
|
-
}
|
|
2562
|
-
},
|
|
2563
|
-
"annotation": {
|
|
2564
|
-
"type": "keyword",
|
|
2565
|
-
"value": "any"
|
|
2566
|
-
}
|
|
2567
|
-
}
|
|
2568
|
-
]
|
|
2569
|
-
}
|
|
2570
|
-
]
|
|
2571
|
-
},
|
|
2572
2423
|
"data-view.loading-panel": {
|
|
2573
2424
|
"properties": [
|
|
2574
2425
|
{
|
|
@@ -3880,6 +3731,162 @@
|
|
|
3880
3731
|
"events": [],
|
|
3881
3732
|
"methods": []
|
|
3882
3733
|
},
|
|
3734
|
+
"data-view.china-map-chart": {
|
|
3735
|
+
"properties": [
|
|
3736
|
+
{
|
|
3737
|
+
"name": "dataSource",
|
|
3738
|
+
"annotation": {
|
|
3739
|
+
"type": "array",
|
|
3740
|
+
"elementType": {
|
|
3741
|
+
"type": "reference",
|
|
3742
|
+
"typeName": {
|
|
3743
|
+
"type": "identifier",
|
|
3744
|
+
"name": "DataSource"
|
|
3745
|
+
}
|
|
3746
|
+
}
|
|
3747
|
+
}
|
|
3748
|
+
},
|
|
3749
|
+
{
|
|
3750
|
+
"name": "detailContentStyle",
|
|
3751
|
+
"annotation": {
|
|
3752
|
+
"type": "reference",
|
|
3753
|
+
"typeName": {
|
|
3754
|
+
"type": "identifier",
|
|
3755
|
+
"name": "CSSProperties"
|
|
3756
|
+
}
|
|
3757
|
+
}
|
|
3758
|
+
},
|
|
3759
|
+
{
|
|
3760
|
+
"name": "fillContainer",
|
|
3761
|
+
"annotation": {
|
|
3762
|
+
"type": "keyword",
|
|
3763
|
+
"value": "boolean"
|
|
3764
|
+
}
|
|
3765
|
+
}
|
|
3766
|
+
],
|
|
3767
|
+
"events": [
|
|
3768
|
+
{
|
|
3769
|
+
"name": "detail.open.change",
|
|
3770
|
+
"detail": {
|
|
3771
|
+
"annotation": {
|
|
3772
|
+
"type": "typeLiteral",
|
|
3773
|
+
"members": [
|
|
3774
|
+
{
|
|
3775
|
+
"type": "propertySignature",
|
|
3776
|
+
"key": {
|
|
3777
|
+
"type": "identifier",
|
|
3778
|
+
"name": "open"
|
|
3779
|
+
},
|
|
3780
|
+
"annotation": {
|
|
3781
|
+
"type": "keyword",
|
|
3782
|
+
"value": "boolean"
|
|
3783
|
+
},
|
|
3784
|
+
"computed": false
|
|
3785
|
+
},
|
|
3786
|
+
{
|
|
3787
|
+
"type": "propertySignature",
|
|
3788
|
+
"key": {
|
|
3789
|
+
"type": "identifier",
|
|
3790
|
+
"name": "data"
|
|
3791
|
+
},
|
|
3792
|
+
"annotation": {
|
|
3793
|
+
"type": "reference",
|
|
3794
|
+
"typeName": {
|
|
3795
|
+
"type": "identifier",
|
|
3796
|
+
"name": "Record"
|
|
3797
|
+
},
|
|
3798
|
+
"typeParameters": {
|
|
3799
|
+
"type": "typeParameterInstantiation",
|
|
3800
|
+
"params": [
|
|
3801
|
+
{
|
|
3802
|
+
"type": "keyword",
|
|
3803
|
+
"value": "string"
|
|
3804
|
+
},
|
|
3805
|
+
{
|
|
3806
|
+
"type": "keyword",
|
|
3807
|
+
"value": "any"
|
|
3808
|
+
}
|
|
3809
|
+
]
|
|
3810
|
+
}
|
|
3811
|
+
},
|
|
3812
|
+
"computed": false
|
|
3813
|
+
}
|
|
3814
|
+
]
|
|
3815
|
+
}
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3818
|
+
],
|
|
3819
|
+
"methods": [],
|
|
3820
|
+
"types": [
|
|
3821
|
+
{
|
|
3822
|
+
"type": "interface",
|
|
3823
|
+
"name": "DataSource",
|
|
3824
|
+
"body": [
|
|
3825
|
+
{
|
|
3826
|
+
"type": "propertySignature",
|
|
3827
|
+
"key": {
|
|
3828
|
+
"type": "identifier",
|
|
3829
|
+
"name": "city"
|
|
3830
|
+
},
|
|
3831
|
+
"annotation": {
|
|
3832
|
+
"type": "keyword",
|
|
3833
|
+
"value": "string"
|
|
3834
|
+
},
|
|
3835
|
+
"computed": false,
|
|
3836
|
+
"description": "省级行政区域名,例如:四川、北京"
|
|
3837
|
+
},
|
|
3838
|
+
{
|
|
3839
|
+
"type": "propertySignature",
|
|
3840
|
+
"key": {
|
|
3841
|
+
"type": "identifier",
|
|
3842
|
+
"name": "detailDisplayLocation"
|
|
3843
|
+
},
|
|
3844
|
+
"annotation": {
|
|
3845
|
+
"type": "union",
|
|
3846
|
+
"types": [
|
|
3847
|
+
{
|
|
3848
|
+
"type": "jsLiteral",
|
|
3849
|
+
"value": "pageCenter"
|
|
3850
|
+
},
|
|
3851
|
+
{
|
|
3852
|
+
"type": "jsLiteral",
|
|
3853
|
+
"value": "textBottom"
|
|
3854
|
+
}
|
|
3855
|
+
]
|
|
3856
|
+
},
|
|
3857
|
+
"computed": false
|
|
3858
|
+
},
|
|
3859
|
+
{
|
|
3860
|
+
"type": "propertySignature",
|
|
3861
|
+
"key": {
|
|
3862
|
+
"type": "identifier",
|
|
3863
|
+
"name": "text"
|
|
3864
|
+
},
|
|
3865
|
+
"annotation": {
|
|
3866
|
+
"type": "keyword",
|
|
3867
|
+
"value": "string"
|
|
3868
|
+
},
|
|
3869
|
+
"computed": false
|
|
3870
|
+
},
|
|
3871
|
+
{
|
|
3872
|
+
"type": "indexSignature",
|
|
3873
|
+
"parameter": {
|
|
3874
|
+
"type": "identifier",
|
|
3875
|
+
"name": "x",
|
|
3876
|
+
"annotation": {
|
|
3877
|
+
"type": "keyword",
|
|
3878
|
+
"value": "string"
|
|
3879
|
+
}
|
|
3880
|
+
},
|
|
3881
|
+
"annotation": {
|
|
3882
|
+
"type": "keyword",
|
|
3883
|
+
"value": "any"
|
|
3884
|
+
}
|
|
3885
|
+
}
|
|
3886
|
+
]
|
|
3887
|
+
}
|
|
3888
|
+
]
|
|
3889
|
+
},
|
|
3883
3890
|
"data-view.globe-with-halo-indicator": {
|
|
3884
3891
|
"properties": [
|
|
3885
3892
|
{
|
|
@@ -11,9 +11,15 @@ export declare class ChinaMapChart extends ReactNextElement {
|
|
|
11
11
|
*/
|
|
12
12
|
accessor dataSource: DataSource[] | undefined;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* 描述内容样式
|
|
15
15
|
*/
|
|
16
16
|
accessor detailContentStyle: CSSProperties | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* 是否铺满容器
|
|
19
|
+
*
|
|
20
|
+
* 注意:该属性不同时兼容 detail 插槽
|
|
21
|
+
*/
|
|
22
|
+
accessor fillContainer: boolean;
|
|
17
23
|
render(): React.JSX.Element;
|
|
18
24
|
}
|
|
19
25
|
interface DataSource {
|
|
@@ -24,9 +30,11 @@ interface DataSource {
|
|
|
24
30
|
[x: string]: any;
|
|
25
31
|
}
|
|
26
32
|
export interface ChinaMapChartProps {
|
|
33
|
+
root: HTMLElement;
|
|
27
34
|
onDetailOpenChange: (open: boolean, data: Record<string, any>) => void;
|
|
28
35
|
dataSource: DataSource[];
|
|
29
36
|
detailContentStyle?: CSSProperties;
|
|
37
|
+
fillContainer?: boolean;
|
|
30
38
|
}
|
|
31
39
|
export declare function ChinaMapChartComponent(props: ChinaMapChartProps): React.JSX.Element;
|
|
32
40
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 根据容器尺寸进行缩放
|
|
3
3
|
*/
|
|
4
|
-
export declare function useContainerScale({ width: baseWidth, height: baseHeight, root, maxScale, }: {
|
|
4
|
+
export declare function useContainerScale({ width: baseWidth, height: baseHeight, root, maxScale, disabled, }: {
|
|
5
5
|
width: number;
|
|
6
6
|
height: number;
|
|
7
7
|
root: HTMLElement;
|
|
8
8
|
/** 最大缩放比例,默认为 1 */
|
|
9
9
|
maxScale?: number;
|
|
10
|
+
disabled?: boolean;
|
|
10
11
|
}): number | null;
|
package/docs/china-map-chart.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
### Basic
|
|
6
6
|
|
|
7
|
-
```yaml preview
|
|
7
|
+
```yaml preview height="600px"
|
|
8
8
|
brick: data-view.china-map-chart
|
|
9
9
|
properties:
|
|
10
10
|
dataSource:
|
|
@@ -24,9 +24,38 @@ lifeCycle:
|
|
|
24
24
|
- dark-v2
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
### Fill container
|
|
28
|
+
|
|
29
|
+
```yaml preview height="600px"
|
|
30
|
+
brick: div
|
|
31
|
+
properties:
|
|
32
|
+
style:
|
|
33
|
+
height: calc(100vh - 4em)
|
|
34
|
+
position: relative
|
|
35
|
+
children:
|
|
36
|
+
- brick: data-view.china-map-chart
|
|
37
|
+
properties:
|
|
38
|
+
fillContainer: true
|
|
39
|
+
dataSource:
|
|
40
|
+
- text: "西藏 12311"
|
|
41
|
+
city: 西藏
|
|
42
|
+
- text: "四川 89781169"
|
|
43
|
+
city: 四川
|
|
44
|
+
- text: "台湾 234181"
|
|
45
|
+
city: 台湾
|
|
46
|
+
- text: "江西 21348"
|
|
47
|
+
city: 江西
|
|
48
|
+
# Currently this brick only looks well within dark theme
|
|
49
|
+
lifeCycle:
|
|
50
|
+
onPageLoad:
|
|
51
|
+
action: theme.setTheme
|
|
52
|
+
args:
|
|
53
|
+
- dark-v2
|
|
54
|
+
```
|
|
55
|
+
|
|
27
56
|
### With detail
|
|
28
57
|
|
|
29
|
-
```yaml preview
|
|
58
|
+
```yaml preview height="600px"
|
|
30
59
|
brick: data-view.china-map-chart
|
|
31
60
|
properties:
|
|
32
61
|
detailContentStyle:
|