| | |
| | | <template> |
| | | <div class="drawer-container"> |
| | | <div> |
| | | <h3 class="drawer-title">项目配置</h3> |
| | | <h3 class="drawer-title">系统配置</h3> |
| | | |
| | | <div class="drawer-item"> |
| | | <span>主题颜色</span> |
| | |
| | | inactive-color="#ccc" |
| | | active-text="横向" |
| | | inactive-text="竖向" |
| | | @change="sidebar.opened=true" |
| | | /> |
| | | </div> |
| | | <div class="drawer-item" style="display: flex;justify-content: space-between"> |
| | |
| | | style="width: 120px;" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | @change="animationTypeChange" |
| | | > |
| | | <el-option |
| | | v-for="item in animationTypeArr" |
| | |
| | | |
| | | <script> |
| | | import ThemePicker from '@/components/ThemePicker' |
| | | import { mapGetters } from 'vuex' |
| | | |
| | | export default { |
| | | components: { ThemePicker }, |
| | |
| | | ] |
| | | } |
| | | }, |
| | | mounted() { |
| | | if (this.$store.state.settings.menuIsHorizontal) { |
| | | this.sidebar.opened = true |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | | 'sidebar' |
| | | ]), |
| | | fixedHeader: { |
| | | get() { |
| | | return this.$store.state.settings.fixedHeader |
| | |
| | | key: 'theme', |
| | | value: val |
| | | }) |
| | | }, |
| | | animationTypeChange(val) { |
| | | console.log(val, 1) |
| | | } |
| | | } |
| | | } |