@next-bricks/data-view 0.13.4 → 0.13.5

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.
@@ -0,0 +1,76 @@
1
+ 电池显示构件
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.battery-chart
9
+ properties:
10
+ value: 30
11
+ style:
12
+ background-color: "#1c1e21"
13
+ display: block
14
+ ```
15
+
16
+ ### ThresholdValue
17
+
18
+ ```yaml preview
19
+ - brick: data-view.battery-chart
20
+ properties:
21
+ value: 100
22
+ thresholdValue: 120
23
+ batteryHeight: 80
24
+ batteryWidth: 50
25
+ thresholdColors:
26
+ - color: "linear-gradient(180deg, #246EFF 0%, #26CE90 100%)"
27
+ startValue: 0
28
+ endValue: 120
29
+ headerColor: "#246EFF"
30
+ - color: "linear-gradient(180deg, #FF772A 0%, #FFC22A 100%)"
31
+ startValue: 120
32
+ endValue: 200
33
+ headerColor: "#FF772A"
34
+ style:
35
+ background-color: "#1c1e21"
36
+ display: block
37
+ slots:
38
+ "":
39
+ type: bricks
40
+ bricks:
41
+ - brick: div
42
+ properties:
43
+ textContent: 标题
44
+ style:
45
+ color: "#fff"
46
+ opacity: 0.6
47
+ marginTop: 10px
48
+ fontSize: 14px
49
+ - brick: div
50
+ properties:
51
+ textContent: 数据信息
52
+ style:
53
+ color: "#fff"
54
+ fontSize: 20px
55
+ line-height: 29px
56
+ fontWeight: 500
57
+ left:
58
+ type: bricks
59
+ bricks:
60
+ - brick: div
61
+ properties:
62
+ textContent: 标题
63
+ style:
64
+ color: "#fff"
65
+ opacity: 0.6
66
+ marginTop: 10px
67
+ fontSize: 14px
68
+ - brick: div
69
+ properties:
70
+ textContent: 数据信息
71
+ style:
72
+ color: "#fff"
73
+ fontSize: 20px
74
+ line-height: 29px
75
+ fontWeight: 500
76
+ ```
@@ -0,0 +1,14 @@
1
+ data-view.cabinet-app-layer
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.cabinet-app-layer
9
+ properties:
10
+ appTitle: inventory-api
11
+ style:
12
+ width: 600px
13
+ background-color: "#1c1e21"
14
+ ```
@@ -0,0 +1,14 @@
1
+ data-view.cabinet-button
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.cabinet-button
9
+ properties:
10
+ buttonStyle:
11
+ width: 50px
12
+ height: 50px
13
+ background: "#1c1e21"
14
+ ```
@@ -0,0 +1,36 @@
1
+ data-view.cabinet-container
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.cabinet-container
9
+ properties:
10
+ customTitle: 集群容器
11
+ data:
12
+ - type: physical-machine
13
+ nodeTitle: "255.255.255"
14
+ - type: physical-machine
15
+ nodeTitle: "255.255.255"
16
+ style:
17
+ width: 400px
18
+ height: 500px
19
+ ```
20
+
21
+ ### Status
22
+
23
+ ```yaml preview
24
+ - brick: data-view.cabinet-container
25
+ properties:
26
+ customTitle: 集群容器
27
+ status: active
28
+ data:
29
+ - type: physical-machine
30
+ nodeTitle: "255.255.255"
31
+ - type: physical-machine
32
+ nodeTitle: "255.255.255"
33
+ style:
34
+ width: 400px
35
+ height: 500px
36
+ ```
@@ -0,0 +1,28 @@
1
+ data-view.cabinet-node
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.cabinet-node
9
+ properties:
10
+ type: container-group
11
+ nodeTitle: 容器组
12
+ style:
13
+ width: 100px
14
+ background: "#1c1e21"
15
+ ```
16
+
17
+ ### IsAlert
18
+
19
+ ```yaml preview
20
+ - brick: data-view.cabinet-node
21
+ properties:
22
+ type: container-group
23
+ nodeTitle: 容器组
24
+ isAlert: true
25
+ style:
26
+ width: 100px
27
+ background: "#1c1e21"
28
+ ```
@@ -0,0 +1,33 @@
1
+ 复杂的搜索框
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.complex-search
9
+ properties:
10
+ placeholder: Search
11
+ style:
12
+ background: "#1c1e21"
13
+ display: block
14
+ height: 300px
15
+ options:
16
+ - name: 主机1
17
+ icon:
18
+ lib: "antd"
19
+ icon: "account-book"
20
+ theme: "outlined"
21
+ - name: 主机2
22
+ icon:
23
+ lib: "antd"
24
+ icon: "account-book"
25
+ theme: "outlined"
26
+ events:
27
+ select:
28
+ - action: console.log
29
+ search:
30
+ - action: console.log
31
+ focus:
32
+ - action: console.log
33
+ ```
@@ -0,0 +1,20 @@
1
+ 大屏基础下拉菜单
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.dropdown-menu
9
+ properties:
10
+ options:
11
+ - label: 测试1
12
+ value: test1
13
+ - label: 测试2
14
+ value: test2
15
+ placeholder: 请选择
16
+ allowClear: true
17
+ events:
18
+ value.change:
19
+ - action: console.log
20
+ ```
@@ -0,0 +1,26 @@
1
+ 大屏仪表盘构件
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.gauge-chart
9
+ properties:
10
+ value: 100
11
+ radius: 180
12
+ strokeWidth: 20
13
+ description: 已部署 1490 个 / 3300个
14
+ slots:
15
+ "":
16
+ type: bricks
17
+ bricks:
18
+ - brick: div
19
+ properties:
20
+ textContent: 已部署 1490 个 / 3300个
21
+ style:
22
+ font-size: 16px
23
+ font-weight: 500
24
+ color: "#fff"
25
+ margin: 0 0 300px 0
26
+ ```
@@ -0,0 +1,15 @@
1
+ 齿轮背景
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.gear-background
9
+ properties:
10
+ style:
11
+ width: 300px
12
+ height: 300px
13
+ display: block
14
+ background: "#1c1e21"
15
+ ```
@@ -0,0 +1,97 @@
1
+ 有规律的网格布局的拓扑
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.graph-layout-grid
9
+ properties:
10
+ columns: 7
11
+ rows: 3
12
+ style:
13
+ width: 960px
14
+ height: 600px
15
+ display: block
16
+ background-color: "#1c1e21"
17
+ dataSource:
18
+ - text: 负载均衡数
19
+ value: 200
20
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
21
+ - text: 应用
22
+ value: 7348
23
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
24
+ - text: 存储卷数
25
+ value: 638
26
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
27
+ - text: 负载均衡数
28
+ value: 200
29
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
30
+ - text: 应用
31
+ value: 200
32
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
33
+ - text: 守护进程数
34
+ value: 200
35
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
36
+ - text: 负载均衡数
37
+ value: 200
38
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
39
+ - text: 容器组数
40
+ value: 200
41
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
42
+ - text: 无状态服务数
43
+ value: 200
44
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
45
+ - text: 负载均衡数
46
+ value: 200
47
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
48
+ ```
49
+
50
+ ### IsReverse
51
+
52
+ ```yaml preview
53
+ - brick: data-view.graph-layout-grid
54
+ properties:
55
+ columns: 7
56
+ rows: 3
57
+ isReverse: true
58
+ style:
59
+ width: 960px
60
+ height: 600px
61
+ display: block
62
+ background-color: "#1c1e21"
63
+ dataSource:
64
+ - text: 负载均衡数
65
+ value: 200
66
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
67
+ - text: 应用
68
+ value: 7348
69
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
70
+ - text: 存储卷数
71
+ value: 638
72
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
73
+ - text: 负载均衡数
74
+ value: 200
75
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
76
+ - text: 应用
77
+ value: 200
78
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
79
+ - text: 守护进程数
80
+ value: 200
81
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
82
+ - text: 负载均衡数
83
+ value: 200
84
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
85
+ - text: 容器组数
86
+ value: 200
87
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
88
+ - text: 无状态服务数
89
+ value: 200
90
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
91
+ - text: 负载均衡数
92
+ value: 200
93
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
94
+ - text: 负载均衡数
95
+ value: 200
96
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
97
+ ```
@@ -0,0 +1,14 @@
1
+ data-view.graph-node
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.graph-node
9
+ properties:
10
+ url: https://user-assets.sxlcdn.com/images/367275/FtgabYjUD_Xhmne2wsyLPcKqlgCi.png
11
+ style:
12
+ width: 140px
13
+ display: block
14
+ ```
@@ -0,0 +1,13 @@
1
+ data-view.graph-text
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.graph-text
9
+ properties:
10
+ text: 负载均衡数
11
+ value: 234
12
+ style:
13
+ ```
@@ -0,0 +1,21 @@
1
+ 网格背景
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.grid-background
9
+ properties:
10
+ style:
11
+ width: 920px
12
+ height: 600px
13
+ display: block
14
+ background-color: "#1c1e21"
15
+ color: "#235F90"
16
+ particleColor:
17
+ startColor: "#477AFFFF"
18
+ endColor: "#5F83FF00"
19
+ maskStyle:
20
+ background: "rgba(41, 109, 255, 0.8)"
21
+ ```
@@ -0,0 +1,32 @@
1
+ data-view.loading-panel
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.loading-panel
9
+ properties:
10
+ customTitle: Hello World!!
11
+ loading: false
12
+ style:
13
+ height: 300px
14
+ display: block
15
+ ```
16
+
17
+ ### Progress
18
+
19
+ ```yaml preview
20
+ - brick: data-view.loading-panel
21
+ properties:
22
+ customTitle: Hello World!!
23
+ progress: 60
24
+ useRealTimeProgress: true
25
+ intervalTime: 300
26
+ style:
27
+ height: 300px
28
+ display: block
29
+ events:
30
+ end:
31
+ - action: console.log
32
+ ```
@@ -0,0 +1,54 @@
1
+ 现在风格的组件标题
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.modern-style-component-title
9
+ properties:
10
+ componentTitle: 组件标题
11
+ style:
12
+ height: 50px
13
+ display: block
14
+ background-color: "#1c1e21"
15
+ ```
16
+
17
+ ### TitleSuffix && Toolbar slot
18
+
19
+ ```yaml preview
20
+ - brick: data-view.modern-style-component-title
21
+ properties:
22
+ componentTitle: 组件标题
23
+ style:
24
+ height: 50px
25
+ display: block
26
+ background-color: "#1c1e21"
27
+ slots:
28
+ toolbar:
29
+ type: bricks
30
+ bricks:
31
+ - brick: span
32
+ properties:
33
+ textContent: toolbar
34
+ titleSuffix:
35
+ type: bricks
36
+ bricks:
37
+ - brick: span
38
+ properties:
39
+ textContent: titleSuffix
40
+ ```
41
+
42
+ ### hideRightComponent
43
+
44
+ ```yaml preview
45
+ - brick: data-view.modern-style-component-title
46
+ properties:
47
+ componentTitle: 组件标题
48
+ hideRightComponent: false
49
+ hideLeftComponent: true
50
+ style:
51
+ height: 50px
52
+ display: block
53
+ background-color: "#1c1e21"
54
+ ```
@@ -0,0 +1,15 @@
1
+ 现代风格的页面标题构件
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ - brick: data-view.modern-style-page-title
9
+ properties:
10
+ pageTitle: XX应用大屏
11
+ description: "- APPLICATION HEALTH MONITORING SCREEN -"
12
+ style:
13
+ display: block
14
+ background-color: "#1c1e21"
15
+ ```