protected _isOpen = false;
@Input()
get isOpen(): boolean {
return this._isOpen;
}
set isOpen(value: boolean) {
if (value !== this.isOpen) {
if (value) {
this.accordion.cloSEOtherPanels(this);
}
this._isOpen = value;
Promise.resolve(null).then(() => {
this.isOpenChange.emit(value);
});
}
}
原文链接:https://www.f2er.com/angularjs/144755.html