新增: 全局动画切换功能;

This commit is contained in:
iczer
2020-06-18 15:01:39 +08:00
parent 25e1c0f808
commit ce3ee754f5
19 changed files with 226 additions and 73 deletions

View File

@@ -1,3 +1,4 @@
import {footerLinks, animates} from '@/config'
export default {
namespaced: true,
state: {
@@ -6,12 +7,13 @@ export default {
layout: 'side',
systemName: 'Vue Antd Admin',
copyright: '2018 ICZER 工作室出品',
footerLinks: [
{link: 'https://pro.ant.design', name: 'Pro首页'},
{link: 'https://github.com/iczer/vue-antd-admin', icon: 'github'},
{link: 'https://ant.design', name: 'Ant Design'}
],
multiPage: true
footerLinks: footerLinks,
multiPage: true,
animates: animates,
animate: {
name: 'back',
direction: 'left'
}
},
mutations: {
setDevice (state, isMobile) {
@@ -25,6 +27,9 @@ export default {
},
setMultiPage (state, multiPage) {
state.multiPage = multiPage
},
setAnimate (state, animate) {
state.animate = animate
}
}
}