界面自动化添加启用禁用元素功能

This commit is contained in:
fofolee
2025-01-18 09:02:00 +08:00
parent cf4d38c3b1
commit 7a7cb8dd54
3 changed files with 64 additions and 34 deletions

View File

@@ -491,6 +491,28 @@ export const windowsCommands = {
},
],
},
{
value: "quickcomposer.windows.automation.enable",
label: "启用/禁用元素",
icon: "toggle_on",
config: [
{
component: "OptionEditor",
options: {
enable: {
component: "ButtonGroup",
options: [
{ label: "启用", value: true },
{ label: "禁用", value: false },
],
},
},
defaultValue: {
enable: true,
},
},
],
},
{
value: "quickcomposer.windows.automation.expand",
label: "展开/折叠",
@@ -559,13 +581,6 @@ export const windowsCommands = {
{
component: "OptionEditor",
options: {
condition: {
label: "条件",
component: "VariableInput",
icon: "filter_alt",
width: 8,
placeholder: "name=xx;type=Button",
},
timeout: {
label: "超时(秒)",
component: "NumberInput",