Skip to content

Commit 009687c

Browse files
committed
fix: remove blockHeader hasBottom props
1 parent 1206000 commit 009687c

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

src/blockHeader/demos/expand.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,12 @@ export default () => {
88
<BlockHeader
99
title="非受控标题"
1010
defaultExpand={false}
11-
hasBottom
1211
onExpand={(expand) => console.log(expand)}
1312
>
1413
Hello World!
1514
</BlockHeader>
1615

17-
<BlockHeader
18-
title="受控标题"
19-
expand={expand}
20-
onExpand={(expand) => setExpand(expand)}
21-
hasBottom
22-
>
16+
<BlockHeader title="受控标题" expand={expand} onExpand={(expand) => setExpand(expand)}>
2317
Hello World!
2418
</BlockHeader>
2519

src/blockHeader/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ demo:
4141
| background | 是否显示背景 | `boolean` | `true` |
4242
| defaultExpand | 是否默认展开内容 | `boolean` | `-` |
4343
| expand | 当前展开状态 | `boolean` | |
44-
| spaceBottom | 自定义下边距,优先级高于 hasBottom | `number` | `16` |
44+
| spaceBottom | 自定义下边距 | `number` | `16` |
4545
| children | 展开/收起的内容 | `React.ReactNode` | - |
4646
| onExpand | 展开/收起时的回调 | `(expand: boolean) => void` | - |

0 commit comments

Comments
 (0)