feat: add multipage mode

This commit is contained in:
chenghx
2018-09-13 14:20:08 +08:00
parent 7d7b08644f
commit 0b836882c5
5 changed files with 105 additions and 6 deletions

View File

@@ -55,6 +55,10 @@
显示抽屉按钮
<a-switch slot="actions" size="small" />
</a-list-item>
<a-list-item>
多页签模式
<a-switch :checked="multipage" slot="actions" size="small" @change="setMultipage" />
</a-list-item>
</a-list>
</setting-item>
<a-divider />
@@ -99,6 +103,11 @@ export default {
SettingItem,
AIcon,
ALayoutSider},
computed: {
multipage () {
return this.$store.state.setting.multipage
}
},
methods: {
onColorChange (values, colors) {
if (colors.length > 0) {
@@ -118,6 +127,9 @@ export default {
_this.$message.success(`复制成功`)
clipboard.destroy()
})
},
setMultipage (checked) {
this.$store.commit('setting/setMultipage', checked)
}
}
}