From 83718ec9f1719374a7485472bf395f9fb9b20fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E8=83=9C=E5=BC=BA?= Date: Wed, 19 Dec 2018 17:55:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3canvas=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=A4=A7=E5=B0=8F=E5=8F=98=E5=8C=96=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E5=BC=82=E5=B8=B8=E4=BB=A5=E5=8F=8A=E8=B7=A8=E5=9F=9F?= =?UTF-8?q?=E5=9B=BE=E5=83=8F=E5=AF=BC=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/helpers/tags.js | 3 +- src/core/view/components/canvas/index.vue | 35 +++-- .../view/components/resize-sensor/index.vue | 130 ++++++++++++++++++ 3 files changed, 153 insertions(+), 15 deletions(-) create mode 100644 src/core/view/components/resize-sensor/index.vue diff --git a/src/core/helpers/tags.js b/src/core/helpers/tags.js index 2ab6f3e31..4f6fac42d 100644 --- a/src/core/helpers/tags.js +++ b/src/core/helpers/tags.js @@ -10,6 +10,7 @@ module.exports = [ 'uni-modal', 'uni-picker', 'uni-toast', + 'uni-resize-sensor', 'uni-ad', 'uni-audio', @@ -51,4 +52,4 @@ module.exports = [ 'uni-video', 'uni-view', 'uni-web-view' -] +] diff --git a/src/core/view/components/canvas/index.vue b/src/core/view/components/canvas/index.vue index 39eea2d3b..896e52431 100644 --- a/src/core/view/components/canvas/index.vue +++ b/src/core/view/components/canvas/index.vue @@ -8,6 +8,9 @@ :height="height" @touchmove="_touchmove" /> + + + -- GitLab