zydx-plus 1.33.340 → 1.33.341
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,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="drag-pop" :style="position" :id="id" @click.stop="dragTap">
|
|
2
|
+
<div class="drag-pop" :class="{trans: transAll}" :style="position" :id="id" @click.stop="dragTap">
|
|
3
3
|
<div class="drag-head" :style="{'background-color':titleColor}">
|
|
4
4
|
<span @mousedown.stop="mousedown"
|
|
5
5
|
@mousemove.stop="mousemove"
|
|
@@ -50,6 +50,7 @@ export default {
|
|
|
50
50
|
state: false,//是否显示
|
|
51
51
|
clientWidth: 0,
|
|
52
52
|
clientHeight: 0,
|
|
53
|
+
transAll: false
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
props: {
|
|
@@ -170,6 +171,14 @@ export default {
|
|
|
170
171
|
this.x = this.clientWidth / 2 - this.footRightOffset / 2;
|
|
171
172
|
this.y = this.clientHeight / 2 - this.footDownOffset / 2;
|
|
172
173
|
},
|
|
174
|
+
getWH(v) {
|
|
175
|
+
this.transAll = true
|
|
176
|
+
this.footRightOffset = v.width
|
|
177
|
+
this.footDownOffset = v.height
|
|
178
|
+
setTimeout(() => {
|
|
179
|
+
this.transAll = false
|
|
180
|
+
},300)
|
|
181
|
+
},
|
|
173
182
|
footDown(event, v) {
|
|
174
183
|
event.preventDefault()
|
|
175
184
|
this.direction = v
|
|
@@ -402,7 +411,9 @@ export default {
|
|
|
402
411
|
animation: linkDown .3s linear forwards;
|
|
403
412
|
opacity: 0;
|
|
404
413
|
}
|
|
405
|
-
|
|
414
|
+
.trans{
|
|
415
|
+
transition: all .3s;
|
|
416
|
+
}
|
|
406
417
|
.drag-head {
|
|
407
418
|
height: 30px;
|
|
408
419
|
line-height: 30px;
|