| | |
| | | import { mapState } from 'pinia'; |
| | | import store from '@/store'; |
| | | import { defineComponent } from 'vue'; |
| | | import changeTheme from '@/utils/changeTheme.js'; |
| | | |
| | | export default defineComponent({ |
| | | name: 'LayoutIndex', |
| | |
| | | Sidebar, |
| | | TagsView |
| | | }, |
| | | watch: { |
| | | theme() { |
| | | changeTheme(this.theme); |
| | | } |
| | | }, |
| | | mixins: [ResizeMixin], |
| | | computed: { |
| | | ...mapState(store.app, ['sidebar', 'device']), |
| | | ...mapState(store.settings, { |
| | | theme: 'theme', |
| | | showSettings: 'showSettings', |
| | | needTagsView: 'tagsView', |
| | | fixedHeader: 'fixedHeader' |
| | |
| | | handleClickOutside() { |
| | | store.app().closeSidebar({ withoutAnimation: false }); |
| | | } |
| | | }, |
| | | beforeMount() { |
| | | changeTheme(this.theme); |
| | | }, |
| | | mounted() { |
| | | |
| | | } |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import "@/styles/mixin.scss"; |
| | | // @import "@/styles/variables.module.scss"; |
| | | @import "@/styles/element/index.scss"; |
| | | |
| | | .app-wrapper { |
| | | @include clearfix; |