update pos consumer
This commit is contained in:
@@ -5,16 +5,21 @@ import { Component, EventEmitter, Input, Output, signal } from '@angular/core';
|
||||
template: '',
|
||||
})
|
||||
export abstract class AbstractDialog {
|
||||
@Input()
|
||||
@Input({ required: true })
|
||||
set visible(v: boolean) {
|
||||
this.visibleSignal.set(!!v);
|
||||
this.visibleChange.emit(!!v);
|
||||
if (!v) {
|
||||
this.onClose.emit();
|
||||
}
|
||||
}
|
||||
get visible() {
|
||||
return this.visibleSignal();
|
||||
}
|
||||
private visibleSignal = signal(false);
|
||||
|
||||
@Output() onClose = new EventEmitter<void>();
|
||||
|
||||
close() {
|
||||
this.visible = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user