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

This commit is contained in:
wangjiahao 2021-12-29 12:22:10 +08:00
parent 12ab1999a4
commit 1740e4901d

View File

@ -2,6 +2,9 @@
<div>
<div v-show="editControlButton" class="toolbar">
<span style="float: right;">
<el-button v-if="mobileLayoutStatus" size="mini" @click="editReset">
{{ $t('commons.reset') }}
</el-button>
<el-button size="mini" @click="editSave">
{{ $t('commons.confirm') }}
</el-button>
@ -366,6 +369,10 @@ export default {
this.saveLinkage()
}
},
editReset() {
this.cancelMobileLayoutStatue(JSON.parse(this.componentDataCache))
this.$store.commit('openMobileLayout')
},
editCancel() {
if (this.mobileLayoutStatus) {
this.cancelMobileLayoutStatue(JSON.parse(this.componentDataCache))