Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/packages/overlay/demos/taro/demo1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const Demo1 = () => {
}
return (
<>
<Cell>
<View onClick={handleToggleShow}>点击按钮显示遮罩层</View>
<Cell onClick={handleToggleShow}>
<View>点击按钮显示遮罩层</View>
</Cell>

<Overlay
Expand Down
4 changes: 2 additions & 2 deletions src/packages/overlay/demos/taro/demo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const Demo2 = () => {
}
return (
<>
<Cell>
<View onClick={handleToggleShow}>自定义遮罩样式</View>
<Cell onClick={handleToggleShow}>
<View>自定义遮罩样式</View>
</Cell>

<Overlay
Expand Down
4 changes: 2 additions & 2 deletions src/packages/overlay/demos/taro/demo3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const Demo3 = () => {
}
return (
<>
<Cell>
<View onClick={handleToggleShow}>设置动画时间</View>
<Cell onClick={handleToggleShow}>
<View>设置动画时间</View>
</Cell>
<Overlay
visible={visible}
Expand Down
4 changes: 2 additions & 2 deletions src/packages/overlay/demos/taro/demo4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const Demo4 = () => {
}
return (
<>
<Cell>
<View onClick={handleToggleShow}>不锁定背景滚动</View>
<Cell onClick={handleToggleShow}>
<View>不锁定背景滚动</View>
</Cell>

<Overlay visible={visible} onClick={onClose} lockScroll={false} />
Expand Down
4 changes: 2 additions & 2 deletions src/packages/overlay/demos/taro/demo5.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const Demo5 = () => {
}
return (
<>
<Cell>
<View onClick={handleToggleShow}>嵌套内容</View>
<Cell onClick={handleToggleShow}>
<View>嵌套内容</View>
</Cell>

<Overlay visible={visible} onClick={onClose}>
Expand Down
4 changes: 2 additions & 2 deletions src/packages/overlay/demos/taro/demo6.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const Demo6 = () => {
}
return (
<>
<Cell>
<View onClick={handleToggleShow}>点击遮罩不关闭</View>
<Cell onClick={handleToggleShow}>
<View>点击遮罩不关闭</View>
</Cell>
<Overlay visible={visible} closeOnOverlayClick={false}>
<View style={wrapperStyle}>
Expand Down