mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
update component.d.ts
This commit is contained in:
1 parent
cd28cc795f
commit
645e2e2ec3
5 files changed
+53
-41
No files matched your search
+11
-1
@@ -41,12 +41,22 @@ export type Component = {
|
||||
/**
|
||||
* Toggle the component parent
|
||||
*/
|
||||
set toggle(state: boolean);
|
||||
toggle(): void;
|
||||
|
||||
/**
|
||||
* Dynamic add a component
|
||||
*/
|
||||
add(option: ComponentOption): HTMLElement;
|
||||
|
||||
/**
|
||||
* Dynamic remove a component
|
||||
*/
|
||||
remove(): void;
|
||||
|
||||
/**
|
||||
* Dynamic update a component
|
||||
*/
|
||||
update(option: ComponentOption): HTMLElement;
|
||||
};
|
||||
|
||||
export type ComponentOption = {
|
||||
|
||||
Reference in new issue
Block a user