@flexem/fc-gui 3.0.0-alpha.135 → 3.0.0-alpha.136
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.
|
@@ -42934,6 +42934,8 @@ class scroll_alarm_element_ScrollAlarmElement extends conditional_dynamic_displa
|
|
|
42934
42934
|
}
|
|
42935
42935
|
return;
|
|
42936
42936
|
}
|
|
42937
|
+
// 保存当前的滚动位置
|
|
42938
|
+
const currentScrollPosition = this.currentLeft;
|
|
42937
42939
|
// 清空所有DOM元素
|
|
42938
42940
|
this.allAlarmsContainer.innerHTML = '';
|
|
42939
42941
|
// 获取语言设置
|
|
@@ -42996,8 +42998,8 @@ class scroll_alarm_element_ScrollAlarmElement extends conditional_dynamic_displa
|
|
|
42996
42998
|
this.totalWidth = newTotalWidth;
|
|
42997
42999
|
this.pageWidths = [newTotalWidth]; // 重置为单页
|
|
42998
43000
|
this.hasMoreData = result.totalCount > newItems.length;
|
|
42999
|
-
//
|
|
43000
|
-
this.currentLeft =
|
|
43001
|
+
// 保持滚动位置不变,继续滚动
|
|
43002
|
+
this.currentLeft = currentScrollPosition;
|
|
43001
43003
|
this.allAlarmsContainer.style.left = `${this.currentLeft}px`;
|
|
43002
43004
|
}
|
|
43003
43005
|
});
|