数据处理分类新增数组处理、时间处理、字符串处理

This commit is contained in:
fofolee
2025-01-11 01:14:13 +08:00
parent e7da2d3a26
commit 44b740de5c
18 changed files with 2116 additions and 108 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -259,7 +259,7 @@ export const networkCommands = {
},
{
label: "返回所有地址",
component: "q-checkbox",
component: "CheckButton",
defaultValue: false,
width: 2.5,
},

View File

@@ -270,7 +270,7 @@ export const systemCommands = {
},
{
label: "包含内部接口",
component: "q-checkbox",
component: "CheckButton",
defaultValue: false,
width: 12,
condition: "values[0] === 'networkInterfaces'",

View File

@@ -115,6 +115,7 @@ export const uiCommands = {
isAsync: true,
outputVariable: "{id,text}",
saveOutput: true,
width: 12,
config: [
{
label: "按钮",
@@ -133,6 +134,7 @@ export const uiCommands = {
isAsync: true,
outputVariable: "[inputValue1]",
saveOutput: true,
width: 12,
config: [
{
label: "输入框",

View File

@@ -40,7 +40,7 @@ export const userdataCommands = {
},
{
label: "不同步",
component: "q-checkbox",
component: "CheckButton",
defaultValue: true,
width: 2,
},

View File

@@ -113,32 +113,32 @@ export const utoolsCommands = {
forward: {
label: "向前查找",
icon: "arrow_right",
width: 2,
component: "q-checkbox",
width: 2.4,
component: "CheckButton",
},
findNext: {
label: "查找下一个",
icon: "arrow_down",
width: 2,
component: "q-checkbox",
width: 2.4,
component: "CheckButton",
},
matchCase: {
label: "区分大小写",
icon: "arrow_up",
width: 2,
component: "q-checkbox",
width: 2.4,
component: "CheckButton",
},
wordStart: {
label: "单词开头",
icon: "arrow_right",
width: 2,
component: "q-checkbox",
width: 2.4,
component: "CheckButton",
},
medialCapitalAsWordStart: {
label: "中缀大写作为单词开头",
label: "中缀大写开头",
icon: "arrow_right",
width: 4,
component: "q-checkbox",
width: 2.4,
component: "CheckButton",
},
},
defaultValue: {

View File

@@ -16,7 +16,11 @@ export const availableCommands = categories.reduce((commands, category) => {
}, []);
export const findCommandByValue = (value) => {
return availableCommands.find((cmd) => cmd.value === value);
return availableCommands.find(
(cmd) =>
cmd.value === value ||
cmd.subCommands?.find((subCmd) => subCmd.value === value)
);
};
export const commandCategories = categories;