Commit e93ac0e3 authored by peco's avatar peco

fix : 解决进度条组件在iPhone5设备显示不全的问题

parent 1dfe4c25
......@@ -33,9 +33,14 @@
},
methods: {
inited(canvas, width, height, canvasDpr) {
inited(canvas, width, height, canvasDpr) {
var scale = 1.0
const { windowWidth } = uni.getSystemInfoSync()
if (windowWidth < 330) {
scale = 1.1
}
chart = this.$echarts.init(canvas, null, {
width: width,
width: width * scale,
height: height,
devicePixelRatio: canvasDpr
})
......
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