From ac4bd265bd7ed54b7e8b0c79227bc833baa54ac9 Mon Sep 17 00:00:00 2001 From: handongxun Date: Wed, 24 Apr 2019 14:55:31 +0800 Subject: [PATCH] =?UTF-8?q?update:=20H5=20canvas=E4=BC=98=E5=85=88?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=94=A8=E6=88=B7=E8=AE=BE=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E5=AE=BD=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/components/canvas/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/view/components/canvas/index.vue b/src/core/view/components/canvas/index.vue index 11abd6f33..94e7f2212 100644 --- a/src/core/view/components/canvas/index.vue +++ b/src/core/view/components/canvas/index.vue @@ -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: { -- GitLab