提交 ac4bd265 编写于 作者: d-u-a's avatar d-u-a

update: H5 canvas优先使用用户设置的宽高

上级 96655403
......@@ -89,8 +89,8 @@ export default {
},
mounted () {
this._resize({
width: this.$el.offsetWidth,
height: this.$el.offsetHeight
width: this.$attrs.width ? parseInt(this.$attrs.width) : this.$el.offsetWidth,
height: this.$attrs.height ? parseInt(this.$attrs.height) : this.$el.offsetHeight
})
},
methods: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册