animation fix
This commit is contained in:
parent
b8288d7cc4
commit
797259cc9d
4 changed files with 9 additions and 11 deletions
|
|
@ -62,7 +62,6 @@ export default {
|
|||
'extra',
|
||||
'status',
|
||||
'funcArg',
|
||||
'animationState',
|
||||
'getClass',
|
||||
'getComponent',
|
||||
'doAction',
|
||||
|
|
@ -73,6 +72,9 @@ export default {
|
|||
EmojiPicker,
|
||||
Popover
|
||||
},
|
||||
data: () => ({
|
||||
animationState: false
|
||||
}),
|
||||
computed: {
|
||||
buttonClass () {
|
||||
return [
|
||||
|
|
@ -116,7 +118,11 @@ export default {
|
|||
if (button.name === 'emoji') {
|
||||
this.$refs.picker.showPicker()
|
||||
} else {
|
||||
this.animationState = true
|
||||
this.getComponent(button) === 'button' && this.doAction(button)
|
||||
setTimeout(() => {
|
||||
this.animationState = false
|
||||
}, 500)
|
||||
close()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue