From 5f84e5943ec3f9df3102008fa0741c1fafa618c9 Mon Sep 17 00:00:00 2001 From: 0JARVIS0 <709406687@qq.com> Date: Mon, 9 Dec 2019 11:46:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3disable=E5=86=85?= =?UTF-8?q?=E5=A4=96=E4=B8=8D=E7=BB=9F=E4=B8=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- painter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/painter.js b/painter.js index c4ba770..c38a1df 100644 --- a/painter.js +++ b/painter.js @@ -15,6 +15,7 @@ Component({ paintCount: 0, currentPalette: {}, movingCache: {}, + outterDisabled: false, isDisabled: false, needClear: false, /** @@ -76,6 +77,7 @@ Component({ disableAction: { type: Boolean, observer: function (isDisabled) { + this.outterDisabled = isDisabled this.isDisabled = isDisabled } }, @@ -637,6 +639,7 @@ Component({ this.globalContext || (this.globalContext = wx.createCanvasContext('k-canvas', this)); new Pen(this.bottomContext, palette).paint(() => { this.isDisabled = false; + this.isDisabled = this.outterDisabled; this.triggerEvent('didShow'); }); this.globalContext.draw();