update component

This commit is contained in:
Harvey Zack committed 2023-04-19 02:36:13 +08:00
1 parent e23e828b3d
commit 3c8cb0e2e2
3 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -3065,8 +3065,9 @@ class Component {
this.art.events.remove(destroyEvent);
destroyEvent();
}
(0, _dom.remove)(item.$ref);
this.cache.delete(name);
delete this[name];
(0, _dom.remove)(item.$ref);
}
update(option) {
const item = this.cache.get(option.name);