diff --git a/package.json b/package.json index 9305954..e01e6e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bd/core", - "version": "1.8.4", + "version": "1.8.5", "type": "module", "description": "百搭UI组件库的核心", "main": "dist/index.js", diff --git a/src/anim.js b/src/anim.js index 9aa746c..134101f 100644 --- a/src/anim.js +++ b/src/anim.js @@ -20,6 +20,7 @@ export function animate(duration = 200, fromto = [], out = false) { if (out) { this.style.display = 'none' } + res.cancel() resolve() }, { once: true }