- Cascader(props): ReactNode
Parameters
props: {
activeIcon?: ReactNode;
cancelText?: ReactNode;
children?: ((items, actions) => ReactNode);
confirmText?: ReactNode;
defaultValue?: CheckListValue[];
fieldNames?: FieldNamesType;
loading?: boolean;
onCancel?: (() => void);
onClose?: (() => void);
onConfirm?: ((value, extend) => void);
onSelect?: ((value, extend) => void);
onTabsChange?: ((index) => void);
options: CascaderOption[];
placeholder?: string;
title?: ReactNode;
value?: CheckListValue[];
visible?: boolean;
} & Pick<PopupProps, "onClick" | "forceRender" | "afterClose" | "destroyOnClose" | "getContainer" | "afterShow" | "stopPropagation"> & {
className?: string;
style?: CSSProperties & Partial<Record<never, string>>;
tabIndex?: number;
} & AriaAttributes & RefAttributes<CascaderActions>
Returns ReactNode
Properties
Readonly $$typeof
$$typeof: symbol
Optional defaultProps
defaultProps?: Partial<{ activeIcon?: ReactNode; cancelText?: ReactNode; children?: ((items,
actions) => ReactNode); confirmText?: ReactNode; defaultValue?: CheckListValue[]; fieldNames?: FieldNamesType; loading?: boolean; onCancel?: (() => void); onClose?: (() => void); onConfirm?: ((value,
extend) => void); onSelect?: ((value,
extend) => void); onTabsChange?: ((index) => void); options: CascaderOption[]; placeholder?: string; title?: ReactNode; value?: CheckListValue[]; visible?: boolean; } & Pick<PopupProps, "onClick" | "forceRender" | "afterClose" | "destroyOnClose" | "getContainer" | "afterShow" | "stopPropagation"> & { className?: string; style?: CSSProperties & Partial<Record<never, string>>; tabIndex?: number; } & AriaAttributes & RefAttributes<CascaderActions>> Optional displayName
displayName?: string
optionSkeleton
prompt
prompt: ((props) => Promise<CheckListValue[] | null>) Type declaration
- (props): Promise<CheckListValue[] | null>
Returns Promise<CheckListValue[] | null>
Optional propTypes
propTypes?: WeakValidationMap<{ activeIcon?: ReactNode; cancelText?: ReactNode; children?: ((items,
actions) => ReactNode); confirmText?: ReactNode; defaultValue?: CheckListValue[]; fieldNames?: FieldNamesType; loading?: boolean; onCancel?: (() => void); onClose?: (() => void); onConfirm?: ((value,
extend) => void); onSelect?: ((value,
extend) => void); onTabsChange?: ((index) => void); options: CascaderOption[]; placeholder?: string; title?: ReactNode; value?: CheckListValue[]; visible?: boolean; } & Pick<PopupProps, "onClick" | "forceRender" | "afterClose" | "destroyOnClose" | "getContainer" | "afterShow" | "stopPropagation"> & { className?: string; style?: CSSProperties & Partial<Record<never, string>>; tabIndex?: number; } & AriaAttributes & RefAttributes<CascaderActions>>
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.