You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
543 lines
14 KiB
543 lines
14 KiB
{
|
|
"default": [
|
|
{
|
|
"position": {
|
|
"x": 460,
|
|
"y": 50
|
|
},
|
|
"size": {
|
|
"width": 80,
|
|
"height": 40
|
|
},
|
|
"shape": "imove-behavior",
|
|
"data": {
|
|
"label": "处理",
|
|
"configSchema": "{\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"textarea_FyaArd\": {\n \"title\": \"Textarea\",\n \"type\": \"string\",\n \"format\": \"textarea\",\n \"description\": \"文本编辑框\"\n },\n \"select_jrGW8n\": {\n \"title\": \"Select\",\n \"type\": \"string\",\n \"enum\": [\n \"a\",\n \"b\",\n \"c\"\n ],\n \"enumNames\": [\n \"早\",\n \"中\",\n \"晚\"\n ],\n \"description\": \"下拉单选\"\n }\n },\n \"ui:displayType\": \"row\",\n \"ui:showDescIcon\": true\n },\n \"displayType\": \"row\",\n \"showDescIcon\": true\n}",
|
|
"configData": {},
|
|
"dependencies": "{\n \n}",
|
|
"code": "export default async function(ctx) {\n console.log('1212')\n}"
|
|
},
|
|
"ports": {
|
|
"groups": {
|
|
"top": {
|
|
"position": "top",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"position": "right",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"bottom": {
|
|
"position": "bottom",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"left": {
|
|
"position": "left",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"items": [
|
|
{
|
|
"id": "top",
|
|
"group": "top"
|
|
},
|
|
{
|
|
"id": "right",
|
|
"group": "right"
|
|
},
|
|
{
|
|
"id": "bottom",
|
|
"group": "bottom"
|
|
},
|
|
{
|
|
"id": "left",
|
|
"group": "left"
|
|
}
|
|
]
|
|
},
|
|
"id": "81e87610-c749-4667-8382-00c62be30e2b",
|
|
"zIndex": 1
|
|
},
|
|
{
|
|
"position": {
|
|
"x": 56,
|
|
"y": 30
|
|
},
|
|
"size": {
|
|
"width": 80,
|
|
"height": 80
|
|
},
|
|
"shape": "imove-start",
|
|
"data": {
|
|
"label": "开始",
|
|
"configSchema": "{\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"input_1aWdPV\": {\n \"title\": \"Input\",\n \"type\": \"string\",\n \"description\": \"输入框\"\n },\n \"dateRangeSelect_mPNhq_\": {\n \"title\": \"DateRange\",\n \"type\": \"range\",\n \"format\": \"date\",\n \"description\": \"日期范围选择\"\n }\n },\n \"ui:displayType\": \"row\",\n \"ui:showDescIcon\": true\n },\n \"displayType\": \"row\",\n \"showDescIcon\": true\n}",
|
|
"configData": {},
|
|
"trigger": "start",
|
|
"dependencies": "{\n \n}",
|
|
"code": "export default async function(ctx) {\n \n}"
|
|
},
|
|
"ports": {
|
|
"groups": {
|
|
"top": {
|
|
"position": "top",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"position": "right",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"bottom": {
|
|
"position": "bottom",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"left": {
|
|
"position": "left",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"items": [
|
|
{
|
|
"id": "top",
|
|
"group": "top"
|
|
},
|
|
{
|
|
"id": "right",
|
|
"group": "right"
|
|
},
|
|
{
|
|
"id": "bottom",
|
|
"group": "bottom"
|
|
},
|
|
{
|
|
"id": "left",
|
|
"group": "left"
|
|
}
|
|
]
|
|
},
|
|
"id": "de868d18-9ec0-4dac-abbe-5cb9e3c20e2f",
|
|
"zIndex": 2
|
|
},
|
|
{
|
|
"position": {
|
|
"x": 246,
|
|
"y": 50
|
|
},
|
|
"size": {
|
|
"width": 80,
|
|
"height": 40
|
|
},
|
|
"shape": "imove-branch",
|
|
"data": {
|
|
"label": "判断",
|
|
"configSchema": "{\"schema\":{\"type\":\"object\",\"properties\":{\"input_MudoMs\":{\"title\":\"Input\",\"type\":\"string\",\"description\":\"输入框\"}},\"ui:displayType\":\"row\",\"ui:showDescIcon\":true},\"displayType\":\"row\",\"showDescIcon\":true}",
|
|
"configData": {},
|
|
"dependencies": "{\n \n}",
|
|
"ports": {
|
|
"right": {
|
|
"condition": "true"
|
|
},
|
|
"bottom": {
|
|
"condition": "false"
|
|
}
|
|
},
|
|
"code": "export default async function(ctx) {\n return true;\n}"
|
|
},
|
|
"ports": {
|
|
"groups": {
|
|
"top": {
|
|
"position": "top",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"zIndex": 999999999,
|
|
"position": "right",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
},
|
|
"label": {
|
|
"position": "right"
|
|
}
|
|
},
|
|
"bottom": {
|
|
"zIndex": 999999999,
|
|
"position": "bottom",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
},
|
|
"label": {
|
|
"position": "bottom"
|
|
}
|
|
},
|
|
"left": {
|
|
"position": "left",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"items": [
|
|
{
|
|
"id": "top",
|
|
"group": "top"
|
|
},
|
|
{
|
|
"id": "right",
|
|
"group": "right",
|
|
"attrs": {
|
|
"text": {
|
|
"text": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "bottom",
|
|
"group": "bottom",
|
|
"attrs": {
|
|
"text": {
|
|
"text": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "left",
|
|
"group": "left"
|
|
}
|
|
]
|
|
},
|
|
"id": "a6da6684-96c8-4595-bec6-a94122b61e30",
|
|
"zIndex": 3
|
|
},
|
|
{
|
|
"shape": "edge",
|
|
"id": "cbcbd0ea-4a2a-4d2a-8135-7b4b7d7ec50d",
|
|
"source": {
|
|
"cell": "de868d18-9ec0-4dac-abbe-5cb9e3c20e2f",
|
|
"port": "right"
|
|
},
|
|
"target": {
|
|
"cell": "a6da6684-96c8-4595-bec6-a94122b61e30",
|
|
"port": "left"
|
|
},
|
|
"zIndex": 4
|
|
},
|
|
{
|
|
"shape": "edge",
|
|
"id": "ea10b718-1c66-4a3d-b29c-b0b20e6bba11",
|
|
"source": {
|
|
"cell": "a6da6684-96c8-4595-bec6-a94122b61e30",
|
|
"port": "right"
|
|
},
|
|
"target": {
|
|
"cell": "81e87610-c749-4667-8382-00c62be30e2b",
|
|
"port": "left"
|
|
},
|
|
"zIndex": 5,
|
|
"labels": [
|
|
{
|
|
"attrs": {
|
|
"label": {
|
|
"text": "是"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"position": {
|
|
"x": 246,
|
|
"y": 270
|
|
},
|
|
"size": {
|
|
"width": 80,
|
|
"height": 40
|
|
},
|
|
"shape": "imove-behavior",
|
|
"data": {
|
|
"label": "处理",
|
|
"configSchema": "{\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"textarea_rdO5RK\": {\n \"title\": \"Textarea\",\n \"type\": \"string\",\n \"format\": \"textarea\",\n \"description\": \"文本编辑框\"\n }\n },\n \"ui:displayType\": \"row\",\n \"ui:showDescIcon\": true\n },\n \"displayType\": \"row\",\n \"showDescIcon\": true\n}",
|
|
"configData": {},
|
|
"dependencies": "{\n \n}",
|
|
"code": "export default async function(ctx) {\n console.log('test')\n}"
|
|
},
|
|
"ports": {
|
|
"groups": {
|
|
"top": {
|
|
"position": "top",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"position": "right",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"bottom": {
|
|
"position": "bottom",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"left": {
|
|
"position": "left",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"items": [
|
|
{
|
|
"id": "top",
|
|
"group": "top"
|
|
},
|
|
{
|
|
"id": "right",
|
|
"group": "right"
|
|
},
|
|
{
|
|
"id": "bottom",
|
|
"group": "bottom"
|
|
},
|
|
{
|
|
"id": "left",
|
|
"group": "left"
|
|
}
|
|
]
|
|
},
|
|
"id": "c538d496-eeaa-4e95-9752-2a5d0c168e13",
|
|
"zIndex": 6
|
|
},
|
|
{
|
|
"shape": "edge",
|
|
"id": "4ffa7a28-a339-4686-81d8-20be9d62de14",
|
|
"source": {
|
|
"cell": "a6da6684-96c8-4595-bec6-a94122b61e30",
|
|
"port": "bottom"
|
|
},
|
|
"target": {
|
|
"cell": "c538d496-eeaa-4e95-9752-2a5d0c168e13",
|
|
"port": "top"
|
|
},
|
|
"zIndex": 7,
|
|
"labels": [
|
|
{
|
|
"attrs": {
|
|
"label": {
|
|
"text": "否"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"position": {
|
|
"x": 56,
|
|
"y": 380
|
|
},
|
|
"size": {
|
|
"width": 100,
|
|
"height": 40
|
|
},
|
|
"attrs": {
|
|
"label": {
|
|
"text": "在线运行测试"
|
|
}
|
|
},
|
|
"shape": "imove-behavior",
|
|
"data": {
|
|
"label": "在线运行测试",
|
|
"configSchema": "{\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"input_CCw1sQ\": {\n \"title\": \"Input\",\n \"type\": \"string\",\n \"description\": \"输入框\"\n },\n \"allBoolean_fREQq-\": {\n \"title\": \"Switch\",\n \"type\": \"boolean\",\n \"ui:widget\": \"switch\",\n \"description\": \"开关控制\"\n }\n },\n \"ui:displayType\": \"row\",\n \"ui:showDescIcon\": true\n },\n \"displayType\": \"row\",\n \"showDescIcon\": true\n}",
|
|
"configData": {},
|
|
"dependencies": "{\n \"lodash.get\": \"4.4.2\"\n}",
|
|
"code": "import fpget from 'lodash.get';\n\nexport default async function(ctx) {\n const obj = {a: {b: 'hello imove~'}};\n console.log(fpget(obj, 'a.b'));\n return ctx.getPipe();\n}"
|
|
},
|
|
"ports": {
|
|
"groups": {
|
|
"top": {
|
|
"position": "top",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"right": {
|
|
"position": "right",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"bottom": {
|
|
"position": "bottom",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
},
|
|
"left": {
|
|
"position": "left",
|
|
"attrs": {
|
|
"circle": {
|
|
"r": 3,
|
|
"magnet": true,
|
|
"stroke": "#666",
|
|
"strokeWidth": 1,
|
|
"fill": "#fff"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"items": [
|
|
{
|
|
"id": "top",
|
|
"group": "top"
|
|
},
|
|
{
|
|
"id": "right",
|
|
"group": "right"
|
|
},
|
|
{
|
|
"id": "bottom",
|
|
"group": "bottom"
|
|
},
|
|
{
|
|
"id": "left",
|
|
"group": "left"
|
|
}
|
|
]
|
|
},
|
|
"id": "1d174369-929b-4bd5-8841-f271399c4a4f",
|
|
"zIndex": 9
|
|
}
|
|
]
|
|
}
|