动画结束后自动清除

pull/1/head 1.8.5
yutent 2023-04-06 11:50:26 +08:00
parent 7ee22886cb
commit 87c79f56ec
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@bd/core", "name": "@bd/core",
"version": "1.8.4", "version": "1.8.5",
"type": "module", "type": "module",
"description": "百搭UI组件库的核心", "description": "百搭UI组件库的核心",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -20,6 +20,7 @@ export function animate(duration = 200, fromto = [], out = false) {
if (out) { if (out) {
this.style.display = 'none' this.style.display = 'none'
} }
res.cancel()
resolve() resolve()
}, },
{ once: true } { once: true }