编排新增选择列表组件

This commit is contained in:
fofolee
2025-01-08 00:54:51 +08:00
parent e23d3e5e11
commit f742e6f121
8 changed files with 398 additions and 19 deletions

View File

@@ -0,0 +1,79 @@
export const uiCommands = {
label: "UI操作",
icon: "web",
defaultOpened: false,
commands: [
{
value: "quickcommand.showButtonBox",
label: "按钮组",
isAsync: true,
outputVariable: "{id,text}",
saveOutput: true,
config: [
{
label: "按钮组",
type: "arrayEditor",
defaultValue: [
{
value: "是",
isString: true,
__varInputVal__: true,
},
{
value: "否",
isString: true,
__varInputVal__: true,
},
],
},
],
},
{
value: "quickcommand.showInputBox",
label: "输入框",
isAsync: true,
outputVariable: "[inputValue1]",
saveOutput: true,
config: [
{
label: "输入框",
type: "arrayEditor",
width: 12,
options: {
keys: [
{
label: "标签",
value: "label",
},
{
label: "默认值",
value: "value",
},
],
},
defaultValue: [
{
label: {
value: "请输入",
isString: true,
__varInputVal__: true,
},
value: {
value: "",
isString: true,
__varInputVal__: true,
},
},
],
},
],
},
{
value: "quickcommand.showSelectList",
label: "选择列表",
desc: "显示一个支持搜索的选项列表,可以动态更新选项",
component: "SelectListEditor",
isAsync: true,
},
],
};