zydx-plus 1.35.508 → 1.35.5066

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