diff --git a/src/components/setting/Setting.vue b/src/components/setting/Setting.vue index 960d958..1753c99 100644 --- a/src/components/setting/Setting.vue +++ b/src/components/setting/Setting.vue @@ -67,6 +67,10 @@ + + {{$t('animate.disable')}} + + {{$t('animate.effect')}} @@ -13,6 +13,10 @@ export default { name: 'PageToggleTransition', props: { + disabled: { + type: Boolean, + default: false + }, animate: { type: String, validator(value) { diff --git a/src/config/config.js b/src/config/config.js index 6f1f53d..d985f96 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -1,4 +1,4 @@ -// 自定义配置,参考 ./default/setting.js,需要自定义的属性在这里配置即可 +// 自定义配置,参考 ./default/setting.config.js,需要自定义的属性在这里配置即可 module.exports = { theme: { color: '#13c2c2', diff --git a/src/config/default/setting.config.js b/src/config/default/setting.config.js index 997a9fb..a1b3e97 100644 --- a/src/config/default/setting.config.js +++ b/src/config/default/setting.config.js @@ -14,6 +14,7 @@ module.exports = { systemName: 'Vue Antd Admin', //系统名称 copyright: '2018 ICZER 工作室出品', //copyright animate: { //动画设置 + disabled: false, //禁用动画,true:禁用,false:启用 name: 'bounce', //动画效果,支持的动画效果可参考 ./animate.config.js direction: 'left' //动画方向,切换页面时动画的方向,参考 ./animate.config.js }, diff --git a/src/layouts/BlankView.vue b/src/layouts/BlankView.vue index 2ddd4ed..0e3acbf 100644 --- a/src/layouts/BlankView.vue +++ b/src/layouts/BlankView.vue @@ -1,5 +1,5 @@