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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.35.518",
3
+ "version": "1.35.519",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -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
- // setTimeout(() => { // 解决清屏篡位的问题
318
- // this.width = this.width2 - 0.02
319
- // this.height = this.height2 - 0.02
320
- // setTimeout(() => {
321
- // this.width2 = this.width
322
- // this.height2 = this.height
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') {
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.518',
92
+ version: '1.35.519',
93
93
  install,
94
94
  Calendar,
95
95
  Message,