chore: slider - 删除多余代码
This commit is contained in:
parent
89ce6c18e9
commit
42d8b70033
@ -1,11 +1,3 @@
|
|||||||
export function sleep(wait: number) {
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
setTimeout(() => {
|
|
||||||
resolve(1);
|
|
||||||
}, wait);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
export function throttle(func: Function) {
|
export function throttle(func: Function) {
|
||||||
let timer: any = null;
|
let timer: any = null;
|
||||||
return function (args: any) {
|
return function (args: any) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user