@finema/core 2.11.0 → 2.12.0
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.
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -180,9 +180,11 @@ const transformValue = (column, row) => {
|
|
|
180
180
|
};
|
|
181
181
|
const onPageChange = (newPage) => {
|
|
182
182
|
if (tableContainer.value) {
|
|
183
|
-
tableContainer.value.
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
const rect = tableContainer.value.getBoundingClientRect();
|
|
184
|
+
const scrollTop = window.pageYOffset + rect.top - 100;
|
|
185
|
+
window.scrollTo({
|
|
186
|
+
top: scrollTop,
|
|
187
|
+
behavior: "smooth"
|
|
186
188
|
});
|
|
187
189
|
}
|
|
188
190
|
emits("pageChange", newPage);
|