1 | import { GemElement, TemplateResult } from '@mantou/gem/lib/element';
|
2 | import './use';
|
3 | import './input';
|
4 | export declare type Option = {
|
5 | label: string | TemplateResult;
|
6 | icon?: string | DocumentFragment | Element;
|
7 | tag?: string | TemplateResult;
|
8 | tagIcon?: string | DocumentFragment | Element;
|
9 | description?: string | TemplateResult;
|
10 | disabled?: boolean;
|
11 | danger?: boolean;
|
12 | highlight?: boolean;
|
13 | onClick?: (evt: MouseEvent) => void;
|
14 | onRemove?: (evt: MouseEvent) => void;
|
15 | onPointerEnter?: (evt: PointerEvent) => void;
|
16 | onPointerLeave?: (evt: PointerEvent) => void;
|
17 | onPointerDown?: (evt: PointerEvent) => void;
|
18 | onPointerUp?: (evt: PointerEvent) => void;
|
19 | };
|
20 | export declare type Adder = {
|
21 | text?: string;
|
22 | handle: (value: string) => any;
|
23 | };
|
24 | declare type State = {
|
25 | search: string;
|
26 | addValue: string;
|
27 | };
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare class DuoyunOptionsElement extends GemElement<State> {
|
33 | #private;
|
34 | searchable: boolean;
|
35 | options?: Option[];
|
36 | adder?: Adder;
|
37 | state: State;
|
38 | constructor();
|
39 | render: () => TemplateResult;
|
40 | }
|
41 | export {};
|
42 |
|
\ | No newline at end of file |