sh-chart 1.5.2
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/.eslintrc.js +21 -0
- package/README.en.md +36 -0
- package/README.md +39 -0
- package/package.json +42 -0
- package/packages/components/global-components/mixin/autoResize.js +152 -0
- package/packages/components/global-components/sh-border/components/border1.vue +70 -0
- package/packages/components/global-components/sh-border/components/border10.vue +54 -0
- package/packages/components/global-components/sh-border/components/border11.vue +207 -0
- package/packages/components/global-components/sh-border/components/border12.vue +112 -0
- package/packages/components/global-components/sh-border/components/border13.vue +50 -0
- package/packages/components/global-components/sh-border/components/border2.vue +50 -0
- package/packages/components/global-components/sh-border/components/border3.vue +53 -0
- package/packages/components/global-components/sh-border/components/border4.vue +95 -0
- package/packages/components/global-components/sh-border/components/border5.vue +64 -0
- package/packages/components/global-components/sh-border/components/border6.vue +60 -0
- package/packages/components/global-components/sh-border/components/border7.vue +57 -0
- package/packages/components/global-components/sh-border/components/border8.vue +75 -0
- package/packages/components/global-components/sh-border/components/border9.vue +92 -0
- package/packages/components/global-components/sh-border/index.vue +73 -0
- package/packages/components/global-components/sh-border/mixin/border.js +62 -0
- package/packages/components/global-components/sh-charts/config/config.js +58 -0
- package/packages/components/global-components/sh-charts/index.vue +169 -0
- package/packages/components/global-components/sh-decoration/components/decoration1.vue +81 -0
- package/packages/components/global-components/sh-decoration/components/decoration10.vue +80 -0
- package/packages/components/global-components/sh-decoration/components/decoration11.vue +63 -0
- package/packages/components/global-components/sh-decoration/components/decoration12.vue +171 -0
- package/packages/components/global-components/sh-decoration/components/decoration2.vue +78 -0
- package/packages/components/global-components/sh-decoration/components/decoration3.vue +65 -0
- package/packages/components/global-components/sh-decoration/components/decoration4.vue +72 -0
- package/packages/components/global-components/sh-decoration/components/decoration5.vue +96 -0
- package/packages/components/global-components/sh-decoration/components/decoration6.vue +84 -0
- package/packages/components/global-components/sh-decoration/components/decoration7.vue +31 -0
- package/packages/components/global-components/sh-decoration/components/decoration8.vue +32 -0
- package/packages/components/global-components/sh-decoration/components/decoration9.vue +63 -0
- package/packages/components/global-components/sh-decoration/index.vue +71 -0
- package/packages/components/global-components/sh-decoration/mixin/decoration.js +69 -0
- package/packages/components/global-components/sh-screen-header/components/header1.vue +228 -0
- package/packages/components/global-components/sh-screen-header/components/header2.vue +285 -0
- package/packages/components/global-components/sh-screen-header/components/header3.vue +452 -0
- package/packages/components/global-components/sh-screen-header/components/header4.vue +544 -0
- package/packages/components/global-components/sh-screen-header/components/header5.vue +291 -0
- package/packages/components/global-components/sh-screen-header/components/header6.vue +206 -0
- package/packages/components/global-components/sh-screen-header/index.vue +50 -0
- package/packages/components/global-components/sh-screen-header/mixin/header.js +62 -0
- package/packages/components/global-components/sh-spin/index.vue +44 -0
- package/packages/components/index.js +24 -0
- package/packages/echarts/index.js +94 -0
- package/packages/echarts/map/110000.json +1 -0
- package/packages/echarts/map/120000.json +1 -0
- package/packages/echarts/map/130000.json +1 -0
- package/packages/echarts/map/140000.json +1 -0
- package/packages/echarts/map/150000.json +1 -0
- package/packages/echarts/map/210000.json +1 -0
- package/packages/echarts/map/220000.json +1 -0
- package/packages/echarts/map/230000.json +1 -0
- package/packages/echarts/map/310000.json +1 -0
- package/packages/echarts/map/320000.json +1 -0
- package/packages/echarts/map/330000.json +1 -0
- package/packages/echarts/map/340000.json +1 -0
- package/packages/echarts/map/350000.json +1 -0
- package/packages/echarts/map/360000.json +1 -0
- package/packages/echarts/map/370000.json +1 -0
- package/packages/echarts/map/410000.json +1 -0
- package/packages/echarts/map/420000.json +1 -0
- package/packages/echarts/map/430000.json +1 -0
- package/packages/echarts/map/440000.json +1 -0
- package/packages/echarts/map/450000.json +1 -0
- package/packages/echarts/map/460000.json +1 -0
- package/packages/echarts/map/500000.json +1 -0
- package/packages/echarts/map/510000.json +1 -0
- package/packages/echarts/map/520000.json +1 -0
- package/packages/echarts/map/530000.json +1 -0
- package/packages/echarts/map/540000.json +1 -0
- package/packages/echarts/map/610000.json +1 -0
- package/packages/echarts/map/620000.json +1 -0
- package/packages/echarts/map/630000.json +1 -0
- package/packages/echarts/map/640000.json +1 -0
- package/packages/echarts/map/650000.json +1 -0
- package/packages/echarts/map/710000.json +1 -0
- package/packages/echarts/map/china.json +1 -0
- package/packages/echarts/theme/dark.js +128 -0
- package/packages/echarts/theme/infographic.js +181 -0
- package/packages/echarts/theme/macarons.js +194 -0
- package/packages/echarts/theme/roma.js +66 -0
- package/packages/echarts/theme/shine.js +136 -0
- package/packages/echarts/theme/vintage.js +11 -0
- package/packages/index.js +31 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-resize="resize" class="sh-screen-header sh-screen-header5" :style="{ width: width, height: height }">
|
|
3
|
+
<svg width="1920px" height="90px" :style="svgStyle">
|
|
4
|
+
<radialGradient id="sh_screen_header5_svg_1_" cx="960.2" cy="-6297.3101" r="431.0873" gradientTransform="matrix(1 0 0 -8.416572e-02 0 -445.3614)" gradientUnits="userSpaceOnUse">
|
|
5
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
6
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0`" />
|
|
7
|
+
</radialGradient>
|
|
8
|
+
<ellipse class="st0" cx="960.2" cy="84.7" rx="439.9" ry="5.3" />
|
|
9
|
+
<g class="st1">
|
|
10
|
+
<linearGradient id="sh_screen_header5_svg_2_" gradientUnits="userSpaceOnUse" x1="960.2" y1="2965.6001" x2="960.2" y2="2901.5688" gradientTransform="matrix(1 0 0 1 0 -2893)">
|
|
11
|
+
<stop offset="0" style="stop-color: #1de2ff; stop-opacity: 0.4" />
|
|
12
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0`" />
|
|
13
|
+
</linearGradient>
|
|
14
|
+
<polygon class="st2" :stroke="color" points="1283.8,8.5 636.6,8.5 701.6,72.6 1218.9,72.6" />
|
|
15
|
+
</g>
|
|
16
|
+
<g>
|
|
17
|
+
<g>
|
|
18
|
+
<polyline class="st3" :stroke="color" points="0.2,52.8 27.4,80.1 805,80.1" />
|
|
19
|
+
<polyline class="st3" :stroke="color" points="1919.9,53.2 1894.9,78.1 1117.3,78.1" />
|
|
20
|
+
<animate
|
|
21
|
+
accumulate="none"
|
|
22
|
+
additive="replace"
|
|
23
|
+
attributeName="stroke-dasharray"
|
|
24
|
+
attributeType="XML"
|
|
25
|
+
begin="0s"
|
|
26
|
+
calcMode="spline"
|
|
27
|
+
dur="10s"
|
|
28
|
+
fill="remove"
|
|
29
|
+
from="0, 1000, 0, 10"
|
|
30
|
+
keySplines="0.1,0.5,0.2,1"
|
|
31
|
+
keyTimes="0;1"
|
|
32
|
+
repeatCount="indefinite"
|
|
33
|
+
restart="always"
|
|
34
|
+
to="0, 0, 1000, 0"></animate>
|
|
35
|
+
</g>
|
|
36
|
+
<g>
|
|
37
|
+
<polygon :fill="color" points="788.5,85.8 754.5,85.8 747.1,78.3 781,78.3" />
|
|
38
|
+
<animate
|
|
39
|
+
accumulate="none"
|
|
40
|
+
additive="replace"
|
|
41
|
+
attributeName="opacity"
|
|
42
|
+
begin="0s"
|
|
43
|
+
calcMode="linear"
|
|
44
|
+
dur="1.5s"
|
|
45
|
+
fill="remove"
|
|
46
|
+
repeatCount="indefinite"
|
|
47
|
+
restart="always"
|
|
48
|
+
values="0.8;0.6;0.2"></animate>
|
|
49
|
+
</g>
|
|
50
|
+
<g>
|
|
51
|
+
<polygon :fill="color" points="815.9,88 789.3,88 779.6,78.3 806.2,78.3" />
|
|
52
|
+
</g>
|
|
53
|
+
<g class="st5">
|
|
54
|
+
<polygon :fill="color" points="860.7,84.3 828.8,84.3 817.1,72.6 849,72.6" />
|
|
55
|
+
</g>
|
|
56
|
+
<g>
|
|
57
|
+
<polygon :fill="color" points="1054.2,90 866.7,90 855,78.3 1066.6,78.3" />
|
|
58
|
+
</g>
|
|
59
|
+
<g class="st6">
|
|
60
|
+
<polygon :fill="color" points="803.3,72.6 1120.6,72.6 1126.6,78.6 797,78.6" />
|
|
61
|
+
</g>
|
|
62
|
+
<g class="st5">
|
|
63
|
+
<polygon :fill="color" points="1060,84.3 1091.9,84.3 1103.6,72.6 1071.7,72.6" />
|
|
64
|
+
</g>
|
|
65
|
+
<g>
|
|
66
|
+
<polygon :fill="color" points="1134.2,85.8 1168.1,85.8 1175.6,78.3 1141.6,78.3" />
|
|
67
|
+
<animate
|
|
68
|
+
accumulate="none"
|
|
69
|
+
additive="replace"
|
|
70
|
+
attributeName="opacity"
|
|
71
|
+
begin="0s"
|
|
72
|
+
calcMode="linear"
|
|
73
|
+
dur="1.5s"
|
|
74
|
+
fill="remove"
|
|
75
|
+
repeatCount="indefinite"
|
|
76
|
+
restart="always"
|
|
77
|
+
values="0.8;0.6;0.2"></animate>
|
|
78
|
+
</g>
|
|
79
|
+
<g>
|
|
80
|
+
<polygon :fill="color" points="1106.8,88 1133.3,88 1143,78.3 1116.5,78.3" />
|
|
81
|
+
</g>
|
|
82
|
+
</g>
|
|
83
|
+
<g>
|
|
84
|
+
<g>
|
|
85
|
+
<polygon :fill="color" points="1001.6,9.7 918.7,9.7 916.4,7.4 1004,7.4" />
|
|
86
|
+
</g>
|
|
87
|
+
</g>
|
|
88
|
+
<g>
|
|
89
|
+
<g>
|
|
90
|
+
<polyline class="st3" :stroke="color" points="-0.2,9.6 604.2,9.6 635.1,40.5" />
|
|
91
|
+
<g>
|
|
92
|
+
<ellipse transform="matrix(0.8507 -0.5257 0.5257 0.8507 73.5829 339.8563)" :fill="color" cx="635" cy="40.4" rx="3.8" ry="3.8" />
|
|
93
|
+
</g>
|
|
94
|
+
</g>
|
|
95
|
+
</g>
|
|
96
|
+
<g>
|
|
97
|
+
<linearGradient id="sh_screen_header5_svg_3_" gradientUnits="userSpaceOnUse" x1="732.7" y1="56.3" x2="732.7" y2="87.9" gradientTransform="matrix(1 0 0 -1 0 92)">
|
|
98
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
99
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
100
|
+
</linearGradient>
|
|
101
|
+
<polygon class="st7" points="764.4,35.7 732.6,35.7 701,4.1 732.9,4.1" />
|
|
102
|
+
</g>
|
|
103
|
+
<g class="st1">
|
|
104
|
+
<linearGradient id="sh_screen_header5_svg_4_" gradientUnits="userSpaceOnUse" x1="692.8" y1="56.3" x2="692.8" y2="87.9" gradientTransform="matrix(1 0 0 -1 0 92)">
|
|
105
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
106
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
107
|
+
</linearGradient>
|
|
108
|
+
<polygon class="st8" points="724.5,35.7 692.7,35.7 661.1,4.1 692.9,4.1" />
|
|
109
|
+
</g>
|
|
110
|
+
<g class="st6">
|
|
111
|
+
<linearGradient id="sh_screen_header5_svg_5_" gradientUnits="userSpaceOnUse" x1="652.85" y1="56.3" x2="652.85" y2="87.9" gradientTransform="matrix(1 0 0 -1 0 92)">
|
|
112
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
113
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
114
|
+
</linearGradient>
|
|
115
|
+
<polygon class="st9" points="684.5,35.7 652.7,35.7 621.2,4.1 653,4.1" />
|
|
116
|
+
</g>
|
|
117
|
+
<g>
|
|
118
|
+
<polygon :fill="color" points="607.7,17.5 591.9,17.5 586.8,12.3 602.5,12.3">
|
|
119
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.05" repeatCount="indefinite" />
|
|
120
|
+
</polygon>
|
|
121
|
+
</g>
|
|
122
|
+
<g class="st10">
|
|
123
|
+
<polygon :fill="color" points="588.9,17.5 573.2,17.5 568,12.3 583.8,12.3">
|
|
124
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.1" repeatCount="indefinite" />
|
|
125
|
+
</polygon>
|
|
126
|
+
</g>
|
|
127
|
+
<g class="st1">
|
|
128
|
+
<polygon :fill="color" points="570.2,17.5 554.5,17.5 549.3,12.3 565,12.3">
|
|
129
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.2" repeatCount="indefinite" />
|
|
130
|
+
</polygon>
|
|
131
|
+
</g>
|
|
132
|
+
<g class="st11">
|
|
133
|
+
<polygon :fill="color" points="551.5,17.5 535.7,17.5 530.6,12.3 546.3,12.3">
|
|
134
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.4" repeatCount="indefinite" />
|
|
135
|
+
</polygon>
|
|
136
|
+
</g>
|
|
137
|
+
<g class="st6">
|
|
138
|
+
<polygon :fill="color" points="532.8,17.5 517,17.5 511.8,12.3 527.6,12.3">
|
|
139
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.6" repeatCount="indefinite" />
|
|
140
|
+
</polygon>
|
|
141
|
+
</g>
|
|
142
|
+
<g class="st12">
|
|
143
|
+
<polygon :fill="color" points="514,17.5 498.3,17.5 493.1,12.3 508.8,12.3">
|
|
144
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.8" repeatCount="indefinite" />
|
|
145
|
+
</polygon>
|
|
146
|
+
</g>
|
|
147
|
+
<g class="st12">
|
|
148
|
+
<polygon :fill="color" points="495.3,17.5 327.7,17.5 322.5,12.3 490.1,12.3">
|
|
149
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="1.1" repeatCount="indefinite" />
|
|
150
|
+
</polygon>
|
|
151
|
+
</g>
|
|
152
|
+
<g>
|
|
153
|
+
<g>
|
|
154
|
+
<polyline class="st3" :stroke="color" points="1920.2,9.6 1315.8,9.6 1284.9,40.5" />
|
|
155
|
+
<g>
|
|
156
|
+
<path :fill="color" d="M1282.4,37.7c-1.5,1.5-1.5,3.8,0,5.3s3.8,1.5,5.3,0s1.5-3.8,0-5.3C1286.2,36.3,1283.8,36.3,1282.4,37.7z" />
|
|
157
|
+
</g>
|
|
158
|
+
</g>
|
|
159
|
+
</g>
|
|
160
|
+
<g>
|
|
161
|
+
<linearGradient id="sh_screen_header5_svg_6_" gradientUnits="userSpaceOnUse" x1="85.325" y1="56.3" x2="85.325" y2="87.9" gradientTransform="matrix(-1 0 0 -1 1272.625 92)">
|
|
162
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
163
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
164
|
+
</linearGradient>
|
|
165
|
+
<polygon class="st13" points="1155.6,35.7 1187.4,35.7 1219,4.1 1187.1,4.1" />
|
|
166
|
+
</g>
|
|
167
|
+
<g class="st1">
|
|
168
|
+
<linearGradient id="sh_screen_header5_svg_7_" gradientUnits="userSpaceOnUse" x1="45.425" y1="56.3" x2="45.425" y2="87.9" gradientTransform="matrix(-1 0 0 -1 1272.625 92)">
|
|
169
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
170
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
171
|
+
</linearGradient>
|
|
172
|
+
<polygon class="st14" points="1195.5,35.7 1227.3,35.7 1258.9,4.1 1227.1,4.1" />
|
|
173
|
+
</g>
|
|
174
|
+
<g class="st6">
|
|
175
|
+
<linearGradient id="sh_screen_header5_svg_8_" gradientUnits="userSpaceOnUse" x1="5.475" y1="56.3" x2="5.475" y2="87.9" gradientTransform="matrix(-1 0 0 -1 1272.625 92)">
|
|
176
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
177
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
178
|
+
</linearGradient>
|
|
179
|
+
<polygon class="st15" points="1235.5,35.7 1267.3,35.7 1298.8,4.1 1267,4.1" />
|
|
180
|
+
</g>
|
|
181
|
+
<g>
|
|
182
|
+
<polygon :fill="color" points="1312.3,17.5 1328.1,17.5 1333.2,12.3 1317.5,12.3">
|
|
183
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.05" repeatCount="indefinite" />
|
|
184
|
+
</polygon>
|
|
185
|
+
</g>
|
|
186
|
+
<g class="st10">
|
|
187
|
+
<polygon :fill="color" points="1331.1,17.5 1346.8,17.5 1352,12.3 1336.2,12.3">
|
|
188
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.1" repeatCount="indefinite" />
|
|
189
|
+
</polygon>
|
|
190
|
+
</g>
|
|
191
|
+
<g class="st1">
|
|
192
|
+
<polygon :fill="color" points="1349.8,17.5 1365.5,17.5 1370.7,12.3 1355,12.3">
|
|
193
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.2" repeatCount="indefinite" />
|
|
194
|
+
</polygon>
|
|
195
|
+
</g>
|
|
196
|
+
<g class="st11">
|
|
197
|
+
<polygon :fill="color" points="1368.5,17.5 1384.3,17.5 1389.4,12.3 1373.7,12.3">
|
|
198
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.4" repeatCount="indefinite" />
|
|
199
|
+
</polygon>
|
|
200
|
+
</g>
|
|
201
|
+
<g class="st6">
|
|
202
|
+
<polygon :fill="color" points="1387.2,17.5 1403,17.5 1408.2,12.3 1392.4,12.3">
|
|
203
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.6" repeatCount="indefinite" />
|
|
204
|
+
</polygon>
|
|
205
|
+
</g>
|
|
206
|
+
<g class="st12">
|
|
207
|
+
<polygon :fill="color" points="1406,17.5 1421.7,17.5 1426.9,12.3 1411.2,12.3">
|
|
208
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="0.8" repeatCount="indefinite" />
|
|
209
|
+
</polygon>
|
|
210
|
+
</g>
|
|
211
|
+
<g class="st12">
|
|
212
|
+
<polygon :fill="color" points="1424.7,17.5 1592.3,17.5 1597.5,12.3 1429.9,12.3">
|
|
213
|
+
<animate attributeName="fill" :values="`transparent;${color}`" dur="1.1" begin="1.1" repeatCount="indefinite" />
|
|
214
|
+
</polygon>
|
|
215
|
+
</g>
|
|
216
|
+
</svg>
|
|
217
|
+
<div class="sh-screen-header-content" :style="svgStyle">
|
|
218
|
+
<slot></slot>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
</template>
|
|
222
|
+
|
|
223
|
+
<script>
|
|
224
|
+
import mixin from '../mixin/header'
|
|
225
|
+
export default {
|
|
226
|
+
name: 'ScreenHeader5',
|
|
227
|
+
mixins: [mixin]
|
|
228
|
+
}
|
|
229
|
+
</script>
|
|
230
|
+
|
|
231
|
+
<style lang="scss" scoped>
|
|
232
|
+
.sh-screen-header5 {
|
|
233
|
+
.st0 {
|
|
234
|
+
fill: url(#sh_screen_header5_svg_1_);
|
|
235
|
+
}
|
|
236
|
+
.st1 {
|
|
237
|
+
opacity: 0.6;
|
|
238
|
+
}
|
|
239
|
+
.st2 {
|
|
240
|
+
fill: url(#sh_screen_header5_svg_2_);
|
|
241
|
+
stroke-miterlimit: 10;
|
|
242
|
+
}
|
|
243
|
+
.st3 {
|
|
244
|
+
fill: none;
|
|
245
|
+
stroke-linecap: round;
|
|
246
|
+
stroke-miterlimit: 10;
|
|
247
|
+
}
|
|
248
|
+
.st5 {
|
|
249
|
+
opacity: 0.7;
|
|
250
|
+
}
|
|
251
|
+
.st6 {
|
|
252
|
+
opacity: 0.2;
|
|
253
|
+
}
|
|
254
|
+
.st7 {
|
|
255
|
+
fill: url(#sh_screen_header5_svg_3_);
|
|
256
|
+
}
|
|
257
|
+
.st8 {
|
|
258
|
+
fill: url(#sh_screen_header5_svg_4_);
|
|
259
|
+
}
|
|
260
|
+
.st9 {
|
|
261
|
+
fill: url(#sh_screen_header5_svg_5_);
|
|
262
|
+
}
|
|
263
|
+
.st10 {
|
|
264
|
+
opacity: 0.8;
|
|
265
|
+
}
|
|
266
|
+
.st11 {
|
|
267
|
+
opacity: 0.4;
|
|
268
|
+
}
|
|
269
|
+
.st12 {
|
|
270
|
+
opacity: 0.1;
|
|
271
|
+
}
|
|
272
|
+
.st13 {
|
|
273
|
+
fill: url(#sh_screen_header5_svg_6_);
|
|
274
|
+
}
|
|
275
|
+
.st14 {
|
|
276
|
+
fill: url(#sh_screen_header5_svg_7_);
|
|
277
|
+
}
|
|
278
|
+
.st15 {
|
|
279
|
+
fill: url(#sh_screen_header5_svg_8_);
|
|
280
|
+
}
|
|
281
|
+
.sh-screen-header-content {
|
|
282
|
+
position: absolute;
|
|
283
|
+
width: 100%;
|
|
284
|
+
top: 6px;
|
|
285
|
+
text-align: center;
|
|
286
|
+
font-size: 42px;
|
|
287
|
+
line-height: 65px;
|
|
288
|
+
font-weight: 600;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
</style>
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-resize="resize" class="sh-screen-header sh-screen-header6" :style="{ width: width, height: height }">
|
|
3
|
+
<svg width="1920px" height="90px" :style="svgStyle">
|
|
4
|
+
<radialGradient
|
|
5
|
+
id="sh_screen_header6_svg_1_"
|
|
6
|
+
cx="-65.2149"
|
|
7
|
+
cy="-245.8751"
|
|
8
|
+
r="755.9723"
|
|
9
|
+
fx="-65.5286"
|
|
10
|
+
fy="-471.926"
|
|
11
|
+
gradientTransform="matrix(0.8529 0 0 0.145 56.011 -9.8191)"
|
|
12
|
+
gradientUnits="userSpaceOnUse">
|
|
13
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
14
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0`" />
|
|
15
|
+
</radialGradient>
|
|
16
|
+
<path
|
|
17
|
+
class="st0"
|
|
18
|
+
d="M641.6,24.3c0,13.4-248.1,24.3-554.2,24.3c-35.5,0-87.5-0.3-87.5-0.3L0.3,0c0,0,54.2,0,87.1,0
|
|
19
|
+
c242.8,0,554.3,0,554.3,0S641.6,21.6,641.6,24.3z" />
|
|
20
|
+
<g class="st1">
|
|
21
|
+
<linearGradient id="sh_screen_header6_svg_2_" gradientUnits="userSpaceOnUse" x1="595.2904" y1="49.9371" x2="595.2904" y2="10.4375" gradientTransform="matrix(-1 0 0 1 1221.6563 0)">
|
|
22
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
23
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
24
|
+
</linearGradient>
|
|
25
|
+
<polygon class="st2" points="593.2,49.9 620.1,49.9 659.5,10.4 632.7,10.4" />
|
|
26
|
+
<animate
|
|
27
|
+
accumulate="none"
|
|
28
|
+
additive="replace"
|
|
29
|
+
attributeName="opacity"
|
|
30
|
+
begin="0s"
|
|
31
|
+
calcMode="linear"
|
|
32
|
+
dur="3s"
|
|
33
|
+
fill="remove"
|
|
34
|
+
repeatCount="indefinite"
|
|
35
|
+
restart="always"
|
|
36
|
+
values="0.6;0.4;0.3"></animate>
|
|
37
|
+
</g>
|
|
38
|
+
<g class="st3">
|
|
39
|
+
<linearGradient id="sh_screen_header6_svg_3_" gradientUnits="userSpaceOnUse" x1="618.7816" y1="54.4375" x2="618.7816" y2="10.4375" gradientTransform="matrix(-1 0 0 1 1221.6563 0)">
|
|
40
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
41
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
42
|
+
</linearGradient>
|
|
43
|
+
<polygon class="st4" points="566,54.4 595.8,54.4 639.8,10.4 609.9,10.4 " />
|
|
44
|
+
<animate
|
|
45
|
+
accumulate="none"
|
|
46
|
+
additive="replace"
|
|
47
|
+
attributeName="opacity"
|
|
48
|
+
begin="0.2s"
|
|
49
|
+
calcMode="linear"
|
|
50
|
+
dur="3s"
|
|
51
|
+
fill="remove"
|
|
52
|
+
repeatCount="indefinite"
|
|
53
|
+
restart="always"
|
|
54
|
+
values="0.3;0.4;0.6"></animate>
|
|
55
|
+
</g>
|
|
56
|
+
<g class="st1">
|
|
57
|
+
<linearGradient id="sh_screen_header6_svg_4_" gradientUnits="userSpaceOnUse" x1="-53.7348" y1="72.6793" x2="-53.7348" y2="45.5429" gradientTransform="matrix(-1 0 0 1 1221.6563 0)">
|
|
58
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
59
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0`" />
|
|
60
|
+
</linearGradient>
|
|
61
|
+
<polygon class="st5" points="631.5,73.9 1919.3,73.9 1919.3,43.8 661.6,43.8 " />
|
|
62
|
+
</g>
|
|
63
|
+
<g class="st1">
|
|
64
|
+
<linearGradient id="sh_screen_header6_svg_5_" gradientUnits="userSpaceOnUse" x1="31.6832" y1="41.7663" x2="31.6832" y2="5.5625" gradientTransform="matrix(-1 0 0 1 1221.6563 0)">
|
|
65
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
66
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
67
|
+
</linearGradient>
|
|
68
|
+
<polygon class="st6" points="1159.6,41.8 1184.2,41.8 1220.3,5.6 1195.8,5.6 " />
|
|
69
|
+
<animate
|
|
70
|
+
accumulate="none"
|
|
71
|
+
additive="replace"
|
|
72
|
+
attributeName="opacity"
|
|
73
|
+
begin="0.8s"
|
|
74
|
+
calcMode="linear"
|
|
75
|
+
dur="3s"
|
|
76
|
+
fill="remove"
|
|
77
|
+
repeatCount="indefinite"
|
|
78
|
+
restart="always"
|
|
79
|
+
values="0.6;0.2"></animate>
|
|
80
|
+
</g>
|
|
81
|
+
<g class="st3">
|
|
82
|
+
<linearGradient id="sh_screen_header6_svg_6_" gradientUnits="userSpaceOnUse" x1="63.7332" y1="41.7663" x2="63.7332" y2="5.5625" gradientTransform="matrix(-1 0 0 1 1221.6563 0)">
|
|
83
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
84
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
85
|
+
</linearGradient>
|
|
86
|
+
<polygon class="st7" points="1127.6,41.8 1152.1,41.8 1188.3,5.6 1163.7,5.6 " />
|
|
87
|
+
<animate
|
|
88
|
+
accumulate="none"
|
|
89
|
+
additive="replace"
|
|
90
|
+
attributeName="opacity"
|
|
91
|
+
begin="0.4s"
|
|
92
|
+
calcMode="linear"
|
|
93
|
+
dur="3s"
|
|
94
|
+
fill="remove"
|
|
95
|
+
repeatCount="indefinite"
|
|
96
|
+
restart="always"
|
|
97
|
+
values="0.8;0.4"></animate>
|
|
98
|
+
</g>
|
|
99
|
+
<g>
|
|
100
|
+
<linearGradient id="sh_screen_header6_svg_7_" gradientUnits="userSpaceOnUse" x1="95.7832" y1="41.7663" x2="95.7832" y2="5.5625" gradientTransform="matrix(-1 0 0 1 1221.6563 0)">
|
|
101
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
102
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
103
|
+
</linearGradient>
|
|
104
|
+
<polygon class="st8" points="1095.5,41.8 1120.1,41.8 1156.2,5.6 1131.7,5.6 " />
|
|
105
|
+
<animate
|
|
106
|
+
accumulate="none"
|
|
107
|
+
additive="replace"
|
|
108
|
+
attributeName="opacity"
|
|
109
|
+
begin="0s"
|
|
110
|
+
calcMode="linear"
|
|
111
|
+
dur="3s"
|
|
112
|
+
fill="remove"
|
|
113
|
+
repeatCount="indefinite"
|
|
114
|
+
restart="always"
|
|
115
|
+
values="1;0.6"></animate>
|
|
116
|
+
</g>
|
|
117
|
+
<g>
|
|
118
|
+
<linearGradient id="sh_screen_header6_svg_8_" gradientUnits="userSpaceOnUse" x1="538.7734" y1="23.6644" x2="97.4729" y2="23.6644" gradientTransform="matrix(-1 0 0 1 1221.6563 0)">
|
|
119
|
+
<stop offset="0" :style="`stop-color:${color};stop-opacity:0`" />
|
|
120
|
+
<stop offset="1" :style="`stop-color:${color};stop-opacity:0.9`" />
|
|
121
|
+
</linearGradient>
|
|
122
|
+
<polygon class="st9" points="682.9,41.8 1088,41.8 1124.2,5.6 719,5.6 " />
|
|
123
|
+
</g>
|
|
124
|
+
<g class="st10">
|
|
125
|
+
<g>
|
|
126
|
+
<line class="st11" :stroke="color" x1="1919.3" y1="75.5" x2="610.8" y2="75.5" />
|
|
127
|
+
<g>
|
|
128
|
+
<rect x="607.7" y="72.2" :fill="color" width="6.6" height="6.6" />
|
|
129
|
+
</g>
|
|
130
|
+
</g>
|
|
131
|
+
</g>
|
|
132
|
+
<g class="st1">
|
|
133
|
+
<g>
|
|
134
|
+
<polyline class="st11" :stroke="color" points="1919.5,5.6 1229.5,5.6 1198.3,36.8 " />
|
|
135
|
+
<g>
|
|
136
|
+
<rect x="1195.1" y="33.4" transform="matrix(0.7071 -0.7071 0.7071 0.7071 325.0493 858.1429)" :fill="color" width="6.6" height="6.6" />
|
|
137
|
+
</g>
|
|
138
|
+
</g>
|
|
139
|
+
</g>
|
|
140
|
+
</svg>
|
|
141
|
+
<div class="sh-screen-header-content" :style="svgStyle">
|
|
142
|
+
<slot></slot>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</template>
|
|
146
|
+
|
|
147
|
+
<script>
|
|
148
|
+
import mixin from '../mixin/header'
|
|
149
|
+
export default {
|
|
150
|
+
name: 'ScreenHeader6',
|
|
151
|
+
mixins: [mixin]
|
|
152
|
+
}
|
|
153
|
+
</script>
|
|
154
|
+
|
|
155
|
+
<style lang="scss" scoped>
|
|
156
|
+
.sh-screen-header6 {
|
|
157
|
+
.st0 {
|
|
158
|
+
fill: url(#sh_screen_header6_svg_1_);
|
|
159
|
+
}
|
|
160
|
+
.st1 {
|
|
161
|
+
opacity: 0.2;
|
|
162
|
+
}
|
|
163
|
+
.st2 {
|
|
164
|
+
fill: url(#sh_screen_header6_svg_2_);
|
|
165
|
+
}
|
|
166
|
+
.st3 {
|
|
167
|
+
opacity: 0.6;
|
|
168
|
+
}
|
|
169
|
+
.st4 {
|
|
170
|
+
fill: url(#sh_screen_header6_svg_3_);
|
|
171
|
+
}
|
|
172
|
+
.st5 {
|
|
173
|
+
fill: url(#sh_screen_header6_svg_4_);
|
|
174
|
+
}
|
|
175
|
+
.st6 {
|
|
176
|
+
fill: url(#sh_screen_header6_svg_5_);
|
|
177
|
+
}
|
|
178
|
+
.st7 {
|
|
179
|
+
fill: url(#sh_screen_header6_svg_6_);
|
|
180
|
+
}
|
|
181
|
+
.st8 {
|
|
182
|
+
fill: url(#sh_screen_header6_svg_7_);
|
|
183
|
+
}
|
|
184
|
+
.st9 {
|
|
185
|
+
fill: url(#sh_screen_header6_svg_8_);
|
|
186
|
+
}
|
|
187
|
+
.st10 {
|
|
188
|
+
opacity: 0.8;
|
|
189
|
+
}
|
|
190
|
+
.st11 {
|
|
191
|
+
fill: none;
|
|
192
|
+
stroke-linecap: round;
|
|
193
|
+
stroke-miterlimit: 10;
|
|
194
|
+
}
|
|
195
|
+
.sh-screen-header-content {
|
|
196
|
+
position: absolute;
|
|
197
|
+
width: 100%;
|
|
198
|
+
top: 0;
|
|
199
|
+
text-align: left;
|
|
200
|
+
font-size: 46px;
|
|
201
|
+
line-height: 90px;
|
|
202
|
+
font-weight: 600;
|
|
203
|
+
margin-left: 40px;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
</style>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component :is="headername" :color="color" :width="width" :height="height">
|
|
3
|
+
<slot>{{ title }}</slot>
|
|
4
|
+
</component>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import header1 from './components/header1'
|
|
9
|
+
import header2 from './components/header2'
|
|
10
|
+
import header3 from './components/header3'
|
|
11
|
+
import header4 from './components/header4'
|
|
12
|
+
import header5 from './components/header5'
|
|
13
|
+
import header6 from './components/header6'
|
|
14
|
+
export default {
|
|
15
|
+
name: 'ShScreenHeader',
|
|
16
|
+
components: {
|
|
17
|
+
header1,
|
|
18
|
+
header2,
|
|
19
|
+
header3,
|
|
20
|
+
header4,
|
|
21
|
+
header5,
|
|
22
|
+
header6
|
|
23
|
+
},
|
|
24
|
+
props: {
|
|
25
|
+
type: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: '1'
|
|
28
|
+
},
|
|
29
|
+
title: {
|
|
30
|
+
type: String
|
|
31
|
+
},
|
|
32
|
+
color: {
|
|
33
|
+
type: String
|
|
34
|
+
},
|
|
35
|
+
width: {
|
|
36
|
+
type: String
|
|
37
|
+
},
|
|
38
|
+
height: {
|
|
39
|
+
type: String
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
computed: {
|
|
43
|
+
headername() {
|
|
44
|
+
return +this.type > 0 && +this.type < 7 ? `header${this.type}` : 'header1'
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<style lang="scss"></style>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
props: {
|
|
3
|
+
// 主色
|
|
4
|
+
color: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: '#1de2ff'
|
|
7
|
+
},
|
|
8
|
+
width: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: '100%'
|
|
11
|
+
},
|
|
12
|
+
height: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: 'auto'
|
|
15
|
+
},
|
|
16
|
+
scale: {
|
|
17
|
+
type: [Object, Number],
|
|
18
|
+
default() {
|
|
19
|
+
return {
|
|
20
|
+
widthScale: 1,
|
|
21
|
+
heightScale: 1
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
data() {
|
|
27
|
+
return {
|
|
28
|
+
svgWidth: 0,
|
|
29
|
+
svgHeight: 0
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
computed: {
|
|
33
|
+
svgStyle() {
|
|
34
|
+
return {
|
|
35
|
+
zoom: this.svgWidth / 1920
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
dark() {
|
|
39
|
+
const color = this.color
|
|
40
|
+
const colorArray = this.$vUtils.getRgbaValue(color)
|
|
41
|
+
colorArray[3] = 0.3
|
|
42
|
+
return `rgba(${colorArray.join(',')})`
|
|
43
|
+
},
|
|
44
|
+
light() {
|
|
45
|
+
const color = this.color
|
|
46
|
+
const colorArray = this.$vUtils.getRgbaValue(color)
|
|
47
|
+
colorArray[3] = 0.6
|
|
48
|
+
return `rgba(${colorArray.join(',')})`
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
resize() {
|
|
53
|
+
const rect = this.$el?.getBoundingClientRect()
|
|
54
|
+
if (!rect) return
|
|
55
|
+
const { widthScale = 1, heightScale = 1 } = typeof this.scale === 'object' ? this.scale : { widthScale: this.scale || 1, heightScale: this.scale || 1 }
|
|
56
|
+
this.svgWidth = rect.width / widthScale
|
|
57
|
+
this.svgHeight = rect.height / heightScale
|
|
58
|
+
this.$emit('resize', [this.svgWidth, this.svgHeight])
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
mounted() {}
|
|
62
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sh-spin">
|
|
3
|
+
<svg width="50px" height="50px">
|
|
4
|
+
<circle cx="25" cy="25" r="20" fill="transparent" stroke-width="3" stroke-dasharray="31.415, 31.415" stroke="#02bcfe" stroke-linecap="round">
|
|
5
|
+
<animateTransform attributeName="transform" type="rotate" values="0, 25 25;360, 25 25" dur="1.5s" repeatCount="indefinite" />
|
|
6
|
+
<animate attributeName="stroke" values="#02bcfe;#3be6cb;#02bcfe" dur="3s" repeatCount="indefinite" />
|
|
7
|
+
</circle>
|
|
8
|
+
|
|
9
|
+
<circle cx="25" cy="25" r="10" fill="transparent" stroke-width="3" stroke-dasharray="15.7, 15.7" stroke="#3be6cb" stroke-linecap="round">
|
|
10
|
+
<animateTransform attributeName="transform" type="rotate" values="360, 25 25;0, 25 25" dur="1.5s" repeatCount="indefinite" />
|
|
11
|
+
<animate attributeName="stroke" values="#3be6cb;#02bcfe;#3be6cb" dur="3s" repeatCount="indefinite" />
|
|
12
|
+
</circle>
|
|
13
|
+
</svg>
|
|
14
|
+
<div class="sh-spin-tip">
|
|
15
|
+
<slot>{{ content }}</slot>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
export default {
|
|
22
|
+
name: 'ShSpin',
|
|
23
|
+
props: {
|
|
24
|
+
content: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ''
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<style lang="scss" scoped>
|
|
33
|
+
.sh-spin {
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
align-items: center;
|
|
40
|
+
.sh-spin-tip {
|
|
41
|
+
font-size: 15px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// 全局公共封装组件
|
|
2
|
+
import ShBorder from './global-components/sh-border'
|
|
3
|
+
import ShChart from './global-components/sh-charts'
|
|
4
|
+
import ShDecoration from './global-components/sh-decoration'
|
|
5
|
+
import ShScreenHeader from './global-components/sh-screen-header'
|
|
6
|
+
import ShSpin from './global-components/sh-spin'
|
|
7
|
+
|
|
8
|
+
const components = {
|
|
9
|
+
ShBorder,
|
|
10
|
+
ShChart,
|
|
11
|
+
ShDecoration,
|
|
12
|
+
ShScreenHeader,
|
|
13
|
+
ShSpin
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const index = {
|
|
17
|
+
install: function (Vue) {
|
|
18
|
+
Object.keys(components).forEach(key => {
|
|
19
|
+
Vue.component(key, components[key])
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default index
|