mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 17:16:16 -08:00
V5 (#509)
* update artplayer.d.ts * update variables.less * update artplayerPluginControl * build:all * update docs * update docs * update docs * Update layers.md * update index.js * update docs * update docs
This commit is contained in:
1 parent
c8c08137c4
commit
ee49a0435e
202 files changed
+5293
-3466
No files matched your search
@@ -55,21 +55,6 @@ var art = new Artplayer({
|
||||
state: '<img width="150" heigth="150" src="/assets/img/state.svg">',
|
||||
indicator: '<img width="16" heigth="16" src="/assets/img/indicator.svg">',
|
||||
},
|
||||
settings: [
|
||||
{
|
||||
html: 'Control UI',
|
||||
icon: '<img width="22" heigth="22" src="/assets/img/state.svg">',
|
||||
tooltip: 'OFF',
|
||||
switch: true,
|
||||
onSwitch: async function (item) {
|
||||
item.tooltip = item.switch ? 'OFF' : 'ON';
|
||||
art.plugins.artplayerPluginControl.enable = !item.switch;
|
||||
await Artplayer.utils.sleep(300);
|
||||
art.setting.updateStyle();
|
||||
return !item.switch;
|
||||
},
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
artplayerPluginControl()
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user