添加 closeWaitBtn

This commit is contained in:
fofolee
2022-04-22 23:16:10 +08:00
parent 81147b02eb
commit 0f9f003c0a
4 changed files with 34 additions and 12 deletions

View File

@@ -157,8 +157,8 @@ interface quickcommandApi {
* @param message 提示的内容
* @param title 提示的标题
*/
showConfirmBox(message?: string, title?: string): Promise<boolean>;
showConfirmBox(message?: string, title?: string): Promise<boolean>;
/**
* 显示等待用户操作的按钮,用户点击后执行相关操作
*
@@ -172,6 +172,11 @@ interface quickcommandApi {
*/
showWaitButton(callback, label?: string): void;
/**
* 关掉现有等待操作按钮
*/
closeWaitBtn(): void;
/**
* 同步等待,会阻塞进程
* @param ms 等待的毫秒数
@@ -270,14 +275,18 @@ interface quickcommandApi {
/**
* 将 signal 发送给 pid 标识的进程 , 默认为关闭进程
*
*
* 不同于process.kill会将该进程启用的所有子进程也杀死
*
*
* @param pid 进程 ID
* @param signal 进程信号默认为SIGTERM
* @param callback 失败时的回调
*/
kill(pid: number, signal?: string | number, callback?: (error?: Error) => void): void;
kill(
pid: number,
signal?: string | number,
callback?: (error?: Error) => void
): void;
/**
* windows 下运行 VBS 脚本并返回运行结果