Demo
... April 2, 2021 14:49 Less than 1 minute
# Demo
# Default
<template>
<div>
<VueSpeedMeter :customStyle="customStyle" />
</div>
</template>
<script>
import VueSpeedMeter from "vue-speed-meter";
export default {
name: "Component",
components: {
VueSpeedMeter,
},
data: function() {
return {
customStyle: {
size: 300,
},
};
},
};
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Thermometer
<template>
<div>
<VueSpeedMeter
:customCurrentValue="currentValue"
:shadowFilter="shadowFilterBlackAndWhite"
/>
</div>
</template>
<script>
import VueSpeedMeter from "vue-speed-meter";
export default {
name: "BlackAndWhite",
components: {
VueSpeedMeter,
},
data: function() {
return {
currentValue: 25,
customStyleBlackAndWhite: {
size: 350,
mainBackgroundColor: "white",
borderColor: "black",
scaleColor: "black",
scaleValuesFontFamily: "'Old Standard TT', serif",
scaleValuesColor: "black",
scaleStartValue: -30,
scaleStep: 5,
needleColor: "black",
needleCircleColor: "black",
needleCircleBorderColor: "black",
animationTime: 5,
},
shadowFilterBlackAndWhite: false,
};
},
};
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Speedometer
<template>
<div>
<VueSpeedMeter
:customStyle="customStyle"
:customCurrentValue="currentValue"
:shadowFilter="shadowFilter"
/>
</div>
</template>
<script>
import VueSpeedMeter from "vue-speed-meter";
export default {
name: "Speedometer",
components: {
VueSpeedMeter,
},
data: function() {
return {
currentValue: 100,
customStyle: {
size: 350,
mainBackgroundColor: "#151412",
borderColor: "#130F0B",
scaleColor: "#F3B1BB",
scaleValuesFontFamily: "'Roboto', sans-serif",
scaleValuesColor: "#F3B1BB",
scaleStep: 20,
needleColor: "#EC2437",
needleCircleColor: "#3F4140",
needleCircleBorderColor: "#545454",
animationTime: 3,
},
shadowFilter: false,
};
},
};
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41