File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 ` | - |
You can’t perform that action at this time.
0 commit comments