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

+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) {