zydx-plus 1.33.447 → 1.33.448
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 +16 -2
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<dragPopup @updateDrag="updateDragInit" :width="
|
|
2
|
+
<dragPopup @updateDrag="updateDragInit" :width="width" :height="height" :minWidth="740" :minHeight="487" @close="cancel" :minimizeCir="false" :dragTextShow="false">
|
|
3
3
|
<template #content>
|
|
4
4
|
<div class="paint" :id="ids">
|
|
5
5
|
<div class="paint-title">
|
|
@@ -125,6 +125,10 @@ export default {
|
|
|
125
125
|
components: {Sketchpad, dragPopup},
|
|
126
126
|
data() {
|
|
127
127
|
return {
|
|
128
|
+
width: 940,
|
|
129
|
+
height: 687,
|
|
130
|
+
width2: 0,
|
|
131
|
+
height2: 0,
|
|
128
132
|
show: false,
|
|
129
133
|
show2: false,
|
|
130
134
|
distinguishText: '识别',
|
|
@@ -242,6 +246,8 @@ export default {
|
|
|
242
246
|
},
|
|
243
247
|
methods: {
|
|
244
248
|
updateDragInit(e) {
|
|
249
|
+
this.width2 = e.width
|
|
250
|
+
this.height2 = e.height
|
|
245
251
|
setTimeout(() => {
|
|
246
252
|
// 计算工具栏初始位置
|
|
247
253
|
const tool = document.getElementById(this.ids + 'tool')
|
|
@@ -305,9 +311,17 @@ export default {
|
|
|
305
311
|
if(this.toolId === 'choice') {
|
|
306
312
|
this.$refs.sketchpad.select()
|
|
307
313
|
}
|
|
308
|
-
//
|
|
314
|
+
// 清屏
|
|
309
315
|
if (this.toolId === 'clear') {
|
|
310
316
|
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)
|
|
311
325
|
}
|
|
312
326
|
// 橡皮
|
|
313
327
|
if (this.toolId === 'rubber') {
|