zydx-plus 1.35.506 → 1.35.508

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.506",
3
+ "version": "1.35.508",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -206,17 +206,25 @@ export default {
206
206
  },
207
207
  computed: {
208
208
  position() {
209
- if(this.autoHeight) {
210
- return `top:${this.y}px;left:${this.x}px;width:${this.footRightOffset}px;min-height:${this.footDownOffset}px;`;
211
- } else {
212
- return `top:${this.y}px;left:${this.x}px;width:${this.footRightOffset}px;height:${this.footDownOffset}px;`;
209
+ if(this.zIndex > 0) {
210
+ if(this.autoHeight) {
211
+ return `top:${this.y}px;left:${this.x}px;width:${this.footRightOffset}px;min-height:${this.footDownOffset}px;z-index: ${this.zIndex}`;
212
+ } else {
213
+ return `top:${this.y}px;left:${this.x}px;width:${this.footRightOffset}px;height:${this.footDownOffset}px;z-index: ${this.zIndex}`;
214
+ }
215
+ }else {
216
+ if(this.autoHeight) {
217
+ return `top:${this.y}px;left:${this.x}px;width:${this.footRightOffset}px;min-height:${this.footDownOffset}px;`;
218
+ } else {
219
+ return `top:${this.y}px;left:${this.x}px;width:${this.footRightOffset}px;height:${this.footDownOffset}px;`;
220
+ }
213
221
  }
214
222
  },
215
223
  },
216
224
  emits: ['dragStatus', 'close', 'enlarge','updateDrag','minimize','dragMouseup'],
217
225
  methods: {
218
226
  dragTap() {
219
- if(this.zIndex <= 0) return
227
+ if(this.zIndex > 0) return
220
228
  let pop = JSON.parse(sessionStorage.getItem('pop'))
221
229
  for(let i = 0; i< pop.length; i++) {
222
230
  if(document.getElementById(pop[i]) === null) continue
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <dragPopup :z-index="10002" title="手写记录" @updateDrag="updateDragInit" :width="width" :height="height" :minWidth="740" :minHeight="487" @close="cancel" :minimizeCir="false" :dragTextShow="false">
2
+ <dragPopup2 :z-index="10002" title="手写记录" @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"></div>
@@ -12,8 +12,8 @@
12
12
  </div>
13
13
  </div>
14
14
  </template>
15
- </dragPopup>
16
- <dragPopup :z-index="10003" :width="600" :height="417" v-if="show" :dragStatus="false" :minimizeCir="false" :enlargeShow="false" @close="close">
15
+ </dragPopup2>
16
+ <dragPopup2 :z-index="10003" :width="600" :height="417" v-if="show" :dragStatus="false" :minimizeCir="false" :enlargeShow="false" @close="close">
17
17
  <template #content>
18
18
  <div class="can">
19
19
  <div class="can-cont" :id="ids + 'cont'">
@@ -35,7 +35,7 @@
35
35
  </div>
36
36
  </div>
37
37
  </template>
38
- </dragPopup>
38
+ </dragPopup2>
39
39
  <teleport to="body">
40
40
  <div class="tool-cont" :style="{left: left + 'px', top: top + 'px'}">
41
41
  <div class="tool"
@@ -112,15 +112,14 @@
112
112
  </template>
113
113
 
114
114
  <script>
115
- import interact from 'interactjs'
116
115
  import Sketchpad from '../../sketchpad/src/sketchpad'
117
- import dragPopup from '../../dragPopup/src/dragPopup'
116
+ import dragPopup2 from '../../dragPopup2/src/dragPopup'
118
117
  import Mess from '../../tipBox/index'
119
118
 
120
119
  let stayTime = 0
121
120
  let timer = null
122
121
  export default {
123
- components: {Sketchpad, dragPopup},
122
+ components: {Sketchpad, dragPopup2},
124
123
  data() {
125
124
  return {
126
125
  width: 940,
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.506',
92
+ version: '1.35.508',
93
93
  install,
94
94
  Calendar,
95
95
  Message,