From 87c79f56ec2febcb347370e4c79d35547d96a015 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 6 Apr 2023 11:50:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E7=94=BB=E7=BB=93=E6=9D=9F=E5=90=8E?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=B8=85=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/anim.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 }