From 0f9582c19570785257efc253b93cca449eb384d9 Mon Sep 17 00:00:00 2001 From: xiamiao Date: Mon, 3 Jun 2024 16:57:52 +0800 Subject: [PATCH] =?UTF-8?q?chore(modal):=20=E4=BB=A3=E7=A0=81=E8=A7=84?= =?UTF-8?q?=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/modal/src/use-modal.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ui/modal/src/use-modal.ts b/packages/ui/modal/src/use-modal.ts index af9053eab..bbdfd3eea 100644 --- a/packages/ui/modal/src/use-modal.ts +++ b/packages/ui/modal/src/use-modal.ts @@ -161,6 +161,7 @@ export const useModal = ({ if (Object.prototype.hasOwnProperty.call(props, 'zIndex')) { style.zIndex = props.zIndex } + return { role: 'dialog', 'aria-modal': true,