zydx-plus 1.35.490 → 1.35.491
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
|
<template>
|
|
2
2
|
<div class="drag-pop" :class="{trans: transAll, 'drag-pop-shadow': !fixedStart}" :style="position" :id="id" @click.stop="dragTap">
|
|
3
|
-
<div v-show="!fixedStart" class="drag-head" :style="{'background-color':titleColor}">
|
|
3
|
+
<div v-show="!fixedStart" class="drag-head" :style="{'background-color':titleColor}" @click="selectedDrag">
|
|
4
4
|
<span @mousedown.stop="mousedown"
|
|
5
5
|
@mousemove.stop="mousemove"
|
|
6
6
|
@mouseup.stop="mouseup"
|
|
@@ -188,7 +188,7 @@ export default {
|
|
|
188
188
|
window.onscroll = () => {
|
|
189
189
|
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
190
190
|
if(this.fixedStart) {
|
|
191
|
-
|
|
191
|
+
this.y = this.top - scrollTop
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
// 监听窗口变化
|
|
@@ -199,6 +199,9 @@ export default {
|
|
|
199
199
|
this.x = this.left + (wid-this.initWidth)/2
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
|
+
document.onmouseup = () => {
|
|
203
|
+
this.isMove = false;
|
|
204
|
+
}
|
|
202
205
|
this.dragTap()
|
|
203
206
|
},
|
|
204
207
|
computed: {
|
|
@@ -362,6 +365,9 @@ export default {
|
|
|
362
365
|
this.isMove = false
|
|
363
366
|
this.footIsMove = false
|
|
364
367
|
this.$emit('close');
|
|
368
|
+
},
|
|
369
|
+
selectedDrag(){
|
|
370
|
+
this.$emit('selectedDrag')
|
|
365
371
|
}
|
|
366
372
|
}
|
|
367
373
|
}
|