sync working code, and import type-doc

This commit is contained in:
2023-07-17 17:24:49 +08:00
parent 7ab7a7094a
commit 3e9ee59178
43 changed files with 1024 additions and 1553 deletions

15
lib/ui/dropdown.d.ts vendored
View File

@ -23,7 +23,11 @@ export interface DropdownOptions {
parent?: HTMLElement;
}
interface Dropdown {
export class Dropdown {
static resolve(dom?: HTMLElement): HTMLElement;
constructor(options?: DropdownOptions);
sourceFilter: () => Array<DropdownItem | any>;
onselected: (item: DropdownItem | any) => void;
onselectedlist: (list: Array<DropdownItem | any>) => void;
@ -40,12 +44,3 @@ interface Dropdown {
select(selected: string, silence?: boolean): void;
selectlist(selectedlist: Array<string>, silence?: boolean): void;
}
declare var Dropdown: {
prototype: Dropdown;
new(options?: DropdownOptions): Dropdown;
resolve(dom?: HTMLElement): HTMLElement;
}
export default Dropdown;