mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2026-02-27 17:44:05 +08:00
统一VarInput变量的管理
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { newVarInputVal } from "js/composer/varInputValManager";
|
||||
|
||||
export const dataCommands = {
|
||||
label: "数据处理",
|
||||
icon: "format_color_text",
|
||||
@@ -552,13 +554,7 @@ export const dataCommands = {
|
||||
type: "arrayEditor",
|
||||
icon: "memory",
|
||||
width: 12,
|
||||
defaultValue: [
|
||||
{
|
||||
value: "",
|
||||
isString: false,
|
||||
__varInputVal__: true,
|
||||
},
|
||||
],
|
||||
defaultValue: [newVarInputVal("var")],
|
||||
},
|
||||
{
|
||||
label: "总长度(可选)",
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { newVarInputVal } from "js/composer/varInputValManager";
|
||||
|
||||
export const uiCommands = {
|
||||
label: "UI操作",
|
||||
icon: "web",
|
||||
@@ -14,16 +16,8 @@ export const uiCommands = {
|
||||
label: "按钮组",
|
||||
type: "arrayEditor",
|
||||
defaultValue: [
|
||||
{
|
||||
value: "是",
|
||||
isString: true,
|
||||
__varInputVal__: true,
|
||||
},
|
||||
{
|
||||
value: "否",
|
||||
isString: true,
|
||||
__varInputVal__: true,
|
||||
},
|
||||
newVarInputVal("str", "是"),
|
||||
newVarInputVal("str", "否"),
|
||||
],
|
||||
},
|
||||
],
|
||||
@@ -53,16 +47,8 @@ export const uiCommands = {
|
||||
},
|
||||
defaultValue: [
|
||||
{
|
||||
label: {
|
||||
value: "请输入",
|
||||
isString: true,
|
||||
__varInputVal__: true,
|
||||
},
|
||||
value: {
|
||||
value: "",
|
||||
isString: true,
|
||||
__varInputVal__: true,
|
||||
},
|
||||
label: newVarInputVal("str", "请输入"),
|
||||
value: newVarInputVal("str"),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user