diff --git a/components/tree/Tree.tsx b/components/tree/Tree.tsx index 239ecf7453..36298374f8 100644 --- a/components/tree/Tree.tsx +++ b/components/tree/Tree.tsx @@ -103,7 +103,7 @@ export type TreeNodeNormal = DataNode; type DraggableFn = (node: DataNode) => boolean; interface DraggableConfig { - icon?: React.ReactNode | false; + icon?: React.ReactNode; nodeDraggable?: DraggableFn; } diff --git a/components/typography/index.en-US.md b/components/typography/index.en-US.md index a899a7b5c8..8d1a7a98c9 100644 --- a/components/typography/index.en-US.md +++ b/components/typography/index.en-US.md @@ -108,7 +108,7 @@ Common props ref:[Common props](/docs/react/common-props) { icon: ReactNode, - tooltip: boolean | ReactNode, + tooltip: ReactNode, editing: boolean, maxLength: number, autoSize: boolean | { minRows: number, maxRows: number }, @@ -148,7 +148,7 @@ interface EllipsisConfig { suffix: string; /** render function added in `5.16.0` */ symbol: ReactNode | ((expanded: boolean) => ReactNode); - tooltip: boolean | ReactNode | TooltipProps; + tooltip: ReactNode | TooltipProps; /** added in `5.16.0` */ defaultExpanded: boolean; /** added in `5.16.0` */ diff --git a/components/typography/index.zh-CN.md b/components/typography/index.zh-CN.md index a9d20f108b..b837e04816 100644 --- a/components/typography/index.zh-CN.md +++ b/components/typography/index.zh-CN.md @@ -109,7 +109,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*LT2jR41Uj2EAAA { icon: ReactNode, - tooltip: boolean | ReactNode, + tooltip: ReactNode, editing: boolean, maxLength: number, autoSize: boolean | { minRows: number, maxRows: number }, @@ -149,7 +149,7 @@ interface EllipsisConfig { suffix: string; /** `5.16.0` 新增渲染函数 */ symbol: ReactNode | ((expanded: boolean) => ReactNode); - tooltip: boolean | ReactNode | TooltipProps; + tooltip: ReactNode | TooltipProps; /** `5.16.0` 新增 */ defaultExpanded: boolean; /** `5.16.0` 新增 */