@gm-pc/vision 1.26.2-beta.0 → 1.27.1-beta.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.
@@ -1,133 +1,133 @@
1
- .gm-vision-flex {
2
- display: flex;
3
- }
4
-
5
- .gm-vision-marignBottom {
6
- margin-bottom: 26px;
7
- }
8
-
9
- .gm-vision-flex-column {
10
- flex-direction: column;
11
- }
12
-
13
- .gm-vision-flex-flex {
14
- flex: 1;
15
- }
16
-
17
- .gm-vision-justify-center {
18
- justify-content: center;
19
- }
20
-
21
- .gm-vision-align-center {
22
- align-items: center;
23
- }
24
-
25
- /* --------------- grid ----------- */
26
-
27
- .gm-vision-container {
28
- color: #666;
29
- height: 500px;
30
- display: grid;
31
- grid-template-columns: 40px auto 60px;
32
- grid-template-rows: 40px auto;
33
- overflow: hidden;
34
- font-family: 'Helvetica';
35
-
36
- &.gm-vision-theme-ocean {
37
- grid-template-rows: auto;
38
- background: transparent;
39
- color: #e2e2e2;
40
-
41
- .gm-vision-title {
42
- border: none;
43
- }
44
-
45
- .gm-vision-index {
46
- padding: 10px;
47
-
48
- .gm-vision-index-number {
49
- width: 100%;
50
- padding-bottom: 100%;
51
- color: #fff;
52
- text-align: center;
53
- border-radius: 50%;
54
- padding: 2px;
55
- background: linear-gradient(to top, #48d4fb, rgb(31 88 178));
56
- }
57
- }
58
-
59
- .gm-vision-index:nth-child(n + 4) {
60
- padding: 10px;
61
-
62
- .gm-vision-index-number {
63
- background: transparent;
64
- box-shadow: inset 0px 0px 8px #48d4fb;
65
- }
66
- }
67
- }
68
-
69
- &.gm-vision-theme-sunset {
70
- grid-template-rows: auto;
71
- background: transparent;
72
- color: #e2e2e2;
73
-
74
- .gm-vision-title {
75
- border: none;
76
- }
77
-
78
- .gm-vision-index {
79
- padding: 10px;
80
-
81
- .gm-vision-index-number {
82
- width: 100%;
83
- padding-bottom: 100%;
84
- color: #fff;
85
- text-align: center;
86
- border-radius: 50%;
87
- padding: 2px;
88
- background: linear-gradient(to top, #f8a91d, #f16527);
89
- }
90
- }
91
-
92
- .gm-vision-index:nth-child(n + 4) {
93
- padding: 10px;
94
-
95
- .gm-vision-index-number {
96
- background: transparent;
97
- box-shadow: inset 0px 0px 6px 2px #eb9c00;
98
- }
99
- }
100
- }
101
- }
102
-
103
- .gm-vision-title {
104
- border-bottom: 1px solid #ddd;
105
- display: flex;
106
- align-items: center;
107
- }
108
-
109
- .gm-vision-name {
110
- font-size: 12px;
111
- }
112
-
113
- .gm-vision-index {
114
- .circle {
115
- width: 20px;
116
- height: 20px;
117
- color: #fff;
118
- text-align: center;
119
- border-radius: 50%;
120
- padding: 2px;
121
- background: linear-gradient(to top, #48d4fb, rgb(31 88 178));
122
- }
123
-
124
- .circle2 {
125
- width: 20px;
126
- height: 20px;
127
- color: #fff;
128
- text-align: center;
129
- border-radius: 50%;
130
- padding: 2px;
131
- box-shadow: inset 0px 0px 8px rgb(69 205 246);
132
- }
1
+ .gm-vision-flex {
2
+ display: flex;
3
+ }
4
+
5
+ .gm-vision-marignBottom {
6
+ margin-bottom: 26px;
7
+ }
8
+
9
+ .gm-vision-flex-column {
10
+ flex-direction: column;
11
+ }
12
+
13
+ .gm-vision-flex-flex {
14
+ flex: 1;
15
+ }
16
+
17
+ .gm-vision-justify-center {
18
+ justify-content: center;
19
+ }
20
+
21
+ .gm-vision-align-center {
22
+ align-items: center;
23
+ }
24
+
25
+ /* --------------- grid ----------- */
26
+
27
+ .gm-vision-container {
28
+ color: #666;
29
+ height: 500px;
30
+ display: grid;
31
+ grid-template-columns: 40px auto 60px;
32
+ grid-template-rows: 40px auto;
33
+ overflow: hidden;
34
+ font-family: 'Helvetica';
35
+
36
+ &.gm-vision-theme-ocean {
37
+ grid-template-rows: auto;
38
+ background: transparent;
39
+ color: #e2e2e2;
40
+
41
+ .gm-vision-title {
42
+ border: none;
43
+ }
44
+
45
+ .gm-vision-index {
46
+ padding: 10px;
47
+
48
+ .gm-vision-index-number {
49
+ width: 100%;
50
+ padding-bottom: 100%;
51
+ color: #fff;
52
+ text-align: center;
53
+ border-radius: 50%;
54
+ padding: 2px;
55
+ background: linear-gradient(to top, #48d4fb, rgb(31 88 178));
56
+ }
57
+ }
58
+
59
+ .gm-vision-index:nth-child(n + 4) {
60
+ padding: 10px;
61
+
62
+ .gm-vision-index-number {
63
+ background: transparent;
64
+ box-shadow: inset 0px 0px 8px #48d4fb;
65
+ }
66
+ }
67
+ }
68
+
69
+ &.gm-vision-theme-sunset {
70
+ grid-template-rows: auto;
71
+ background: transparent;
72
+ color: #e2e2e2;
73
+
74
+ .gm-vision-title {
75
+ border: none;
76
+ }
77
+
78
+ .gm-vision-index {
79
+ padding: 10px;
80
+
81
+ .gm-vision-index-number {
82
+ width: 100%;
83
+ padding-bottom: 100%;
84
+ color: #fff;
85
+ text-align: center;
86
+ border-radius: 50%;
87
+ padding: 2px;
88
+ background: linear-gradient(to top, #f8a91d, #f16527);
89
+ }
90
+ }
91
+
92
+ .gm-vision-index:nth-child(n + 4) {
93
+ padding: 10px;
94
+
95
+ .gm-vision-index-number {
96
+ background: transparent;
97
+ box-shadow: inset 0px 0px 6px 2px #eb9c00;
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ .gm-vision-title {
104
+ border-bottom: 1px solid #ddd;
105
+ display: flex;
106
+ align-items: center;
107
+ }
108
+
109
+ .gm-vision-name {
110
+ font-size: 12px;
111
+ }
112
+
113
+ .gm-vision-index {
114
+ .circle {
115
+ width: 20px;
116
+ height: 20px;
117
+ color: #fff;
118
+ text-align: center;
119
+ border-radius: 50%;
120
+ padding: 2px;
121
+ background: linear-gradient(to top, #48d4fb, rgb(31 88 178));
122
+ }
123
+
124
+ .circle2 {
125
+ width: 20px;
126
+ height: 20px;
127
+ color: #fff;
128
+ text-align: center;
129
+ border-radius: 50%;
130
+ padding: 2px;
131
+ box-shadow: inset 0px 0px 8px rgb(69 205 246);
132
+ }
133
133
  }
@@ -1,18 +1,18 @@
1
- import React, { FC, forwardRef } from 'react'
2
- import _Bar from './core'
3
- import useChart from '../../common/hooks/useChart'
4
- import TableChart from './components/table_chart'
5
- import { ChartProps, ChartOptions } from '../../types/common'
6
- import './index.less'
7
-
8
- const Bar: FC<ChartProps> = forwardRef((props, ref) => {
9
- const { container } = useChart(_Bar, props)
10
-
11
- if (props.options.adjust === 'table') {
12
- return <TableChart ref={container} options={props.options} data={props.data} />
13
- }
14
-
15
- return <div ref={container} />
16
- })
17
-
18
- export { Bar }
1
+ import React, { FC, forwardRef } from 'react'
2
+ import _Bar from './core'
3
+ import useChart from '../../common/hooks/useChart'
4
+ import TableChart from './components/table_chart'
5
+ import { ChartProps, ChartOptions } from '../../types/common'
6
+ import './index.less'
7
+
8
+ const Bar: FC<ChartProps> = forwardRef((props, ref) => {
9
+ const { container } = useChart(_Bar, props)
10
+
11
+ if (props.options.adjust === 'table') {
12
+ return <TableChart ref={container} options={props.options} data={props.data} />
13
+ }
14
+
15
+ return <div ref={container} />
16
+ })
17
+
18
+ export { Bar }