@alauda/ui 6.5.9-beta.0 → 6.5.9-beta.1

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.
@@ -10956,12 +10956,6 @@ class TabHeaderComponent {
10956
10956
  this._destroyed.next();
10957
10957
  this._destroyed.complete();
10958
10958
  }
10959
- ngAfterViewInit() {
10960
- // 等ngAfterContentInit的_updatePagination执行后再滚动,因为Pagination会影响布局
10961
- requestAnimationFrame(() => {
10962
- this._scrollToLabel(this._selectedIndex);
10963
- });
10964
- }
10965
10959
  ngAfterContentChecked() {
10966
10960
  // If the number of tab labels have changed, check if scrolling should be enabled
10967
10961
  if (this._tabLabelCount !== this._labelWrappers.length) {
@@ -10999,6 +10993,9 @@ class TabHeaderComponent {
10999
10993
  const realign = () => {
11000
10994
  this._updatePagination();
11001
10995
  this._alignActiveIndicatorToSelectedTab();
10996
+ requestAnimationFrame(() => {
10997
+ this._scrollToLabel(this._selectedIndex);
10998
+ });
11002
10999
  };
11003
11000
  this._keyManager = new FocusKeyManager(this._labelWrappers)
11004
11001
  .withHorizontalOrientation('ltr')