From 6b13b65a3a0b6f81dfb09e3ef6a6c655a76cccad Mon Sep 17 00:00:00 2001 From: dominicleo Date: Sun, 15 Oct 2023 22:15:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20popup=20=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E8=B6=85=E9=95=BF=E6=BB=9A=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/zarm/src/modal/demo.md | 15 +++++++++++++-- packages/zarm/src/popup/Popup.tsx | 1 - 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/zarm/src/modal/demo.md b/packages/zarm/src/modal/demo.md index de0aaf485..de67b9291 100644 --- a/packages/zarm/src/modal/demo.md +++ b/packages/zarm/src/modal/demo.md @@ -156,8 +156,19 @@ const Demo = () => {
- toggle('normal')}> - 模态框内容 + toggle('normal')} + maskClosable + > + {Array.from(Array(100).fill(0)).map((_, index) => ( +
+ 模态框内容 +
+
+ ))}
((props, ref) => { }, []); const handleClick = (event: React.MouseEvent) => { - event.stopPropagation(); if (nodeRef.current !== event.target && nodeRef.current.contains(event.target as HTMLElement)) { return; }