feat: leave ui

This commit is contained in:
MingLiang Wang
2022-12-23 12:07:53 +08:00
parent 74a5af39cf
commit ba9d94e3f5
7 changed files with 130 additions and 3 deletions
+2
View File
@@ -1,3 +1,5 @@
export { isDev } from './env';
export * from './useragent';
export * from './tools';
+8
View File
@@ -0,0 +1,8 @@
export function debounce(fn: Function, timeout: number) {
let timeoutId: any;
return function (this: any) {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => fn.apply(this, arguments), timeout);
};
}