@next-bricks/data-view 1.4.0 → 1.6.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.
Files changed (108) hide show
  1. package/dist/bricks.json +22 -9
  2. package/dist/chunks/1143.2494e37f.js +2 -0
  3. package/dist/chunks/1143.2494e37f.js.map +1 -0
  4. package/dist/chunks/2938.1d24bf3a.js +2 -0
  5. package/dist/chunks/2938.1d24bf3a.js.map +1 -0
  6. package/dist/chunks/3910.cd76fadc.js +2 -0
  7. package/dist/chunks/3910.cd76fadc.js.map +1 -0
  8. package/dist/chunks/{5155.52b564af.js → 5902.15d216ce.js} +3 -3
  9. package/dist/chunks/5902.15d216ce.js.map +1 -0
  10. package/dist/chunks/859.472360b6.js +2 -0
  11. package/dist/chunks/859.472360b6.js.map +1 -0
  12. package/dist/chunks/bubbles-indicator.34eea7ea.js +2 -0
  13. package/dist/chunks/bubbles-indicator.34eea7ea.js.map +1 -0
  14. package/dist/chunks/cabinet-container.bc8cb288.js +3 -0
  15. package/dist/chunks/cabinet-container.bc8cb288.js.map +1 -0
  16. package/dist/chunks/cabinet-thumbnail.d6c2b232.js +3 -0
  17. package/dist/chunks/cabinet-thumbnail.d6c2b232.js.map +1 -0
  18. package/dist/chunks/china-map-chart.eb43bf10.js +2 -0
  19. package/dist/chunks/china-map-chart.eb43bf10.js.map +1 -0
  20. package/dist/chunks/crystal-ball-indicator.d8cd86a8.js +2 -0
  21. package/dist/chunks/crystal-ball-indicator.d8cd86a8.js.map +1 -0
  22. package/dist/chunks/gear-background.7707f3b1.js.map +1 -1
  23. package/dist/chunks/globe-with-gear-indicator.25c9901b.js +2 -0
  24. package/dist/chunks/globe-with-gear-indicator.25c9901b.js.map +1 -0
  25. package/dist/chunks/globe-with-halo-indicator.23e27349.js +2 -0
  26. package/dist/chunks/globe-with-halo-indicator.23e27349.js.map +1 -0
  27. package/dist/chunks/loading-panel.4b9cfaa7.js +2 -0
  28. package/dist/chunks/loading-panel.4b9cfaa7.js.map +1 -0
  29. package/dist/chunks/main.1bce9b12.js +2 -0
  30. package/dist/chunks/main.1bce9b12.js.map +1 -0
  31. package/dist/chunks/modern-style-treemap.d59d18bc.js +3 -0
  32. package/dist/chunks/modern-style-treemap.d59d18bc.js.map +1 -0
  33. package/dist/chunks/progress-bar-list.3b337de3.js +2 -0
  34. package/dist/chunks/progress-bar-list.3b337de3.js.map +1 -0
  35. package/dist/examples.json +31 -22
  36. package/dist/images/0fec7781.png +0 -0
  37. package/dist/images/1056eac3.png +0 -0
  38. package/dist/images/12997c2b.png +0 -0
  39. package/dist/images/2235938c.png +0 -0
  40. package/dist/images/45a4740b.png +0 -0
  41. package/dist/images/4f7762f3.svg +21 -0
  42. package/dist/images/698229b4.png +0 -0
  43. package/dist/images/73baf989.png +0 -0
  44. package/dist/images/81f40f95.png +0 -0
  45. package/dist/images/86a2105c.png +0 -0
  46. package/dist/images/a457f803.png +0 -0
  47. package/dist/images/b2fdf90d.svg +74 -0
  48. package/dist/images/b91eed9d.png +0 -0
  49. package/dist/images/d20b2c27.svg +46 -0
  50. package/dist/images/f1a78578.png +0 -0
  51. package/dist/index.b0b43bc4.js +2 -0
  52. package/dist/index.b0b43bc4.js.map +1 -0
  53. package/dist/manifest.json +310 -208
  54. package/dist/media/0c649f21.webm +0 -0
  55. package/dist/media/2978c0ae.ttf +0 -0
  56. package/dist/media/cc0a5a55.ttf +0 -0
  57. package/dist/types.json +1057 -702
  58. package/dist-types/bootstrap.d.ts +3 -0
  59. package/dist-types/bubbles-indicator/index.d.ts +45 -0
  60. package/dist-types/bubbles-indicator/index.spec.d.ts +1 -0
  61. package/dist-types/china-map-chart/index.d.ts +2 -1
  62. package/dist-types/crystal-ball-indicator/index.d.ts +7 -4
  63. package/dist-types/gear-background/index.d.ts +1 -1
  64. package/dist-types/globe-with-gear-indicator/index.d.ts +45 -0
  65. package/dist-types/globe-with-gear-indicator/index.spec.d.ts +1 -0
  66. package/dist-types/globe-with-halo-indicator/RotatingArc.d.ts +2 -0
  67. package/dist-types/globe-with-halo-indicator/RotatingArc.spec.d.ts +1 -0
  68. package/dist-types/globe-with-halo-indicator/SatelliteRing.d.ts +2 -0
  69. package/dist-types/globe-with-halo-indicator/index.d.ts +45 -0
  70. package/dist-types/globe-with-halo-indicator/index.spec.d.ts +1 -0
  71. package/docs/bubbles-indicator.md +42 -0
  72. package/docs/china-map-chart.md +55 -27
  73. package/docs/crystal-ball-indicator.md +34 -29
  74. package/docs/globe-with-gear-indicator.md +42 -0
  75. package/docs/globe-with-halo-indicator.md +42 -0
  76. package/package.json +2 -2
  77. package/dist/chunks/2836.358bb597.js +0 -2
  78. package/dist/chunks/2836.358bb597.js.map +0 -1
  79. package/dist/chunks/5155.52b564af.js.map +0 -1
  80. package/dist/chunks/5371.15b68669.js +0 -2
  81. package/dist/chunks/5371.15b68669.js.map +0 -1
  82. package/dist/chunks/8847.9be1eec6.js +0 -2
  83. package/dist/chunks/8847.9be1eec6.js.map +0 -1
  84. package/dist/chunks/cabinet-container.95ec63e8.js +0 -3
  85. package/dist/chunks/cabinet-container.95ec63e8.js.map +0 -1
  86. package/dist/chunks/cabinet-thumbnail.dc01323b.js +0 -3
  87. package/dist/chunks/cabinet-thumbnail.dc01323b.js.map +0 -1
  88. package/dist/chunks/china-map-chart.375f876a.js +0 -2
  89. package/dist/chunks/china-map-chart.375f876a.js.map +0 -1
  90. package/dist/chunks/crystal-ball-indicator.269b1f6d.js +0 -2
  91. package/dist/chunks/crystal-ball-indicator.269b1f6d.js.map +0 -1
  92. package/dist/chunks/loading-panel.b7f40435.js +0 -2
  93. package/dist/chunks/loading-panel.b7f40435.js.map +0 -1
  94. package/dist/chunks/main.dacb91a2.js +0 -2
  95. package/dist/chunks/main.dacb91a2.js.map +0 -1
  96. package/dist/chunks/modern-style-treemap.0b40defb.js +0 -3
  97. package/dist/chunks/modern-style-treemap.0b40defb.js.map +0 -1
  98. package/dist/chunks/progress-bar-list.b788a7ce.js +0 -2
  99. package/dist/chunks/progress-bar-list.b788a7ce.js.map +0 -1
  100. package/dist/images/66ee9c70.png +0 -0
  101. package/dist/images/cc662090.png +0 -0
  102. package/dist/index.fefb1c64.js +0 -2
  103. package/dist/index.fefb1c64.js.map +0 -1
  104. package/dist-types/china-map-chart/map.d.ts +0 -144
  105. /package/dist/chunks/{5155.52b564af.js.LICENSE.txt → 5902.15d216ce.js.LICENSE.txt} +0 -0
  106. /package/dist/chunks/{cabinet-container.95ec63e8.js.LICENSE.txt → cabinet-container.bc8cb288.js.LICENSE.txt} +0 -0
  107. /package/dist/chunks/{cabinet-thumbnail.dc01323b.js.LICENSE.txt → cabinet-thumbnail.d6c2b232.js.LICENSE.txt} +0 -0
  108. /package/dist/chunks/{modern-style-treemap.0b40defb.js.LICENSE.txt → modern-style-treemap.d59d18bc.js.LICENSE.txt} +0 -0
@@ -40,3 +40,6 @@ import "./indicator-card/index.js";
40
40
  import "./progress-bar-list/index.js";
41
41
  import "./china-map-chart/index.js";
42
42
  import "./crystal-ball-indicator/index.js";
43
+ import "./globe-with-halo-indicator/index.js";
44
+ import "./globe-with-gear-indicator/index.js";
45
+ import "./bubbles-indicator/index.js";
@@ -0,0 +1,45 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ import "../fonts/ALiBaBaPuHuiTi.css";
5
+ import "../fonts/PangMenZhengDaoBiaoTiTi.css";
6
+ export interface BubblesIndicatorProps {
7
+ dataSource?: DataItem[];
8
+ centerDataSource?: DataItem;
9
+ cornerDataSource?: CornerDataItem[];
10
+ maxScale?: number;
11
+ }
12
+ export interface DataItem {
13
+ label: string;
14
+ value: string | number;
15
+ }
16
+ export interface CornerDataItem extends DataItem {
17
+ color?: string;
18
+ }
19
+ /**
20
+ * 气泡样式的数据展示构件。
21
+ */
22
+ export declare class BubblesIndicator extends ReactNextElement implements BubblesIndicatorProps {
23
+ /** 指标数据列表(显示在环上)
24
+ *
25
+ * 注意:最多显示12项数据
26
+ */
27
+ accessor dataSource: DataItem[] | undefined;
28
+ /** 中心数据(显示在中心水晶球内) */
29
+ accessor centerDataSource: DataItem | undefined;
30
+ /**
31
+ * 左上角指标数据列表
32
+ */
33
+ accessor cornerDataSource: CornerDataItem[] | undefined;
34
+ /**
35
+ * 最大缩放比例
36
+ *
37
+ * @default 1
38
+ */
39
+ accessor maxScale: number | undefined;
40
+ render(): React.JSX.Element;
41
+ }
42
+ export interface BubblesIndicatorComponentProps extends BubblesIndicatorProps {
43
+ root: BubblesIndicator;
44
+ }
45
+ export declare function BubblesIndicatorComponent({ root, dataSource, centerDataSource, cornerDataSource, maxScale, }: BubblesIndicatorComponentProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -2,7 +2,7 @@ import React, { CSSProperties } from "react";
2
2
  import { ReactNextElement } from "@next-core/react-element";
3
3
  import "@next-core/theme";
4
4
  /**
5
- * 构件 `data-view.china-map-chart`
5
+ * 中国地图图表构件,可以显示省级指标数据
6
6
  */
7
7
  export declare class ChinaMapChart extends ReactNextElement {
8
8
  #private;
@@ -17,6 +17,7 @@ export declare class ChinaMapChart extends ReactNextElement {
17
17
  render(): React.JSX.Element;
18
18
  }
19
19
  interface DataSource {
20
+ /** 省级行政区域名,例如:四川、北京 */
20
21
  city: string;
21
22
  detailDisplayLocation: "pageCenter" | "textBottom";
22
23
  text: string;
@@ -6,28 +6,31 @@ import "../fonts/PangMenZhengDaoBiaoTiTi.css";
6
6
  export interface CrystalBallIndicatorProps {
7
7
  dataSource?: DataItem[];
8
8
  centerDataSource?: DataItem;
9
- cornerDataSource?: cornerDataItem[];
9
+ cornerDataSource?: CornerDataItem[];
10
10
  maxScale?: number;
11
11
  }
12
12
  export interface DataItem {
13
13
  label: string;
14
14
  value: string | number;
15
15
  }
16
- export interface cornerDataItem extends DataItem {
16
+ export interface CornerDataItem extends DataItem {
17
17
  color?: string;
18
18
  }
19
19
  /**
20
20
  * 有水晶球动画的数据展示构件。
21
21
  */
22
22
  export declare class CrystalBallIndicator extends ReactNextElement implements CrystalBallIndicatorProps {
23
- /** 指标数据列表(显示在环上) */
23
+ /** 指标数据列表(显示在环上)
24
+ *
25
+ * 注意:最多显示12项数据
26
+ */
24
27
  accessor dataSource: DataItem[] | undefined;
25
28
  /** 中心数据(显示在中心水晶球内) */
26
29
  accessor centerDataSource: DataItem | undefined;
27
30
  /**
28
31
  * 左上角指标数据列表
29
32
  */
30
- accessor cornerDataSource: cornerDataItem[] | undefined;
33
+ accessor cornerDataSource: CornerDataItem[] | undefined;
31
34
  /**
32
35
  * 最大缩放比例
33
36
  *
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ReactNextElement } from "@next-core/react-element";
3
- interface GearBackgroundProps {
3
+ export interface GearBackgroundProps {
4
4
  color?: React.CSSProperties["color"];
5
5
  }
6
6
  /**
@@ -0,0 +1,45 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ import "../fonts/ALiBaBaPuHuiTi.css";
5
+ import "../fonts/HarmonyOSSans.css";
6
+ export interface GlobeWithGearIndicatorProps {
7
+ dataSource?: DataItem[];
8
+ centerDataSource?: DataItem;
9
+ cornerDataSource?: CornerDataItem[];
10
+ maxScale?: number;
11
+ }
12
+ export interface DataItem {
13
+ label: string;
14
+ value: string | number;
15
+ }
16
+ export interface CornerDataItem extends DataItem {
17
+ color?: string;
18
+ }
19
+ /**
20
+ * 地球加轮盘的数据展示构件。
21
+ */
22
+ export declare class GlobeWithGearIndicator extends ReactNextElement implements GlobeWithGearIndicatorProps {
23
+ /** 指标数据列表(显示在环上)
24
+ *
25
+ * 注意:最多显示12项数据
26
+ */
27
+ accessor dataSource: DataItem[] | undefined;
28
+ /** 中心数据(显示在中心水晶球内) */
29
+ accessor centerDataSource: DataItem | undefined;
30
+ /**
31
+ * 左上角指标数据列表
32
+ */
33
+ accessor cornerDataSource: CornerDataItem[] | undefined;
34
+ /**
35
+ * 最大缩放比例
36
+ *
37
+ * @default 1
38
+ */
39
+ accessor maxScale: number | undefined;
40
+ render(): React.JSX.Element;
41
+ }
42
+ export interface GlobeWithGearIndicatorComponentProps extends GlobeWithGearIndicatorProps {
43
+ root: GlobeWithGearIndicator;
44
+ }
45
+ export declare function GlobeWithGearIndicatorComponent({ root, dataSource, centerDataSource, cornerDataSource, maxScale, }: GlobeWithGearIndicatorComponentProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare function RotatingArc(): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare function SatelliteRing(): React.JSX.Element;
@@ -0,0 +1,45 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ import "../fonts/ALiBaBaPuHuiTi.css";
5
+ export interface GlobeWithHaloIndicatorProps {
6
+ dataSource?: DataItem[];
7
+ centerDataSource?: DataItem;
8
+ cornerDataSource?: CornerDataItem[];
9
+ maxScale?: number;
10
+ }
11
+ export interface DataItem {
12
+ label: string;
13
+ value: string | number;
14
+ }
15
+ export interface CornerDataItem extends DataItem {
16
+ color?: string;
17
+ }
18
+ /**
19
+ * 地球加光环的数据展示构件。
20
+ */
21
+ export declare class GlobeWithHaloIndicator extends ReactNextElement implements GlobeWithHaloIndicatorProps {
22
+ /**
23
+ * 指标数据列表(显示在环上)
24
+ *
25
+ * 注意:最多显示8项数据
26
+ */
27
+ accessor dataSource: DataItem[] | undefined;
28
+ /** 中心数据(显示在中心地球内) */
29
+ accessor centerDataSource: DataItem | undefined;
30
+ /**
31
+ * 左上角指标数据列表
32
+ */
33
+ accessor cornerDataSource: CornerDataItem[] | undefined;
34
+ /**
35
+ * 最大缩放比例
36
+ *
37
+ * @default 1
38
+ */
39
+ accessor maxScale: number | undefined;
40
+ render(): React.JSX.Element;
41
+ }
42
+ export interface GlobeWithHaloIndicatorComponentProps extends GlobeWithHaloIndicatorProps {
43
+ root: GlobeWithHaloIndicator;
44
+ }
45
+ export declare function GlobeWithHaloIndicatorComponent({ root, dataSource, centerDataSource, cornerDataSource, maxScale, }: GlobeWithHaloIndicatorComponentProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,42 @@
1
+ 构件 `data-view.bubbles-indicator`
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview height="660px"
8
+ brick: div
9
+ properties:
10
+ style:
11
+ height: calc(100vh - 2em)
12
+ children:
13
+ - brick: data-view.bubbles-indicator
14
+ properties:
15
+ centerDataSource:
16
+ label: 资产总数
17
+ value: 30123
18
+ dataSource:
19
+ - label: 低值易耗品
20
+ value: 3889
21
+ - label: 摊销资产
22
+ value: 2087
23
+ - label: 固定资产
24
+ value: 12088
25
+ - label: 无形资产
26
+ value: 1082
27
+ - label: 在建工程
28
+ value: 10997
29
+ cornerDataSource:
30
+ - label: 资产增长
31
+ value: 43
32
+ color: red
33
+ - label: 资产减少
34
+ value: 21
35
+ color: green
36
+ # Currently this brick only works within dark theme
37
+ lifeCycle:
38
+ onPageLoad:
39
+ action: theme.setTheme
40
+ args:
41
+ - dark-v2
42
+ ```
@@ -1,34 +1,62 @@
1
- 构件 `data-view.china-map-chart`
1
+ 中国地图图表构件,可以显示省级指标数据
2
2
 
3
3
  ## Examples
4
4
 
5
5
  ### Basic
6
6
 
7
7
  ```yaml preview
8
- - brick: data-view.china-map-chart
9
- slots:
10
- detail:
11
- bricks:
12
- - brick: div
13
- properties:
14
- textContent: 内容区
15
- events:
16
- detail.open.change:
17
- - action: console.log
18
- properties:
19
- detailContentStyle:
20
- background: "yellow"
21
- dataSource:
22
- - text: "西藏 12311"
23
- detailDisplayLocation: "textBottom"
24
- city: 西藏
25
- - text: "四川 89781169"
26
- detailDisplayLocation: "textBottom"
27
- city: 四川
28
- - text: "台湾 234181"
29
- detailDisplayLocation: "pageCenter"
30
- city: 台湾
31
- - text: "江西 21348"
32
- detailDisplayLocation: "pageCenter"
33
- city: 江西
8
+ brick: data-view.china-map-chart
9
+ properties:
10
+ dataSource:
11
+ - text: "西藏 12311"
12
+ city: 西藏
13
+ - text: "四川 89781169"
14
+ city: 四川
15
+ - text: "台湾 234181"
16
+ city: 台湾
17
+ - text: "江西 21348"
18
+ city: 江西
19
+ # Currently this brick only looks well within dark theme
20
+ lifeCycle:
21
+ onPageLoad:
22
+ action: theme.setTheme
23
+ args:
24
+ - dark-v2
25
+ ```
26
+
27
+ ### With detail
28
+
29
+ ```yaml preview
30
+ brick: data-view.china-map-chart
31
+ properties:
32
+ detailContentStyle:
33
+ background: "yellow"
34
+ dataSource:
35
+ - text: "西藏 12311"
36
+ detailDisplayLocation: "textBottom"
37
+ city: 西藏
38
+ - text: "四川 89781169"
39
+ detailDisplayLocation: "textBottom"
40
+ city: 四川
41
+ - text: "台湾 234181"
42
+ detailDisplayLocation: "pageCenter"
43
+ city: 台湾
44
+ - text: "江西 21348"
45
+ detailDisplayLocation: "pageCenter"
46
+ city: 江西
47
+ events:
48
+ detail.open.change:
49
+ - action: console.log
50
+ slots:
51
+ detail:
52
+ bricks:
53
+ - brick: div
54
+ properties:
55
+ textContent: 内容区
56
+ # Currently this brick only looks well within dark theme
57
+ lifeCycle:
58
+ onPageLoad:
59
+ action: theme.setTheme
60
+ args:
61
+ - dark-v2
34
62
  ```
@@ -4,34 +4,39 @@
4
4
 
5
5
  ### Basic
6
6
 
7
- ```yaml preview minHeight="660px"
8
- brick: data-view.crystal-ball-indicator
7
+ ```yaml preview height="660px"
8
+ brick: div
9
9
  properties:
10
- centerDataSource:
11
- label: 资产总数
12
- value: 30123
13
- dataSource:
14
- - label: 低值易耗品
15
- value: 3889
16
- - label: 摊销资产
17
- value: 2087
18
- - label: 固定资产
19
- value: 12088
20
- - label: 无形资产
21
- value: 1082
22
- - label: 在建工程
23
- value: 10997
24
- cornerDataSource:
25
- - label: 资产增长
26
- value: 43
27
- color: red
28
- - label: 资产减少
29
- value: 21
30
- color: green
31
- # Currently this brick only works within dark theme
32
- lifeCycle:
33
- onPageLoad:
34
- action: theme.setTheme
35
- args:
36
- - dark-v2
10
+ style:
11
+ height: calc(100vh - 2em)
12
+ children:
13
+ - brick: data-view.crystal-ball-indicator
14
+ properties:
15
+ centerDataSource:
16
+ label: 资产总数
17
+ value: 30123
18
+ dataSource:
19
+ - label: 低值易耗品
20
+ value: 3889
21
+ - label: 摊销资产
22
+ value: 2087
23
+ - label: 固定资产
24
+ value: 12088
25
+ - label: 无形资产
26
+ value: 1082
27
+ - label: 在建工程
28
+ value: 10997
29
+ cornerDataSource:
30
+ - label: 资产增长
31
+ value: 43
32
+ color: red
33
+ - label: 资产减少
34
+ value: 21
35
+ color: green
36
+ # Currently this brick only works within dark theme
37
+ lifeCycle:
38
+ onPageLoad:
39
+ action: theme.setTheme
40
+ args:
41
+ - dark-v2
37
42
  ```
@@ -0,0 +1,42 @@
1
+ 地球加轮盘的数据展示构件。
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview height="660px"
8
+ brick: div
9
+ properties:
10
+ style:
11
+ height: calc(100vh - 2em)
12
+ children:
13
+ - brick: data-view.globe-with-gear-indicator
14
+ properties:
15
+ centerDataSource:
16
+ label: 资产总数
17
+ value: 30123
18
+ dataSource:
19
+ - label: 低值易耗品
20
+ value: 3889
21
+ - label: 摊销资产
22
+ value: 2087
23
+ - label: 固定资产
24
+ value: 12088
25
+ - label: 无形资产
26
+ value: 1082
27
+ - label: 在建工程
28
+ value: 10997
29
+ cornerDataSource:
30
+ - label: 资产增长
31
+ value: 43
32
+ color: red
33
+ - label: 资产减少
34
+ value: 21
35
+ color: green
36
+ # Currently this brick only works within dark theme
37
+ lifeCycle:
38
+ onPageLoad:
39
+ action: theme.setTheme
40
+ args:
41
+ - dark-v2
42
+ ```
@@ -0,0 +1,42 @@
1
+ 地球加光环的数据展示构件。
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview height="660px"
8
+ brick: div
9
+ properties:
10
+ style:
11
+ height: calc(100vh - 2em)
12
+ children:
13
+ - brick: data-view.globe-with-halo-indicator
14
+ properties:
15
+ centerDataSource:
16
+ label: 资产总数
17
+ value: 30123
18
+ dataSource:
19
+ - label: 低值易耗品
20
+ value: 3889
21
+ - label: 摊销资产
22
+ value: 2087
23
+ - label: 固定资产
24
+ value: 12088
25
+ - label: 无形资产
26
+ value: 1082
27
+ - label: 在建工程
28
+ value: 10997
29
+ cornerDataSource:
30
+ - label: 资产增长
31
+ value: 43
32
+ color: red
33
+ - label: 资产减少
34
+ value: 21
35
+ color: green
36
+ # Currently this brick only works within dark theme
37
+ lifeCycle:
38
+ onPageLoad:
39
+ action: theme.setTheme
40
+ args:
41
+ - dark-v2
42
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/data-view",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
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": "0d9124e467a82ea9b22c719b74a1552dc3191e00"
44
+ "gitHead": "e02ad0bd2d9a38c2a756cbdc49ccb17586eb0db0"
45
45
  }