UNPKG

892 BTypeScriptView Raw
1import { Emitter } from '@mantou/gem/lib/decorators';
2import { GemElement, TemplateResult } from '@mantou/gem/lib/element';
3import './use';
4declare type Status = 'positive' | 'notice' | 'negative';
5export declare type TreeItem = {
6 label: string;
7 value?: any;
8 icon?: string | Element | DocumentFragment;
9 context?: TemplateResult;
10 children?: TreeItem[];
11 status?: Status;
12 tags?: string[];
13};
14declare type State = {
15 expandItem: Set<any>;
16};
17/**
18 * @customElement dy-tree
19 * @fires itemclick
20 */
21export declare class DuoyunTreeElement extends GemElement<State> {
22 #private;
23 static item: string;
24 data?: TreeItem[];
25 /**value array */
26 highlights?: any[];
27 itemclick: Emitter;
28 state: State;
29 constructor();
30 willMount: () => void;
31 mounted: () => void;
32 render: () => TemplateResult;
33}
34export {};
35//# sourceMappingURL=tree.d.ts.map
\No newline at end of file