mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 19:51:20 -08:00
update toggle
This commit is contained in:
1 parent
776a02a221
commit
cd28cc795f
4 files changed
+7
-9
No files matched your search
@@ -2976,8 +2976,8 @@ class Component {
|
||||
else (0, _dom.removeClass)($player, className);
|
||||
this.art.emit(this.name, value);
|
||||
}
|
||||
set toggle(value) {
|
||||
if (value) this.show = !this.show;
|
||||
toggle() {
|
||||
this.show = !this.show;
|
||||
}
|
||||
add(getOption) {
|
||||
const option = typeof getOption === "function" ? getOption(this.art) : getOption;
|
||||
@@ -3450,7 +3450,7 @@ function setting(option) {
|
||||
const { proxy , icons , i18n } = art;
|
||||
(0, _utils.append)($control, icons.setting);
|
||||
proxy($control, "click", ()=>{
|
||||
art.setting.toggle = true;
|
||||
art.setting.toggle();
|
||||
art.setting.updateStyle();
|
||||
});
|
||||
art.on("setting", (value)=>{
|
||||
|
||||
Reference in new issue
Block a user