feat: 封装下载hooks
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user