1 | import { Emitter } from '@mantou/gem/lib/decorators';
|
2 | import { GemElement, TemplateResult } from '@mantou/gem/lib/element';
|
3 | import './use';
|
4 | declare type Status = 'positive' | 'notice' | 'negative';
|
5 | export 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 | };
|
14 | declare type State = {
|
15 | expandItem: Set<any>;
|
16 | };
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare class DuoyunTreeElement extends GemElement<State> {
|
22 | #private;
|
23 | static item: string;
|
24 | data?: TreeItem[];
|
25 |
|
26 | highlights?: any[];
|
27 | itemclick: Emitter;
|
28 | state: State;
|
29 | constructor();
|
30 | willMount: () => void;
|
31 | mounted: () => void;
|
32 | render: () => TemplateResult;
|
33 | }
|
34 | export {};
|
35 |
|
\ | No newline at end of file |