Skip to content

Commit ef0bea8

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

2 files changed

Lines changed: 19 additions & 25 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: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ demo:
2626

2727
### BlockHeader
2828

29-
| 参数 | 说明 | 类型 | 默认值 |
30-
| ---------------- | ---------------------------------- | --------------------------------------- | -------- |
31-
| title | 标题 | `string` | - |
32-
| addonBefore | 标题前的图标,默认是一个色块 | `React.ReactNode` | - |
33-
| description | 标题提示文案 | `React.ReactNode` | - |
34-
| tooltip | 默认展示问号提示 | `TooltipProps \| TooltipProps['title']` | - |
35-
| addonAfter | 标题后的内容 | `React.ReactNode` | - |
36-
| size | 小标题、中标题,默认为中标题 | `small \| middle \| large` | `middle` |
37-
| className | 标题的样式类名 | `string` | - |
38-
| style | 标题的样式 | `React.CSSProperties` | - |
39-
| contentClassName | 展示内容的样式类名 | `string` | - |
40-
| contentStyle | 展示内容的样式 | `React.CSSProperties` | - |
41-
| background | 是否显示背景 | `boolean` | `true` |
42-
| defaultExpand | 是否默认展开内容 | `boolean` | `-` |
43-
| expand | 当前展开状态 | `boolean` | |
44-
| spaceBottom | 自定义下边距,优先级高于 hasBottom | `number` | `16` |
45-
| children | 展开/收起的内容 | `React.ReactNode` | - |
46-
| onExpand | 展开/收起时的回调 | `(expand: boolean) => void` | - |
29+
| 参数 | 说明 | 类型 | 默认值 |
30+
| ---------------- | ---------------------------- | --------------------------------------- | -------- |
31+
| title | 标题 | `string` | - |
32+
| addonBefore | 标题前的图标,默认是一个色块 | `React.ReactNode` | - |
33+
| description | 标题提示文案 | `React.ReactNode` | - |
34+
| tooltip | 默认展示问号提示 | `TooltipProps \| TooltipProps['title']` | - |
35+
| addonAfter | 标题后的内容 | `React.ReactNode` | - |
36+
| size | 小标题、中标题,默认为中标题 | `small \| middle \| large` | `middle` |
37+
| className | 标题的样式类名 | `string` | - |
38+
| style | 标题的样式 | `React.CSSProperties` | - |
39+
| contentClassName | 展示内容的样式类名 | `string` | - |
40+
| contentStyle | 展示内容的样式 | `React.CSSProperties` | - |
41+
| background | 是否显示背景 | `boolean` | `true` |
42+
| defaultExpand | 是否默认展开内容 | `boolean` | `-` |
43+
| expand | 当前展开状态 | `boolean` | |
44+
| spaceBottom | 自定义下边距 | `number` | `16` |
45+
| children | 展开/收起的内容 | `React.ReactNode` | - |
46+
| onExpand | 展开/收起时的回调 | `(expand: boolean) => void` | - |

0 commit comments

Comments
 (0)