feat(Calendar): scroll to current month when show (#5526)

This commit is contained in:
neverland
2020-01-09 16:22:40 +08:00
committed by GitHub
parent ac3808cd47
commit c6489f4006
3 changed files with 49 additions and 1 deletions

View File

@@ -30,6 +30,11 @@ function mockHTMLElementOffset() {
});
}
function mockScrollIntoView() {
Element.prototype.scrollIntoView = function() {};
}
mockScrollIntoView();
mockHTMLElementOffset();
export function mockGetBoundingClientRect(