Skip to content

Commit 23bd2e1

Browse files
committed
build: bundle 3.4.8
1 parent 5cd78f7 commit 23bd2e1

6 files changed

+56
-16
lines changed

Diff for: dist/vue-router.common.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.7
2+
* vue-router v3.4.8
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -1882,7 +1882,17 @@ function scrollToPosition (shouldScroll, position) {
18821882
}
18831883

18841884
if (position) {
1885-
window.scrollTo(position.x, position.y);
1885+
// $flow-disable-line
1886+
if ('scrollBehavior' in document.documentElement.style) {
1887+
window.scrollTo({
1888+
left: position.x,
1889+
top: position.y,
1890+
// $flow-disable-line
1891+
behavior: shouldScroll.behavior
1892+
});
1893+
} else {
1894+
window.scrollTo(position.x, position.y);
1895+
}
18861896
}
18871897
}
18881898

@@ -3047,7 +3057,7 @@ function createHref (base, fullPath, mode) {
30473057
}
30483058

30493059
VueRouter.install = install;
3050-
VueRouter.version = '3.4.7';
3060+
VueRouter.version = '3.4.8';
30513061
VueRouter.isNavigationFailure = isNavigationFailure;
30523062
VueRouter.NavigationFailureType = NavigationFailureType;
30533063

Diff for: dist/vue-router.esm.browser.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.7
2+
* vue-router v3.4.8
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -1859,7 +1859,17 @@ function scrollToPosition (shouldScroll, position) {
18591859
}
18601860

18611861
if (position) {
1862-
window.scrollTo(position.x, position.y);
1862+
// $flow-disable-line
1863+
if ('scrollBehavior' in document.documentElement.style) {
1864+
window.scrollTo({
1865+
left: position.x,
1866+
top: position.y,
1867+
// $flow-disable-line
1868+
behavior: shouldScroll.behavior
1869+
});
1870+
} else {
1871+
window.scrollTo(position.x, position.y);
1872+
}
18631873
}
18641874
}
18651875

@@ -3013,7 +3023,7 @@ function createHref (base, fullPath, mode) {
30133023
}
30143024

30153025
VueRouter.install = install;
3016-
VueRouter.version = '3.4.7';
3026+
VueRouter.version = '3.4.8';
30173027
VueRouter.isNavigationFailure = isNavigationFailure;
30183028
VueRouter.NavigationFailureType = NavigationFailureType;
30193029

Diff for: dist/vue-router.esm.browser.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/vue-router.esm.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.7
2+
* vue-router v3.4.8
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -1880,7 +1880,17 @@ function scrollToPosition (shouldScroll, position) {
18801880
}
18811881

18821882
if (position) {
1883-
window.scrollTo(position.x, position.y);
1883+
// $flow-disable-line
1884+
if ('scrollBehavior' in document.documentElement.style) {
1885+
window.scrollTo({
1886+
left: position.x,
1887+
top: position.y,
1888+
// $flow-disable-line
1889+
behavior: shouldScroll.behavior
1890+
});
1891+
} else {
1892+
window.scrollTo(position.x, position.y);
1893+
}
18841894
}
18851895
}
18861896

@@ -3045,7 +3055,7 @@ function createHref (base, fullPath, mode) {
30453055
}
30463056

30473057
VueRouter.install = install;
3048-
VueRouter.version = '3.4.7';
3058+
VueRouter.version = '3.4.8';
30493059
VueRouter.isNavigationFailure = isNavigationFailure;
30503060
VueRouter.NavigationFailureType = NavigationFailureType;
30513061

Diff for: dist/vue-router.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.4.7
2+
* vue-router v3.4.8
33
* (c) 2020 Evan You
44
* @license MIT
55
*/
@@ -1886,7 +1886,17 @@
18861886
}
18871887

18881888
if (position) {
1889-
window.scrollTo(position.x, position.y);
1889+
// $flow-disable-line
1890+
if ('scrollBehavior' in document.documentElement.style) {
1891+
window.scrollTo({
1892+
left: position.x,
1893+
top: position.y,
1894+
// $flow-disable-line
1895+
behavior: shouldScroll.behavior
1896+
});
1897+
} else {
1898+
window.scrollTo(position.x, position.y);
1899+
}
18901900
}
18911901
}
18921902

@@ -3051,7 +3061,7 @@
30513061
}
30523062

30533063
VueRouter.install = install;
3054-
VueRouter.version = '3.4.7';
3064+
VueRouter.version = '3.4.8';
30553065
VueRouter.isNavigationFailure = isNavigationFailure;
30563066
VueRouter.NavigationFailureType = NavigationFailureType;
30573067

Diff for: dist/vue-router.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)