mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-17 17:24:27 +08:00
数据处理分类新增数组处理、时间处理、字符串处理
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -259,7 +259,7 @@ export const networkCommands = {
|
||||
},
|
||||
{
|
||||
label: "返回所有地址",
|
||||
component: "q-checkbox",
|
||||
component: "CheckButton",
|
||||
defaultValue: false,
|
||||
width: 2.5,
|
||||
},
|
||||
|
||||
@@ -270,7 +270,7 @@ export const systemCommands = {
|
||||
},
|
||||
{
|
||||
label: "包含内部接口",
|
||||
component: "q-checkbox",
|
||||
component: "CheckButton",
|
||||
defaultValue: false,
|
||||
width: 12,
|
||||
condition: "values[0] === 'networkInterfaces'",
|
||||
|
||||
@@ -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: "输入框",
|
||||
|
||||
@@ -40,7 +40,7 @@ export const userdataCommands = {
|
||||
},
|
||||
{
|
||||
label: "不同步",
|
||||
component: "q-checkbox",
|
||||
component: "CheckButton",
|
||||
defaultValue: true,
|
||||
width: 2,
|
||||
},
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user