feat: 封装下载hooks

This commit is contained in:
xlsea
2024-09-05 11:06:30 +08:00
parent 824974e904
commit 0c3ea2dc86
11 changed files with 222 additions and 19 deletions

View File

@ -9,3 +9,4 @@ export { useBoolean, useLoading, useCountDown, useContext, useSvgIconRender, use
export * from './use-signal';
export * from './use-table';
export type { LoadingApiInst } from './use-loading';

View File

@ -1,5 +1,12 @@
import type { Ref } from 'vue';
import useBoolean from './use-boolean';
export interface LoadingApiInst {
loading: Ref<boolean>;
startLoading: () => void;
endLoading: () => void;
}
/**
* Loading
*