Skip to content

Commit 01c20cc

Browse files
committed
feat(blockheader): change tooltip to TooltipProps and use toTooltipProps
1 parent 9ae8778 commit 01c20cc

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/blockHeader/index.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ demo:
2525

2626
### BlockHeader
2727

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

0 commit comments

Comments
 (0)