Skip to content

Commit b275b5e

Browse files
committed
feat(blockheader): change doc and ts
1 parent 934eee6 commit b275b5e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/blockHeader/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ demo:
3030
| title | 标题 | `string` | - |
3131
| addonBefore | 标题前的图标,默认是一个色块 | `React.ReactNode` | - |
3232
| description | 标题提示文案 | `React.ReactNode` | - |
33-
| tooltip | 默认展示问号提示 | `TooltipProps \| React.ReactNode` | - |
33+
| tooltip | 默认展示问号提示 | `TooltipProps \| TooltipProps['title']` | - |
3434
| addonAfter | 标题后的内容 | `React.ReactNode` | - |
3535
| size | 小标题、中标题,默认为中标题 | `small \| middle \| large` | `middle` |
36-
| titleRowClassName | 标题一行的样式类名 | `string` | - |
37-
| titleClassName | 标题的样式类名 | `string` | - |
36+
| className | 标题一行的样式类名 | `string` | - |
37+
| style | 标题的样式 | `React.CSSProperties` | - |
3838
| background | 是否显示背景 | `boolean` | `true` |
3939
| expand | 当前展开状态 | `boolean` | |
4040
| defaultExpand | 是否默认展开内容 | `boolean` | `true` |

src/blockHeader/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function toTooltipProps(tooltip: LabelTooltipType): TooltipProps | null {
1717
};
1818
}
1919

20-
export type LabelTooltipType = TooltipProps | React.ReactNode;
20+
export type LabelTooltipType = TooltipProps | TooltipProps['title'];
2121

2222
export declare type SizeType = 'small' | 'middle' | 'large';
2323

0 commit comments

Comments
 (0)