update ts

This commit is contained in:
Harvey committed 2022-05-16 10:28:17 +08:00
1 parent 112256ddd7
commit 2189a41334
3 files changed
+37 -21

No files matched your search

+12 -4
View File
@@ -10,7 +10,7 @@ type Selector = {
/**
* Html string of selector
*/
html: string;
html: string | HTMLElement;
};
type ComponentOption = {
@@ -89,7 +89,7 @@ type SettingOption = {
/**
* The tooltip of setting
*/
tooltip?: string;
tooltip?: string | HTMLElement;
/**
* Whether the default is selected
@@ -119,12 +119,20 @@ type SettingOption = {
/**
* Custom range item
*/
range?: number[];
range?: number[] | number;
/**
* When range item change
*/
onRange?(item: SettingOption, element: HTMLElement, event: Event): void;
$icon?: HTMLElement;
$html?: HTMLElement;
$tooltip?: HTMLElement;
$switch?: boolean;
$range?: HTMLElement;
$parentItem?: SettingOption;
$parentList?: SettingOption[];
};
type Component = {
@@ -411,7 +419,7 @@ type Option = {
/**
* Html string of quality
*/
html: string;
html: string | HTMLElement;
/**
* Video quality url