zydx-plus 1.35.518 → 1.35.519
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/paint/src/paint.vue +9 -10
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="paint" :id="ids">
|
|
5
5
|
<div class="paint-title"></div>
|
|
6
6
|
<div class="paint-cont">
|
|
7
|
-
<Sketchpad ref="sketchpad" :top="false"></Sketchpad>
|
|
7
|
+
<Sketchpad v-if="sketchpadShow" ref="sketchpad" :top="false"></Sketchpad>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="paint-buts">
|
|
10
10
|
<button class="buts" @click="exportTap">确定</button>
|
|
@@ -214,7 +214,8 @@ export default {
|
|
|
214
214
|
ctx: null,
|
|
215
215
|
canvasEle: null,
|
|
216
216
|
appData: '',
|
|
217
|
-
full: false
|
|
217
|
+
full: false,
|
|
218
|
+
sketchpadShow: true
|
|
218
219
|
}
|
|
219
220
|
},
|
|
220
221
|
props: {
|
|
@@ -314,14 +315,12 @@ export default {
|
|
|
314
315
|
// 清屏
|
|
315
316
|
if (this.toolId === 'clear') {
|
|
316
317
|
this.$refs.sketchpad.clear()
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
// },10)
|
|
324
|
-
// },10)
|
|
318
|
+
setTimeout(() => { // 解决清屏篡位的问题
|
|
319
|
+
this.sketchpadShow = false
|
|
320
|
+
setTimeout(() => {
|
|
321
|
+
this.sketchpadShow = true
|
|
322
|
+
},10)
|
|
323
|
+
},10)
|
|
325
324
|
}
|
|
326
325
|
// 橡皮
|
|
327
326
|
if (this.toolId === 'rubber') {
|