107 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			107 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { type PropType, type ExtractPropTypes } from 'vue';
 | 
						|
import { type Numeric } from '../utils';
 | 
						|
export type TreeSelectChild = {
 | 
						|
    id: Numeric;
 | 
						|
    text: string;
 | 
						|
    disabled?: boolean;
 | 
						|
};
 | 
						|
export type TreeSelectItem = {
 | 
						|
    dot?: boolean;
 | 
						|
    text: string;
 | 
						|
    badge?: Numeric;
 | 
						|
    children?: TreeSelectChild[];
 | 
						|
    disabled?: boolean;
 | 
						|
    className?: unknown;
 | 
						|
};
 | 
						|
export declare const treeSelectProps: {
 | 
						|
    max: {
 | 
						|
        type: (NumberConstructor | StringConstructor)[];
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
    items: {
 | 
						|
        type: PropType<TreeSelectItem[]>;
 | 
						|
        default: () => never[];
 | 
						|
    };
 | 
						|
    height: {
 | 
						|
        type: (NumberConstructor | StringConstructor)[];
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
    selectedIcon: {
 | 
						|
        type: PropType<string>;
 | 
						|
        default: string;
 | 
						|
    };
 | 
						|
    mainActiveIndex: {
 | 
						|
        type: (NumberConstructor | StringConstructor)[];
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
    activeId: {
 | 
						|
        type: PropType<Numeric | Numeric[]>;
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
};
 | 
						|
export type TreeSelectProps = ExtractPropTypes<typeof treeSelectProps>;
 | 
						|
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
 | 
						|
    max: {
 | 
						|
        type: (NumberConstructor | StringConstructor)[];
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
    items: {
 | 
						|
        type: PropType<TreeSelectItem[]>;
 | 
						|
        default: () => never[];
 | 
						|
    };
 | 
						|
    height: {
 | 
						|
        type: (NumberConstructor | StringConstructor)[];
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
    selectedIcon: {
 | 
						|
        type: PropType<string>;
 | 
						|
        default: string;
 | 
						|
    };
 | 
						|
    mainActiveIndex: {
 | 
						|
        type: (NumberConstructor | StringConstructor)[];
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
    activeId: {
 | 
						|
        type: PropType<Numeric | Numeric[]>;
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex")[], "clickItem" | "clickNav" | "update:activeId" | "update:mainActiveIndex", import("vue").PublicProps, Readonly<ExtractPropTypes<{
 | 
						|
    max: {
 | 
						|
        type: (NumberConstructor | StringConstructor)[];
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
    items: {
 | 
						|
        type: PropType<TreeSelectItem[]>;
 | 
						|
        default: () => never[];
 | 
						|
    };
 | 
						|
    height: {
 | 
						|
        type: (NumberConstructor | StringConstructor)[];
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
    selectedIcon: {
 | 
						|
        type: PropType<string>;
 | 
						|
        default: string;
 | 
						|
    };
 | 
						|
    mainActiveIndex: {
 | 
						|
        type: (NumberConstructor | StringConstructor)[];
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
    activeId: {
 | 
						|
        type: PropType<Numeric | Numeric[]>;
 | 
						|
        default: number;
 | 
						|
    };
 | 
						|
}>> & Readonly<{
 | 
						|
    onClickItem?: ((...args: any[]) => any) | undefined;
 | 
						|
    onClickNav?: ((...args: any[]) => any) | undefined;
 | 
						|
    "onUpdate:activeId"?: ((...args: any[]) => any) | undefined;
 | 
						|
    "onUpdate:mainActiveIndex"?: ((...args: any[]) => any) | undefined;
 | 
						|
}>, {
 | 
						|
    height: string | number;
 | 
						|
    max: string | number;
 | 
						|
    items: TreeSelectItem[];
 | 
						|
    selectedIcon: string;
 | 
						|
    mainActiveIndex: string | number;
 | 
						|
    activeId: Numeric | Numeric[];
 | 
						|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
 | 
						|
export default _default;
 |