@sd-angular/core 19.0.0-beta.19 → 19.0.0-beta.20
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.
|
@@ -1905,7 +1905,14 @@ class StickyShadowDirective {
|
|
|
1905
1905
|
* add class này đồng nhất lên cả th lẫn td.
|
|
1906
1906
|
*/
|
|
1907
1907
|
#setShadow(container, colClass, shadowClass, add) {
|
|
1908
|
-
container.querySelectorAll(`th.${colClass}, td.${colClass}`).forEach(el =>
|
|
1908
|
+
container.querySelectorAll(`th.${colClass}, td.${colClass}`).forEach(el => {
|
|
1909
|
+
el.classList.toggle(shadowClass, add);
|
|
1910
|
+
// Cần position relative để ::after absolute hoạt động
|
|
1911
|
+
if (add) {
|
|
1912
|
+
el.style.position = 'sticky'; // Các cell sticky đã có sẵn, chỉ đảm bảo
|
|
1913
|
+
el.style.overflow = 'visible';
|
|
1914
|
+
}
|
|
1915
|
+
});
|
|
1909
1916
|
}
|
|
1910
1917
|
/**
|
|
1911
1918
|
* Tính toán và cập nhật shadow dựa trên vị trí scroll hiện tại.
|