mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 12:41:20 -08:00
build all
This commit is contained in:
1 parent
bb21e129b8
commit
7210653334
26 files changed
+57
-27
No files matched your search
Vendored
+8
-6
@@ -133,8 +133,8 @@ declare class Artplayer extends Player {
|
||||
|
||||
readonly setting: {
|
||||
option: Setting[];
|
||||
add(setting: Setting): Artplayer['setting'];
|
||||
update(): Artplayer['setting'];
|
||||
add(setting: Setting): SettingOption;
|
||||
update(): SettingOption[];
|
||||
} & Component;
|
||||
|
||||
readonly plugins: {
|
||||
@@ -865,6 +865,8 @@ type Props<T> = {
|
||||
$parentList: Setting[];
|
||||
} & Omit<T, 'html' | 'icon' | 'tooltip'>;
|
||||
|
||||
export type SettingOption = Props<Setting>;
|
||||
|
||||
export type Setting = {
|
||||
/**
|
||||
* Html string or html element of setting name
|
||||
@@ -904,7 +906,7 @@ export type Setting = {
|
||||
/**
|
||||
* When selector item click
|
||||
*/
|
||||
onSelect?(this: Artplayer, item: Props<Setting>, element: HTMLDivElement, event: Event): void;
|
||||
onSelect?(this: Artplayer, item: SettingOption, element: HTMLDivElement, event: Event): void;
|
||||
|
||||
/**
|
||||
* Custom switch item
|
||||
@@ -914,7 +916,7 @@ export type Setting = {
|
||||
/**
|
||||
* When switch item click
|
||||
*/
|
||||
onSwitch?(this: Artplayer, item: Props<Setting>, element: HTMLDivElement, event: Event): void;
|
||||
onSwitch?(this: Artplayer, item: SettingOption, element: HTMLDivElement, event: Event): void;
|
||||
|
||||
/**
|
||||
* Custom range item
|
||||
@@ -924,12 +926,12 @@ export type Setting = {
|
||||
/**
|
||||
* When range item change
|
||||
*/
|
||||
onRange?(this: Artplayer, item: Props<Setting>, element: HTMLDivElement, event: Event): void;
|
||||
onRange?(this: Artplayer, item: SettingOption, element: HTMLDivElement, event: Event): void;
|
||||
|
||||
/**
|
||||
* When range item change in real time
|
||||
*/
|
||||
onChange?(this: Artplayer, item: Props<Setting>, element: HTMLDivElement, event: Event): void;
|
||||
onChange?(this: Artplayer, item: SettingOption, element: HTMLDivElement, event: Event): void;
|
||||
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user