mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-20 10:55:43 +08:00
新增quickcommand.showLoadingBar,支持显示加载条
This commit is contained in:
@@ -11,7 +11,6 @@ export const aiCommands = {
|
||||
desc: "获取API支持的模型列表",
|
||||
asyncMode: "await",
|
||||
icon: "list",
|
||||
showLoading: true,
|
||||
config: [
|
||||
{
|
||||
label: "API配置",
|
||||
@@ -74,7 +73,6 @@ export const aiCommands = {
|
||||
desc: "与AI助手进行对话",
|
||||
asyncMode: "await",
|
||||
icon: "chat",
|
||||
showLoading: true,
|
||||
config: [
|
||||
{
|
||||
label: "API配置",
|
||||
|
||||
@@ -440,26 +440,21 @@ export const uiCommands = {
|
||||
{
|
||||
component: "OptionEditor",
|
||||
options: {
|
||||
title: {
|
||||
label: "标题",
|
||||
component: "VariableInput",
|
||||
width: 6,
|
||||
},
|
||||
text: {
|
||||
label: "文本",
|
||||
component: "VariableInput",
|
||||
width: 6,
|
||||
width: 4,
|
||||
},
|
||||
value: {
|
||||
label: "初始进度值",
|
||||
component: "VariableInput",
|
||||
disableToggleType: true,
|
||||
width: 3,
|
||||
width: 4,
|
||||
},
|
||||
position: {
|
||||
label: "位置",
|
||||
component: "QSelect",
|
||||
width: 3,
|
||||
width: 4,
|
||||
options: [
|
||||
{ label: "屏幕左上角", value: "top-left" },
|
||||
{ label: "屏幕右上角", value: "top-right" },
|
||||
@@ -471,20 +466,20 @@ export const uiCommands = {
|
||||
label: "关闭按钮回调函数",
|
||||
component: "VariableInput",
|
||||
disableToggleType: true,
|
||||
width: 6,
|
||||
width: 4,
|
||||
},
|
||||
onPause: {
|
||||
label: "暂停按钮回调函数",
|
||||
component: "VariableInput",
|
||||
disableToggleType: true,
|
||||
width: 6,
|
||||
width: 4,
|
||||
placeholder: "必须和恢复回调一起配置",
|
||||
},
|
||||
onResume: {
|
||||
label: "恢复按钮回调函数",
|
||||
component: "VariableInput",
|
||||
disableToggleType: true,
|
||||
width: 6,
|
||||
width: 4,
|
||||
placeholder: "必须和暂停回调一起配置",
|
||||
},
|
||||
},
|
||||
@@ -542,6 +537,65 @@ export const uiCommands = {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "quickcommand.showLoadingBar",
|
||||
label: "显示载入界面",
|
||||
neverHasOutput: true,
|
||||
asyncMode: "await",
|
||||
config: [
|
||||
{
|
||||
component: "OptionEditor",
|
||||
options: {
|
||||
text: {
|
||||
label: "文本",
|
||||
component: "VariableInput",
|
||||
width: 4,
|
||||
},
|
||||
position: {
|
||||
label: "位置",
|
||||
component: "QSelect",
|
||||
width: 4,
|
||||
options: [
|
||||
{ label: "屏幕左上角", value: "top-left" },
|
||||
{ label: "屏幕右上角", value: "top-right" },
|
||||
{ label: "屏幕左下角", value: "bottom-left" },
|
||||
{ label: "屏幕右下角", value: "bottom-right" },
|
||||
],
|
||||
},
|
||||
onClose: {
|
||||
label: "关闭按钮回调函数",
|
||||
component: "VariableInput",
|
||||
disableToggleType: true,
|
||||
width: 4,
|
||||
},
|
||||
},
|
||||
defaultValue: {
|
||||
text: newVarInputVal("str", "加载中..."),
|
||||
position: "bottom-right",
|
||||
onClose: newVarInputVal("var"),
|
||||
},
|
||||
},
|
||||
],
|
||||
outputs: {
|
||||
label: "载入条对象",
|
||||
suggestName: "loadingBar",
|
||||
},
|
||||
},
|
||||
{
|
||||
value: "quickcommand.closeLoadingBar",
|
||||
label: "关闭载入界面",
|
||||
neverHasOutput: true,
|
||||
config: [
|
||||
{
|
||||
label: "载入条对象",
|
||||
component: "VariableInput",
|
||||
placeholder: "不传则关闭最近的载入条",
|
||||
width: 12,
|
||||
defaultValue: newVarInputVal("var"),
|
||||
disableToggleType: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "utools.showOpenDialog",
|
||||
label: "文件选择框",
|
||||
|
||||
@@ -933,7 +933,6 @@ export const windowsCommands = {
|
||||
label: "剪贴板/文件监控",
|
||||
icon: "monitor_heart",
|
||||
asyncMode: "await",
|
||||
showLoading: true,
|
||||
subCommands: [
|
||||
{
|
||||
value: "quickcomposer.windows.monitor.watchClipboard",
|
||||
|
||||
Reference in New Issue
Block a user