@quanxi/ui
Version:
全悉组件库
29 lines (28 loc) • 926 B
TypeScript
import React from "react";
import { SelectProps as RcSelectProps } from "rc-select";
import "./style.scss";
export type SelectOption<T = string> = {
label: T;
value?: string | number;
options?: SelectOption<T>[];
};
export interface SelectProps<T> extends RcSelectProps {
placeholder?: string;
options: SelectOption<T>[];
value?: React.Key[] | React.Key | undefined;
disabled?: boolean;
multiple?: boolean;
maxTagCount?: number | "responsive";
suffixIcon?: React.ReactNode;
onChange?: (v: React.Key[] | React.Key | undefined) => void;
allowClear?: boolean;
style?: React.CSSProperties;
dropdownClassName?: string;
noActiveStyle?: boolean;
className?: string;
showHighLight?: boolean;
}
declare const _default: <T extends unknown = string>(props: SelectProps<T> & {
ref?: React.Ref<HTMLDivElement> | undefined;
}) => JSX.Element;
export default _default;