区分全屏查看和全屏编辑
This commit is contained in:
parent
df32655321
commit
503506dfd4
@ -68,7 +68,8 @@ export default {
|
|||||||
tips: 'tips:.smm and .json file can be import'
|
tips: 'tips:.smm and .json file can be import'
|
||||||
},
|
},
|
||||||
fullscreen: {
|
fullscreen: {
|
||||||
fullscreen: 'Fullscreen'
|
fullscreenShow: 'Full screen show',
|
||||||
|
fullscreenEdit: 'Full screen edit'
|
||||||
},
|
},
|
||||||
import: {
|
import: {
|
||||||
title: 'Import',
|
title: 'Import',
|
||||||
|
|||||||
@ -68,7 +68,8 @@ export default {
|
|||||||
tips: 'tips:.smm和.json文件可用于导入'
|
tips: 'tips:.smm和.json文件可用于导入'
|
||||||
},
|
},
|
||||||
fullscreen: {
|
fullscreen: {
|
||||||
fullscreen: '全屏'
|
fullscreenShow: '全屏查看',
|
||||||
|
fullscreenEdit: '全屏编辑'
|
||||||
},
|
},
|
||||||
import: {
|
import: {
|
||||||
title: '导入',
|
title: '导入',
|
||||||
|
|||||||
@ -3,10 +3,18 @@
|
|||||||
<el-tooltip
|
<el-tooltip
|
||||||
class="item"
|
class="item"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
:content="$t('fullscreen.fullscreen')"
|
:content="$t('fullscreen.fullscreenShow')"
|
||||||
placement="top"
|
placement="top"
|
||||||
>
|
>
|
||||||
<div class="btn iconfont iconquanping" @click="toFullscreen"></div>
|
<div class="btn iconfont iconquanping" @click="toFullscreenShow"></div>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip
|
||||||
|
class="item"
|
||||||
|
effect="dark"
|
||||||
|
:content="$t('fullscreen.fullscreenEdit')"
|
||||||
|
placement="top"
|
||||||
|
>
|
||||||
|
<div class="btn iconfont iconquanping1" @click="toFullscreenEdit"></div>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -37,13 +45,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
// 全屏查看
|
||||||
* @Author: 王林
|
toFullscreenShow() {
|
||||||
* @Date: 2021-07-11 21:14:30
|
|
||||||
* @Desc: 准备全屏
|
|
||||||
*/
|
|
||||||
toFullscreen() {
|
|
||||||
fullScreen(this.mindMap.el)
|
fullScreen(this.mindMap.el)
|
||||||
|
},
|
||||||
|
|
||||||
|
// 全屏编辑
|
||||||
|
toFullscreenEdit() {
|
||||||
|
fullScreen(document.body)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -54,6 +63,14 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
.item {
|
||||||
|
margin-right: 12px;
|
||||||
|
|
||||||
|
&:last-of-type {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user