This commit is contained in:
潘晓云
2022-05-13 11:06:05 +08:00
parent a7ebbbd982
commit 131c3cf980

View File

@ -13,7 +13,7 @@ export class SearchDrawerService {
visible = false;
drawer: Subscription[] = [];
constructor() {}
constructor() { }
create(defaultValue: Record<string, any>, newSchema?: SFSchema, newUI?: SFUISchema) {
this.createEvent.next({ defaultValue, newSchema, newUI });
@ -22,5 +22,6 @@ export class SearchDrawerService {
unsubscribe() {
this.drawer.forEach(sub => sub.unsubscribe());
this.drawer = [];
}
}