feat: 1.插件加载时会有全局提示。2.重命名miaoMessageProvider为miaoAlertTipProvider
This commit is contained in:
1 parent
3a18bb3cbd
commit
ec4ed10afd
16 files changed
+481
-465
No files matched your search
+9
-1
@@ -8,12 +8,20 @@ export type miaoFetchConfig = {
|
||||
|
||||
export type getOption = {} & miaoFetchConfig;
|
||||
|
||||
export type getFileOption = {
|
||||
/**
|
||||
* 下载进度回调函数
|
||||
* @param {any} percent 进度百分比,float类型, 0-1
|
||||
*/
|
||||
onProcess?: (percent: number) => void;
|
||||
} & miaoFetchConfig;
|
||||
|
||||
export type getResponse = (file | directory)[];
|
||||
|
||||
export type uploadOption = {
|
||||
/**
|
||||
* 上传进度回调函数
|
||||
* @param {any} percent 进度百分比,float类型
|
||||
* @param {any} percent 进度百分比,float类型, 0-1
|
||||
*/
|
||||
onProcess?: (percent: number) => void;
|
||||
/**
|
||||
|
||||
@@ -20,3 +20,11 @@ export type directory = {
|
||||
stats: stats;
|
||||
parent?: directory;
|
||||
};
|
||||
|
||||
export type alertTipType = ((content: string, options?: AlertTipMessageOptions) => (newContent: string, newOptions?: AlertTipMessageOptions) => void)
|
||||
|
||||
export interface AlertTipMessageOptions {
|
||||
type?: 'info' | 'success' | 'error'
|
||||
timeout?: number
|
||||
id?: number
|
||||
}
|
||||
Reference in new issue
Block a user