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

调整大小

parent cf77f202
......@@ -371,7 +371,10 @@ export default {
}
},
fontSize() {
return Math.floor(screen.height * 1.48 / 100)
return 12 * this.sizeRate
},
sizeRate() {
return Number((screen.height / 800).toFixed(1))
},
borderWidth() {
return this.fontSize * 0.6
......
......@@ -64,7 +64,7 @@ export default {
hide: true,
},
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: [],
......
......@@ -21,7 +21,7 @@ export default {
orient: 'vertical',
},
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: [
......
......@@ -32,7 +32,7 @@ export default {
formatter: '{c}亩'
},
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 {
p
font-weight bold
img
width 2rem
width 2 rem
height @width
margin-right .5rem
.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