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 +1 -1
- package/src/components/mind/src/mind.vue +10 -6
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -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-
|
|
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 =
|
|
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 =
|
|
243
|
+
fullTap(v) {
|
|
244
|
+
this.fullShow = v
|
|
241
245
|
this.fullScreen(document.body)
|
|
242
246
|
},
|
|
243
247
|
msgFun(e) {
|