mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-19 17:35:53 +08:00
- 将iView组件统一替换为TDesign组件 - 优化表单、表格、弹窗等交互样式 - 修复路由重复添加问题 - 更新依赖版本 - 调整布局间距与响应式 - 修复表单重置方法兼容性 - 统一消息提示组件
70 lines
1018 B
Vue
70 lines
1018 B
Vue
<template>
|
|
<div>
|
|
<Drawer width="300px" title="页面配置" v-model="drawer">
|
|
<!-- 内容 -->
|
|
<h3>
|
|
内容设置
|
|
</h3>
|
|
|
|
</Drawer>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState } from 'vuex'
|
|
export default {
|
|
name: "configDrawer",
|
|
data() {
|
|
return {
|
|
drawer: false,
|
|
|
|
};
|
|
},
|
|
computed: {
|
|
...mapState({
|
|
setting: state => {
|
|
return state.setting.setting
|
|
}
|
|
})
|
|
},
|
|
watch: {
|
|
setting: {
|
|
handler(val) {
|
|
this.setStore('admin-setting', val)
|
|
this.$store.commit('updateSetting', val);
|
|
},
|
|
deep: true
|
|
}
|
|
},
|
|
mounted() {
|
|
},
|
|
methods: {
|
|
open() {
|
|
this.drawer = true
|
|
},
|
|
close() {
|
|
this.drawer = false
|
|
},
|
|
toggle() {
|
|
this.drawer != this.drawer
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
* {
|
|
color: #333 !important;
|
|
}
|
|
|
|
h3 {
|
|
margin: 10px 0 20px 0;
|
|
}
|
|
|
|
.config-item {
|
|
cursor: pointer;
|
|
margin-bottom: 20px;
|
|
justify-content: space-between;
|
|
}
|
|
</style>
|