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; }