mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
test: fix lint fail
This commit is contained in:
parent
2416d17b74
commit
4968052574
@ -1,3 +1,4 @@
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export function easeInOutCubic(t: number, b: number, c: number, d: number) {
|
||||
const cc = c - b;
|
||||
t /= d / 2;
|
||||
|
@ -29,8 +29,8 @@ export default function scrollTo(y: number, options: ScrollToOptions = {}) {
|
||||
}
|
||||
if (time < duration) {
|
||||
raf(frameFunc);
|
||||
} else {
|
||||
if (typeof callback === 'function') callback();
|
||||
} else if (typeof callback === 'function') {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
raf(frameFunc);
|
||||
|
Loading…
Reference in New Issue
Block a user