From a8b4257e50dc390552983b1a3dfae1bd5ea1e454 Mon Sep 17 00:00:00 2001 From: Ymm Date: Fri, 18 Nov 2022 19:03:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(Signature):=20=E7=AD=BE=E5=90=8D=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=96=87=E6=A1=A3=EF=BC=8Cdemo=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20(#1856)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/__VUE/signature/doc.md | 2 +- src/packages/__VUE/signature/index.scss | 8 +- src/packages/__VUE/signature/index.taro.vue | 79 +++++++++++-------- .../src/business/pages/signature/index.vue | 32 ++++---- .../src/exhibition/pages/countup/index.vue | 2 +- 5 files changed, 71 insertions(+), 52 deletions(-) diff --git a/src/packages/__VUE/signature/doc.md b/src/packages/__VUE/signature/doc.md index 3f0d5b9def..1a46f43384 100644 --- a/src/packages/__VUE/signature/doc.md +++ b/src/packages/__VUE/signature/doc.md @@ -2,7 +2,7 @@ ### 介绍 - 基于Canvas的签名组件。 +基于Canvas的签名组件。默认竖屏模式使用,如使用横屏模式,请开发者自行设置旋转角度或者宽高。 ### 安装 diff --git a/src/packages/__VUE/signature/index.scss b/src/packages/__VUE/signature/index.scss index e0862c8861..202aeb809c 100644 --- a/src/packages/__VUE/signature/index.scss +++ b/src/packages/__VUE/signature/index.scss @@ -1,6 +1,6 @@ .nut-signature { .nut-signature-inner { - // height: 10rem; + height: 10rem; margin-bottom: 1rem; border: 1px solid #dadada; display: flex; @@ -8,7 +8,11 @@ align-items: center; } .spcanvas_WEAPP { - height: 10rem; + width: 100%; + height: 100%; + #spcanvas { + width: 100%; + } } .nut-signature-btn { diff --git a/src/packages/__VUE/signature/index.taro.vue b/src/packages/__VUE/signature/index.taro.vue index 56cc678e9c..4b264d2f0e 100644 --- a/src/packages/__VUE/signature/index.taro.vue +++ b/src/packages/__VUE/signature/index.taro.vue @@ -1,6 +1,6 @@ diff --git a/src/sites/mobile-taro/vue/src/exhibition/pages/countup/index.vue b/src/sites/mobile-taro/vue/src/exhibition/pages/countup/index.vue index de966f3aa5..0e727857ab 100644 --- a/src/sites/mobile-taro/vue/src/exhibition/pages/countup/index.vue +++ b/src/sites/mobile-taro/vue/src/exhibition/pages/countup/index.vue @@ -114,7 +114,7 @@ export default { } .show-demo { background: #ffffff; - padding: 0 20px; + padding: 0; } h2 { padding: 0 20px;