@next-bricks/data-view 1.10.13 → 1.11.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.
@@ -9,6 +9,8 @@ export interface ChinaMapProps {
9
9
  export interface DataItem {
10
10
  province?: string;
11
11
  city?: string;
12
+ /** 手动设置经纬度信息,优先级高于 province 和 city */
13
+ coordinate?: [longitude: number, latitude: number];
12
14
  text: string;
13
15
  }
14
16
  /**
package/docs/china-map.md CHANGED
@@ -56,3 +56,31 @@ children:
56
56
  args:
57
57
  - dark-v2
58
58
  ```
59
+
60
+ ### Specific coordinates
61
+
62
+ ```yaml preview height="600px"
63
+ brick: div
64
+ properties:
65
+ style:
66
+ height: calc(100vh - 4em)
67
+ position: relative
68
+ children:
69
+ - brick: data-view.china-map
70
+ properties:
71
+ dataSource:
72
+ - text: "山东济南 21348"
73
+ coordinate:
74
+ - 117.1201
75
+ - 36.6512
76
+ - text: "山东青岛 4242"
77
+ coordinate:
78
+ - 119
79
+ - 35.5
80
+ # Currently this brick only looks well within dark theme
81
+ lifeCycle:
82
+ onPageLoad:
83
+ action: theme.setTheme
84
+ args:
85
+ - dark-v2
86
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/data-view",
3
- "version": "1.10.13",
3
+ "version": "1.11.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/data-view",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,5 +42,5 @@
42
42
  "@next-bricks/basic": "*",
43
43
  "@next-bricks/icons": "*"
44
44
  },
45
- "gitHead": "caa9d3ad2e36f024b7b5a00f7ee0bf118890e464"
45
+ "gitHead": "b5e41ceb140129f566b7896bfc919cfac4c5420f"
46
46
  }