From 2096754d06c6fc40a97beaea9b7edc2f0f61b35b Mon Sep 17 00:00:00 2001 From: qiudaoermu <793385821@qq.com> Date: Fri, 28 Oct 2022 10:12:17 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=20chore:=20canvas-drawboard=20?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/DrawBoard/main.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/DrawBoard/main.vue b/packages/DrawBoard/main.vue index 1ccb7e5..43c8f47 100644 --- a/packages/DrawBoard/main.vue +++ b/packages/DrawBoard/main.vue @@ -73,6 +73,10 @@ export default { type: Boolean, default: false, }, + state: { + type: String, + default: status.DEFAULT + }, height: { type: Number, default: 400, @@ -131,7 +135,7 @@ export default { activeIndex: -1, pointIndex: -1, options: {}, - currentStatus: status.DRAWING, // DRAWING/MOVING/UPDATING + currentStatus: this.state, // DRAWING/MOVING/UPDATING observer: null, isFullScreen: false, loading: true, @@ -155,6 +159,9 @@ export default { }, }, watch: { + state (value) { + this.currentStatus = value; + }, graphics: { handler() { // debounce(this.sendResultData, 100)(); @@ -202,7 +209,6 @@ export default { }, loadingData: { handler() { - debugger // this.loading = this.loadingData; }, immediate: true,