zydx-plus 1.35.625 → 1.35.626

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.625",
3
+ "version": "1.35.626",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -24,8 +24,8 @@
24
24
  <button :disabled="forwardShow" @click="forward">下一步</button>
25
25
  <button @click="reset" v-if="resetShow">重置位置</button>
26
26
  <button v-if="protectShow" @click="preservation">保存</button>
27
- <button @click="fullTap" v-if="fullShow">全屏</button>
28
- <button @click="fullDel" v-else>退出</button>
27
+ <button @click="fullTap(false)" v-if="fullShow&&full">全屏</button>
28
+ <button @click="fullDel(true)" v-if="!fullShow">退出</button>
29
29
  </div>
30
30
  </div>
31
31
  <div :id="id" class="mindMapContainer"></div>
@@ -103,6 +103,10 @@ export default {
103
103
  resetShow: {
104
104
  type: Boolean,
105
105
  default: true
106
+ },
107
+ full: {
108
+ type: Boolean,
109
+ default: true
106
110
  }
107
111
  },
108
112
  beforeUnmount() {
@@ -212,8 +216,8 @@ export default {
212
216
  document.webkitExitFullscreen();
213
217
  }
214
218
  },
215
- fullDel() {
216
- this.fullShow = true
219
+ fullDel(v) {
220
+ this.fullShow = v
217
221
  this.mindMap.view.setTransformData({
218
222
  state: {scale: 1, x: 0, y: 0, sx: 0, sy: 0},
219
223
  transform: {
@@ -236,8 +240,8 @@ export default {
236
240
  this.cancelFullscreen()
237
241
  },
238
242
  // 全屏
239
- fullTap() {
240
- this.fullShow = false
243
+ fullTap(v) {
244
+ this.fullShow = v
241
245
  this.fullScreen(document.body)
242
246
  },
243
247
  msgFun(e) {
package/src/index.js CHANGED
@@ -87,7 +87,7 @@ function install(app) {
87
87
  }
88
88
 
89
89
  export default {
90
- version: '1.35.625',
90
+ version: '1.35.626',
91
91
  install,
92
92
  Calendar,
93
93
  Message,