未验证 提交 bf3ca299 编写于 作者: O oasis-cloud 提交者: GitHub

fix: 修复 overlay 组件 style 不生效的问题 (#641)

上级 323b1673
......@@ -34,6 +34,8 @@ export const Overlay: FunctionComponent<
visible,
lockScroll,
overlayStyle,
onClick,
...rest
} = {
...defaultOverlayProps,
...props,
......@@ -83,7 +85,7 @@ export const Overlay: FunctionComponent<
const handleClick = (event: ITouchEvent) => {
if (closeOnClickOverlay) {
props.onClick && props.onClick(event)
onClick && onClick(event)
renderRef.current = false
const id = window.setTimeout(() => {
setShow(!visible)
......@@ -97,6 +99,7 @@ export const Overlay: FunctionComponent<
<View
className={classes}
style={styles}
{...(rest as any)}
catchMove={lockScroll}
onClick={handleClick}
>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册