import { IDictionary } from '@mjcloud/types'; import { ISelectBaseState, ISelectBaseConfig, SelectBaseControlActionType, SelectBaseControlEventType } from '../common/select/typings'; export declare type SelectTreeActionType = SelectBaseControlActionType | 'updateTreeExpandedKeys'; export declare type SelectTreeEventType = SelectBaseControlEventType; export interface ISelectTreeConfig extends ISelectBaseConfig { expandLevel: number; /** * 是否允许多选,默认为false */ multiSelect: boolean; /** * 自动分词的分隔符 */ tokenSeparators: string[]; /** * 格式化成值时使用的分隔符 */ vaueleTokenSeparator: string; /** * 格式化成文本时使用的分隔符 */ textTokenSeparator: string; showIcon: boolean; iconControl?: string; } export interface ISelectTreeState extends ISelectBaseState { showIcon: boolean; expandLevel: number; searchValue?: string; iconControl?: string; valueFieldName: string; expandedKeys: string[]; iconFn?: (row: IDictionary) => Promise; /** * 是否允许多选,默认为false */ multiSelect: boolean; /** * 自动分词的分隔符 */ tokenSeparators: string[]; /** * 格式化成值时使用的分隔符 */ vaueleTokenSeparator: string; /** * 格式化成文本时使用的分隔符 */ textTokenSeparator: string; autoFocus: boolean; }