From 2f9bc7e18748a4f1f834d9018d74dccefdbafe27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=B8=87?= <52823142+Ten-K@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:20:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=BC=8F=E5=BC=B9=E7=AA=97=E7=82=B9=E5=87=BB=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E6=8C=89=E9=92=AE=EF=BC=8C=E5=BB=B6=E6=97=B6=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98=20(#1112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ReDialog/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ReDialog/index.ts b/src/components/ReDialog/index.ts index ce94a89dce..b471764b12 100644 --- a/src/components/ReDialog/index.ts +++ b/src/components/ReDialog/index.ts @@ -29,9 +29,11 @@ const addDialog = (options: DialogOptions) => { const closeDialog = (options: DialogOptions, index: number, args?: any) => { dialogStore.value[index].visible = false; options.closeCallBack && options.closeCallBack({ options, index, args }); + + const closeDelay = options?.closeDelay ?? 200; useTimeoutFn(() => { dialogStore.value.splice(index, 1); - }, 200); + }, closeDelay); }; /**