UNPKG

@oceanbase/design

Version:
24 lines (23 loc) 1.05 kB
import { TreeSelect as AntTreeSelect } from 'antd'; import type { TreeSelectProps as AntTreeSelectProps } from 'antd/es/tree-select'; import type { TreeNode as AntTreeNode } from 'rc-tree-select'; import type { BaseSelectRef } from 'rc-select'; import React from 'react'; export * from 'antd/es/tree-select'; export interface TreeSelectLocale { placeholder?: string; } export interface TreeSelectProps extends AntTreeSelectProps { locale?: TreeSelectLocale; } type CompoundedComponent = React.ForwardRefExoticComponent<TreeSelectProps & React.RefAttributes<BaseSelectRef>> & { TreeNode: typeof AntTreeNode; SHOW_ALL: typeof AntTreeSelect.SHOW_ALL; SHOW_PARENT: typeof AntTreeSelect.SHOW_PARENT; SHOW_CHILD: typeof AntTreeSelect.SHOW_CHILD; _InternalPanelDoNotUseOrYouWillBeFired: typeof AntTreeSelect._InternalPanelDoNotUseOrYouWillBeFired; }; declare const TreeSelect: CompoundedComponent; declare const TreeNode: React.FC<import("rc-tree-select/lib/TreeNode").TreeNodeProps>; export { TreeNode }; export default TreeSelect;