提交 1740e490 authored 作者: wangjiahao's avatar wangjiahao

feat: 移动端布局增加重置功能

上级 12ab1999
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
<div> <div>
<div v-show="editControlButton" class="toolbar"> <div v-show="editControlButton" class="toolbar">
<span style="float: right;"> <span style="float: right;">
<el-button v-if="mobileLayoutStatus" size="mini" @click="editReset">
{{ $t('commons.reset') }}
</el-button>
<el-button size="mini" @click="editSave"> <el-button size="mini" @click="editSave">
{{ $t('commons.confirm') }} {{ $t('commons.confirm') }}
</el-button> </el-button>
...@@ -366,6 +369,10 @@ export default { ...@@ -366,6 +369,10 @@ export default {
this.saveLinkage() this.saveLinkage()
} }
}, },
editReset() {
this.cancelMobileLayoutStatue(JSON.parse(this.componentDataCache))
this.$store.commit('openMobileLayout')
},
editCancel() { editCancel() {
if (this.mobileLayoutStatus) { if (this.mobileLayoutStatus) {
this.cancelMobileLayoutStatue(JSON.parse(this.componentDataCache)) this.cancelMobileLayoutStatue(JSON.parse(this.componentDataCache))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论