@alauda/ui 6.4.2-beta.2 → 6.4.2-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8536,6 +8536,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
8536
8536
  class TablePlaceholderDefDirective {
8537
8537
  constructor(templateRef) {
8538
8538
  this.templateRef = templateRef;
8539
+ this.def$$ = new BehaviorSubject(true);
8540
+ this.def$ = this.def$$.asObservable().pipe(distinctUntilChanged());
8541
+ }
8542
+ set auiTablePlaceholderDef(show) {
8543
+ this.def$$.next(show);
8539
8544
  }
8540
8545
  }
8541
8546
  TablePlaceholderDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: TablePlaceholderDefDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
@@ -8576,13 +8581,10 @@ class TableComponent extends CdkTable {
8576
8581
  this._createPlaceholder();
8577
8582
  }
8578
8583
  _createPlaceholder() {
8579
- const footerRow = this._placeholderDef;
8580
- if (!this._placeholderDef ||
8581
- this._placeholderDef.auiTablePlaceholderDef === false) {
8582
- return;
8583
- }
8584
8584
  const container = this._placeholderOutlet.viewContainer;
8585
- container.createEmbeddedView(footerRow.templateRef);
8585
+ if (container && this._placeholderDef) {
8586
+ this._placeholderDef.def$.subscribe(def => def && container.createEmbeddedView(this._placeholderDef.templateRef));
8587
+ }
8586
8588
  }
8587
8589
  _clearPlaceholder() {
8588
8590
  this._placeholderOutlet.viewContainer.clear();