mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 17:46:17 -08:00
update ts
This commit is contained in:
1 parent
112256ddd7
commit
2189a41334
3 files changed
+37
-21
No files matched your search
Vendored
+12
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user