update toggle

This commit is contained in:
Harvey Zack committed 2023-04-18 22:39:47 +08:00
1 parent 776a02a221
commit cd28cc795f
4 files changed
+7 -9

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ export default function setting(option) {
append($control, icons.setting);
proxy($control, 'click', () => {
art.setting.toggle = true;
art.setting.toggle();
art.setting.updateStyle();
});
+2 -4
View File
@@ -40,10 +40,8 @@ export default class Component {
this.art.emit(this.name, value);
}
set toggle(value) {
if (value) {
this.show = !this.show;
}
toggle() {
this.show = !this.show;
}
add(getOption) {