Commit 7242ad2a by 王志慧

饼图的功能修改

1 parent f40939c2
...@@ -62,13 +62,14 @@ export default { ...@@ -62,13 +62,14 @@ export default {
handler(newVal) { handler(newVal) {
this.initData() this.initData()
this.draw() this.draw()
} },
immediate:true
} }
}, },
mounted() { mounted() {
this.initData() // this.initData()
this.draw() // this.draw()
}, },
methods: { methods: {
...@@ -222,7 +223,7 @@ export default { ...@@ -222,7 +223,7 @@ export default {
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
text-align: center; text-align: center;
&-num { &-num {
font-size: 0.24vw; font-size: 0.8vw;
color: #fff; color: #fff;
--step: 0; --step: 0;
counter-reset: count var(--step); counter-reset: count var(--step);
...@@ -233,7 +234,7 @@ export default { ...@@ -233,7 +234,7 @@ export default {
} }
} }
&-desc { &-desc {
font-size: 0.2vw; font-size: 0.4vw;
color: #606266; color: #606266;
white-space: nowrap; white-space: nowrap;
animation: rotateIn 2s infinite; animation: rotateIn 2s infinite;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!