zydx-plus 1.35.624 → 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.624",
3
+ "version": "1.35.626",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -22,10 +22,10 @@
22
22
  </div>
23
23
  <button :disabled="retShow" @click="ret">上一步</button>
24
24
  <button :disabled="forwardShow" @click="forward">下一步</button>
25
- <button @click="reset">重置位置</button>
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>
@@ -99,6 +99,14 @@ export default {
99
99
  updateStatus: {
100
100
  type: Boolean,
101
101
  default: false
102
+ },
103
+ resetShow: {
104
+ type: Boolean,
105
+ default: true
106
+ },
107
+ full: {
108
+ type: Boolean,
109
+ default: true
102
110
  }
103
111
  },
104
112
  beforeUnmount() {
@@ -208,8 +216,8 @@ export default {
208
216
  document.webkitExitFullscreen();
209
217
  }
210
218
  },
211
- fullDel() {
212
- this.fullShow = true
219
+ fullDel(v) {
220
+ this.fullShow = v
213
221
  this.mindMap.view.setTransformData({
214
222
  state: {scale: 1, x: 0, y: 0, sx: 0, sy: 0},
215
223
  transform: {
@@ -232,8 +240,8 @@ export default {
232
240
  this.cancelFullscreen()
233
241
  },
234
242
  // 全屏
235
- fullTap() {
236
- this.fullShow = false
243
+ fullTap(v) {
244
+ this.fullShow = v
237
245
  this.fullScreen(document.body)
238
246
  },
239
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.624',
90
+ version: '1.35.626',
91
91
  install,
92
92
  Calendar,
93
93
  Message,