From 93b0eac9bef1ae9dc10217e347f031d0da34dbf5 Mon Sep 17 00:00:00 2001
From: 0JARVIS0 <709406687@qq.com>
Date: Thu, 28 Nov 2019 19:13:25 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E6=93=8D=E4=BD=9C=E7=8A=B6=E6=80=81?=
=?UTF-8?q?=E4=B8=8B=E7=A6=81=E6=AD=A2=E6=93=8D=E4=BD=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
painter.js | 10 ++++++++++
painter.wxml | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/painter.js b/painter.js
index b06367b..7d504a4 100644
--- a/painter.js
+++ b/painter.js
@@ -63,6 +63,15 @@ Component({
this.doAction(newVal)
}
},
+ },
+ disableAction: {
+ type: Boolean,
+ observer: function (isDisabled) {
+ let style = isDisabled ? 'visibility: hidden' : ''
+ this.setData({
+ frontStyle: style
+ })
+ }
}
},
@@ -70,6 +79,7 @@ Component({
picURL: '',
showCanvas: true,
painterStyle: '',
+ frontStyle: '',
},
methods: {
diff --git a/painter.wxml b/painter.wxml
index 38673ae..183e2ff 100644
--- a/painter.wxml
+++ b/painter.wxml
@@ -5,7 +5,7 @@