UNPKG

@quanxi/ui

Version:

全悉组件库

29 lines (28 loc) 919 B
import React from "react"; import { TreeSelectProps as RCProps } from "rc-tree-select"; import "./style.scss"; export type TreeData = { value: React.Key; title?: React.ReactNode | string; label?: React.ReactNode | string; children?: TreeData[]; }; export interface TreeSelectProps extends RCProps { treeData: TreeData[]; value?: React.Key[] | React.Key; switcherIcon?: React.ReactNode; placeholder?: string; multiple?: boolean; showSearch?: boolean; onChange?: (val: React.Key[] | React.Key) => void; style?: React.CSSProperties; maxTagCount?: number | "responsive"; allowClear?: boolean; treeNodeLabelProp?: string; treeNodeFilterProp?: string; className?: string; showHighLight?: boolean; disabled?: boolean; } declare const _default: React.ForwardRefExoticComponent<TreeSelectProps & React.RefAttributes<unknown>>; export default _default;