Commit 2132ef3c authored by 郭铭瑶's avatar 郭铭瑶 🤘

调整大小

parent cf77f202
...@@ -371,7 +371,10 @@ export default { ...@@ -371,7 +371,10 @@ export default {
} }
}, },
fontSize() { fontSize() {
return Math.floor(screen.height * 1.48 / 100) return 12 * this.sizeRate
},
sizeRate() {
return Number((screen.height / 800).toFixed(1))
}, },
borderWidth() { borderWidth() {
return this.fontSize * 0.6 return this.fontSize * 0.6
......
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
hide: true, hide: true,
}, },
shape: [ shape: [
{type: 'pie', radius: [0, 60 * Number((screen.height / 800).toFixed(1))], startAngle: 0, roseType: 'radius', label: {show: true, formatter: '{b}: {c}万吨'}} {type: 'pie', radius: [30 * Number((screen.height / 800).toFixed(1)), 60 * Number((screen.height / 800).toFixed(1))], startAngle: 0, label: {show: true, fontSize: 12 * Number((screen.height / 800).toFixed(1)), formatter: '{b}: {c}万吨'}}
] ]
}, },
data: [], data: [],
......
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
orient: 'vertical', orient: 'vertical',
}, },
shape: [ shape: [
{type: 'pie', startAngle: 135, radius: [40 * Number((screen.height / 800).toFixed(1)), 55 * Number((screen.height / 800).toFixed(1))], center: ['40%', '50%'], label: {show: true, formatter: '{d}%'}} {type: 'pie', startAngle: 135, radius: [40 * Number((screen.height / 800).toFixed(1)), 55 * Number((screen.height / 800).toFixed(1))], center: ['40%', '45%'], label: {show: true, formatter: '{d}%', fontSize: 12 * Number((screen.height / 800).toFixed(1))}}
], ],
}, },
data: [ data: [
......
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
formatter: '{c}亩' formatter: '{c}亩'
}, },
shape: [ shape: [
{type: 'pie', radius: [30, 60 * Number((screen.height / 800).toFixed(1))], startAngle: 30, label: {show: true, formatter: '{d}%\n{b}'}, center: ['50%', '52%']} {type: 'pie', radius: [30, 60 * Number((screen.height / 800).toFixed(1))], startAngle: 30, label: {show: true, formatter: '{d}%\n{b}', fontSize: 12 * Number((screen.height / 800).toFixed(1))}, center: ['50%', '52%']}
] ]
}, },
} }
......
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
p p
font-weight bold font-weight bold
img img
width 2rem width 2 rem
height @width height @width
margin-right .5rem margin-right .5rem
.chart .chart
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment