File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ` |
Original file line number Diff line number Diff 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
2222export declare type SizeType = 'small' | 'middle' | 'large' ;
2323
You can’t perform that action at this time.
0 commit comments