| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- {
- "control":{
- "text": "控制",
- "color": "#e1a91a",
- "mortiseColor": "#cf9b17",
- "blocks": [
- {
- "name": "control.function",
- "contents": [
- "方法(函数)",
- {"type": "input", "default": "方法"}
- ],
- "class": "control.Function"
- },
- {
- "name": "control.if",
- "contents": [
- "如果",
- {"type": "mortise", "tenonTypes": []},
- "那么"
- ],
- "text": "<div style='float: left'>如果</div>{condition}<div style='float: left'>那么</div>",
- "class": "control.If"
- },
- {
- "name": "control.return",
- "contents":[
- "返回",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "control.Return"
- }
- // {
- // "name": "ifelse",
- // "text": "<div style='float: left'>如果</div>{condition}<div style='float: left'>否则</div>",
- // "class": "control.Ifelse"
- // },
- // {
- // "name": "while",
- // "text": "重复执行",
- // "class": "control.While"
- // },
- // {
- // "name": "each",
- // "text": "遍历",
- // "class": "control.Each"
- // },
- // {
- // "name": "return",
- // "text": "返回",
- // "class": "control.Return"
- // }
- ]
- },
- "variable": {
- "text": "变量",
- "color": "#4a6cd4",
- "mortiseColor": "#3a55a9",
- "blocks": [
- {
- "name": "variabler.var",
- "contents": [
- "定义一个",
- {"type": "select", "options": ["字符串|string", "数字|number", "数组|array", "对象|object", "布尔|boolean"], "default": "string"},
- "变量",
- {"type": "input", "default": "名称"}
- ],
- "class": "variabler.Var"
- },
- {
- "name": "variabler.set",
- "contents":[
- "给",
- {"type": "mortise", "tenonTypes": []},
- "赋值",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "variabler.Set"
- },
- {
- "name": "variabler.variable",
- "contents":[
- "变量",
- {"type": "input", "default": "名称"}
- ],
- "class": "variabler.Variabler"
- }
- ]
- },
- "form":{
- "text": "表单",
- "color": "#ee7d16",
- "blocks": [
- {
- "name": "get",
- "text": "<div style='float: left'>获得表单对象</div><div style='float: left; margin-left:10px'>{name}</div>",
- "class": "form.Get",
- "value": "data"
- },
- {
- "name": "getField",
- "text": "获取表单域",
- "class": "form.GetField"
- },
- {
- "name": "getDesktop",
- "text": "获取桌面对象",
- "class": "form.GetDesktop"
- },
- {
- "name": "getData",
- "text": "获取数据",
- "class": "form.GetData"
- },
- {
- "name": "save",
- "text": "保存",
- "class": "form.Save"
- },
- {
- "name": "close",
- "text": "关闭",
- "class": "form.Close"
- },
- {
- "name": "process",
- "text": "流转",
- "class": "form.Process"
- },
- {
- "name": "reset",
- "text": "重置处理人",
- "class": "form.Reset"
- },
- {
- "name": "retract",
- "text": "撤回",
- "class": "form.Retract"
- },
- {
- "name": "print",
- "text": "打印",
- "class": "form.Print"
- },
- {
- "name": "deleteWork",
- "text": "删除工作",
- "class": "form.DeleteWork"
- },
- {
- "name": "notice",
- "text": "提示信息",
- "class": "form.Notice"
- }
- ]
- },
- "operator":{
- "text": "运算符",
- "color": "#5cb712",
- "blocks": [
- {
- "name": "operator.add",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "+",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.Add"
- },
- {
- "name": "operator.sub",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "-",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.Sub"
- },
- {
- "name": "operator.mul",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "*",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.Mul"
- },
- {
- "name": "operator.div",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "/",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.Div"
- },
- {
- "name": "operator.random",
- "contents":[
- "从",
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "到",
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "随机选择一个数"
- ],
- "class": "operator.Random"
- },
- {
- "name": "operator.gt",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- ">",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.Gt"
- },
- {
- "name": "operator.gtEqual",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- ">=",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.GtEqual"
- },
- {
- "name": "operator.lt",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "<",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.Lt"
- },
- {
- "name": "operator.ltEqual",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "<=",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.LtEqual"
- },
- {
- "name": "operator.equal",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "==",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.Equal"
- },
- {
- "name": "operator.dot",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- ".",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.Dot"
- },
- {
- "name": "operator.and",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "与",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.And"
- },
- {
- "name": "operator.or",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "或",
- {"type": "inputMortise", "default": "", "tenonTypes": []}
- ],
- "class": "operator.Or"
- },
- {
- "name": "operator.not",
- "contents":[
- {"type": "inputMortise", "default": "", "tenonTypes": []},
- "不成立"
- ],
- "class": "operator.Not"
- }
- ]
- }
- }
|