mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
fix: animation settings do not work; 🐛
修复:动画设置不生效的问题;
This commit is contained in:
parent
5de9f9c305
commit
2a45a8122a
@ -57,7 +57,7 @@
|
|||||||
{{$t('animate.effect')}}
|
{{$t('animate.effect')}}
|
||||||
<a-select
|
<a-select
|
||||||
v-model="animate"
|
v-model="animate"
|
||||||
@change="val => setAnimate(val)"
|
@change="val => setAnimation(val)"
|
||||||
class="select-item" size="small" slot="actions"
|
class="select-item" size="small" slot="actions"
|
||||||
>
|
>
|
||||||
<a-select-option :key="index" :value="item.name" v-for="(item, index) in animates">{{item.alias}}</a-select-option>
|
<a-select-option :key="index" :value="item.name" v-for="(item, index) in animates">{{item.alias}}</a-select-option>
|
||||||
@ -67,7 +67,7 @@
|
|||||||
{{$t('animate.direction')}}
|
{{$t('animate.direction')}}
|
||||||
<a-select
|
<a-select
|
||||||
v-model="direction"
|
v-model="direction"
|
||||||
@change="val => setAnimate(this.animate, val)"
|
@change="val => setAnimation(this.animate, val)"
|
||||||
class="select-item" size="small" slot="actions"
|
class="select-item" size="small" slot="actions"
|
||||||
>
|
>
|
||||||
<a-select-option :key="index" :value="item" v-for="(item, index) in directions">{{item}}</a-select-option>
|
<a-select-option :key="index" :value="item" v-for="(item, index) in directions">{{item}}</a-select-option>
|
||||||
@ -127,7 +127,7 @@ export default {
|
|||||||
clipboard.destroy()
|
clipboard.destroy()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
setAnimate(animate, direction) {
|
setAnimation(animate, direction) {
|
||||||
if (direction == undefined) {
|
if (direction == undefined) {
|
||||||
this.direction = this.directions[0]
|
this.direction = this.directions[0]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user