@cainiaofe/cn-ui-m
Version:
29 lines (28 loc) • 1.63 kB
TypeScript
import React from 'react';
import type { CnPickerActions } from './types';
declare const CnPicker: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
columns: import("./types").CnPickerColumn[] | ((value: import("./types").CnPickerColumn[]) => import("./types").CnPickerColumn[]);
value?: string[];
defaultValue?: string[];
loading?: boolean;
loadingContent?: React.ReactNode;
onSelect?: (value: string[], extend: import("../cn-picker-view/types").CnPickerValueExtend) => void;
onConfirm?: (value: string[], extend: import("../cn-picker-view/types").CnPickerValueExtend) => void;
onCancel?: () => void;
onClose?: () => void;
closeOnMaskClick?: boolean;
visible?: boolean;
title?: React.ReactNode;
confirmText?: React.ReactNode;
cancelText?: React.ReactNode;
children?: (items: import("../cn-picker-view/types").CnPickerColumnItem[], actions: import("../cn-picker-view/types").CnPickerActions) => React.ReactNode;
renderLabel?: (item: import("../cn-picker-view/types").CnPickerColumnItem) => React.ReactNode;
mouseWheel?: boolean;
popupClassName?: string;
popupStyle?: React.CSSProperties;
} & Pick<import("../cn-picker-view/types").PopupBaseProps, "onClick" | "getContainer" | "stopPropagation" | "afterShow" | "afterClose" | "forceRender" | "destroyOnClose"> & {
className?: string;
style?: React.CSSProperties & Partial<Record<"--header-button-font-size" | "--title-font-size" | "--item-font-size" | "--item-height", string>>;
tabIndex?: number;
} & React.AriaAttributes & React.RefAttributes<CnPickerActions>>>;
export { CnPicker };