acud
Version:
acg react 组件库
23 lines (22 loc) • 935 B
TypeScript
import * as React from 'react';
import { LabelValueType, RawValueType, CustomTagProps } from '../interface/generator';
import { RenderNode } from '../interface';
import { InnerSelectorProps } from '.';
interface SelectorProps extends InnerSelectorProps {
showAllSelected?: boolean;
showAllSelectedTag?: boolean;
removeIcon?: RenderNode;
maxTagCount?: number | 'responsive';
maxTagTextLength?: number;
maxTagPlaceholder?: React.ReactNode | ((omittedValues: LabelValueType[]) => React.ReactNode);
tokenSeparators?: string[];
tagRender?: (props: CustomTagProps) => React.ReactElement;
onToggleOpen: (open?: boolean) => void;
onClearMouseDown?: React.MouseEventHandler<HTMLSpanElement>;
choiceTransitionName?: string;
onSelect: (value: RawValueType, option: {
selected: boolean;
}) => void;
}
declare const SelectSelector: React.FC<SelectorProps>;
export default SelectSelector;