1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

minor changes

This commit is contained in:
lana-k
2020-12-20 22:30:40 +01:00
parent 068195589a
commit 6e29791892

View File

@@ -31,7 +31,7 @@
ref="fileImg"
:class="{
'swing': state === 'dragover',
'fly': state === 'drop',
'fly': state === 'drop'
}"
:src="require('@/assets/images/file.png')"
/>
@@ -66,8 +66,10 @@ export default {
mounted () {
if (this.illustrated) {
this.animationPromise = new Promise((resolve) => {
this.$refs.fileImg.addEventListener('animationend', () => {
this.$refs.fileImg.addEventListener('animationend', event => {
if (event.animationName.startsWith('fly')) {
resolve()
}
})
})
}