type: rm duplicate boolean type (#49816)

This commit is contained in:
lijianan 2024-07-11 10:02:24 +08:00 committed by GitHub
parent 0651f84ee7
commit 34a2058e85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -103,7 +103,7 @@ export type TreeNodeNormal = DataNode;
type DraggableFn = (node: DataNode) => boolean;
interface DraggableConfig {
icon?: React.ReactNode | false;
icon?: React.ReactNode;
nodeDraggable?: DraggableFn;
}

View File

@ -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` */

View File

@ -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` 新增 */