@vunk/plus 1.9.3 → 1.9.4
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.
|
@@ -488,18 +488,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
488
488
|
if (!wrapRef.value) {
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
scrollTo(
|
|
491
|
+
scrollTo({
|
|
492
492
|
top: wrapRef.value.scrollHeight,
|
|
493
|
-
behavior: "smooth"
|
|
493
|
+
behavior: "smooth",
|
|
494
|
+
...options
|
|
494
495
|
});
|
|
495
496
|
}
|
|
496
497
|
function scrollToTop(options) {
|
|
497
498
|
if (!wrapRef.value) {
|
|
498
499
|
return;
|
|
499
500
|
}
|
|
500
|
-
scrollTo(
|
|
501
|
+
scrollTo({
|
|
501
502
|
top: 0,
|
|
502
|
-
behavior: "smooth"
|
|
503
|
+
behavior: "smooth",
|
|
504
|
+
...options
|
|
503
505
|
});
|
|
504
506
|
}
|
|
505
507
|
__expose({
|