optimized

This commit is contained in:
2023-04-06 00:08:03 +08:00
parent adb74b7441
commit c27d44872b
11 changed files with 314 additions and 91 deletions

View File

@ -4,7 +4,7 @@ interface DropdownItem {
html?: HTMLElement
}
interface DropdownOptions {
export interface DropdownOptions {
textkey?: string;
valuekey?: string;
htmlkey?: string;
@ -32,7 +32,7 @@ interface Dropdown {
get disabled(): boolean;
set disabled(flag: boolean);
get source(): Array<DropdownItem | any>;
set source(list: Array<DropdownItem | any>): void;
set source(list: Array<DropdownItem | any>);
readonly multiselect: boolean;
readonly selected: DropdownItem | any;
readonly selectedlist: Array<DropdownItem | any>;