zydx-plus 1.32.272 → 1.32.273

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.32.272",
3
+ "version": "1.32.273",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="drag-pop" :class="{'zin': isMove}" :style="position" :id="id">
2
+ <div class="drag-pop" :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"
@@ -89,6 +89,9 @@ export default {
89
89
  default: false
90
90
  },
91
91
  },
92
+ beforeUnmount() {
93
+ this.clean()
94
+ },
92
95
  watch: {
93
96
  width: {
94
97
  handler: function (val, oldVal) {
@@ -115,6 +118,11 @@ export default {
115
118
  height: this.footDownOffset - ((this.dragTextShow)?60:30)
116
119
  })
117
120
  })
121
+ let popArr = []
122
+ const pop = sessionStorage.getItem('pop')
123
+ popArr = (pop === null)? [] : JSON.parse(pop)
124
+ popArr.push(this.id)
125
+ sessionStorage.setItem('pop', JSON.stringify(popArr))
118
126
  },
119
127
  computed: {
120
128
  position() {
@@ -123,6 +131,23 @@ export default {
123
131
  },
124
132
  emits: ['dragStatus', 'close', 'enlarge','updateDrag','minimize'],
125
133
  methods: {
134
+ dragTap() {
135
+ let pop = JSON.parse(sessionStorage.getItem('pop'))
136
+ for(let i = 0; i< pop.length; i++) {
137
+ if(document.getElementById(pop[i]) === null) continue
138
+ document.getElementById(pop[i]).style.zIndex = '100'
139
+ }
140
+ document.getElementById(this.id).style.zIndex = '1000'
141
+ },
142
+ clean() {
143
+ let pop = JSON.parse(sessionStorage.getItem('pop'))
144
+ pop.forEach((x,i) => {
145
+ if(x === this.id) {
146
+ pop.splice(i, 1);
147
+ }
148
+ })
149
+ sessionStorage.setItem('pop', JSON.stringify(pop))
150
+ },
126
151
  disconnect() {
127
152
  this.$emit('dragStatus')
128
153
  },
@@ -136,6 +161,7 @@ export default {
136
161
  event.preventDefault()
137
162
  this.direction = v
138
163
  this.footIsMove = true;
164
+ this.dragTap()
139
165
  },
140
166
  footMove(event) {
141
167
  if (this.state) return;
@@ -162,6 +188,7 @@ export default {
162
188
  this.leftOffset = event.offsetX;
163
189
  this.topOffset = event.offsetY;
164
190
  this.isMove = true;
191
+ this.dragTap()
165
192
  },
166
193
  //鼠标移动
167
194
  mousemove(event) {
package/src/index.js CHANGED
@@ -79,7 +79,7 @@ function install(app) {
79
79
  }
80
80
 
81
81
  export default {
82
- version: '1.32.272',
82
+ version: '1.32.273',
83
83
  install,
84
84
  Calendar,
85
85
  Message,