block.json.bak 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. {
  2. "control":{
  3. "text": "控制",
  4. "color": "#e1a91a",
  5. "mortiseColor": "#cf9b17",
  6. "blocks": [
  7. {
  8. "name": "control.function",
  9. "contents": [
  10. "方法(函数)",
  11. {"type": "input", "default": "方法"}
  12. ],
  13. "class": "control.Function"
  14. },
  15. {
  16. "name": "control.if",
  17. "contents": [
  18. "如果",
  19. {"type": "mortise", "tenonTypes": []},
  20. "那么"
  21. ],
  22. "text": "<div style='float: left'>如果</div>{condition}<div style='float: left'>那么</div>",
  23. "class": "control.If"
  24. },
  25. {
  26. "name": "control.return",
  27. "contents":[
  28. "返回",
  29. {"type": "inputMortise", "default": "", "tenonTypes": []}
  30. ],
  31. "class": "control.Return"
  32. }
  33. // {
  34. // "name": "ifelse",
  35. // "text": "<div style='float: left'>如果</div>{condition}<div style='float: left'>否则</div>",
  36. // "class": "control.Ifelse"
  37. // },
  38. // {
  39. // "name": "while",
  40. // "text": "重复执行",
  41. // "class": "control.While"
  42. // },
  43. // {
  44. // "name": "each",
  45. // "text": "遍历",
  46. // "class": "control.Each"
  47. // },
  48. // {
  49. // "name": "return",
  50. // "text": "返回",
  51. // "class": "control.Return"
  52. // }
  53. ]
  54. },
  55. "variable": {
  56. "text": "变量",
  57. "color": "#4a6cd4",
  58. "mortiseColor": "#3a55a9",
  59. "blocks": [
  60. {
  61. "name": "variabler.var",
  62. "contents": [
  63. "定义一个",
  64. {"type": "select", "options": ["字符串|string", "数字|number", "数组|array", "对象|object", "布尔|boolean"], "default": "string"},
  65. "变量",
  66. {"type": "input", "default": "名称"}
  67. ],
  68. "class": "variabler.Var"
  69. },
  70. {
  71. "name": "variabler.set",
  72. "contents":[
  73. "给",
  74. {"type": "mortise", "tenonTypes": []},
  75. "赋值",
  76. {"type": "inputMortise", "default": "", "tenonTypes": []}
  77. ],
  78. "class": "variabler.Set"
  79. },
  80. {
  81. "name": "variabler.variable",
  82. "contents":[
  83. "变量",
  84. {"type": "input", "default": "名称"}
  85. ],
  86. "class": "variabler.Variabler"
  87. }
  88. ]
  89. },
  90. "form":{
  91. "text": "表单",
  92. "color": "#ee7d16",
  93. "blocks": [
  94. {
  95. "name": "get",
  96. "text": "<div style='float: left'>获得表单对象</div><div style='float: left; margin-left:10px'>{name}</div>",
  97. "class": "form.Get",
  98. "value": "data"
  99. },
  100. {
  101. "name": "getField",
  102. "text": "获取表单域",
  103. "class": "form.GetField"
  104. },
  105. {
  106. "name": "getDesktop",
  107. "text": "获取桌面对象",
  108. "class": "form.GetDesktop"
  109. },
  110. {
  111. "name": "getData",
  112. "text": "获取数据",
  113. "class": "form.GetData"
  114. },
  115. {
  116. "name": "save",
  117. "text": "保存",
  118. "class": "form.Save"
  119. },
  120. {
  121. "name": "close",
  122. "text": "关闭",
  123. "class": "form.Close"
  124. },
  125. {
  126. "name": "process",
  127. "text": "流转",
  128. "class": "form.Process"
  129. },
  130. {
  131. "name": "reset",
  132. "text": "重置处理人",
  133. "class": "form.Reset"
  134. },
  135. {
  136. "name": "retract",
  137. "text": "撤回",
  138. "class": "form.Retract"
  139. },
  140. {
  141. "name": "print",
  142. "text": "打印",
  143. "class": "form.Print"
  144. },
  145. {
  146. "name": "deleteWork",
  147. "text": "删除工作",
  148. "class": "form.DeleteWork"
  149. },
  150. {
  151. "name": "notice",
  152. "text": "提示信息",
  153. "class": "form.Notice"
  154. }
  155. ]
  156. },
  157. "operator":{
  158. "text": "运算符",
  159. "color": "#5cb712",
  160. "blocks": [
  161. {
  162. "name": "operator.add",
  163. "contents":[
  164. {"type": "inputMortise", "default": "", "tenonTypes": []},
  165. "+",
  166. {"type": "inputMortise", "default": "", "tenonTypes": []}
  167. ],
  168. "class": "operator.Add"
  169. },
  170. {
  171. "name": "operator.sub",
  172. "contents":[
  173. {"type": "inputMortise", "default": "", "tenonTypes": []},
  174. "-",
  175. {"type": "inputMortise", "default": "", "tenonTypes": []}
  176. ],
  177. "class": "operator.Sub"
  178. },
  179. {
  180. "name": "operator.mul",
  181. "contents":[
  182. {"type": "inputMortise", "default": "", "tenonTypes": []},
  183. "*",
  184. {"type": "inputMortise", "default": "", "tenonTypes": []}
  185. ],
  186. "class": "operator.Mul"
  187. },
  188. {
  189. "name": "operator.div",
  190. "contents":[
  191. {"type": "inputMortise", "default": "", "tenonTypes": []},
  192. "/",
  193. {"type": "inputMortise", "default": "", "tenonTypes": []}
  194. ],
  195. "class": "operator.Div"
  196. },
  197. {
  198. "name": "operator.random",
  199. "contents":[
  200. "从",
  201. {"type": "inputMortise", "default": "", "tenonTypes": []},
  202. "到",
  203. {"type": "inputMortise", "default": "", "tenonTypes": []},
  204. "随机选择一个数"
  205. ],
  206. "class": "operator.Random"
  207. },
  208. {
  209. "name": "operator.gt",
  210. "contents":[
  211. {"type": "inputMortise", "default": "", "tenonTypes": []},
  212. ">",
  213. {"type": "inputMortise", "default": "", "tenonTypes": []}
  214. ],
  215. "class": "operator.Gt"
  216. },
  217. {
  218. "name": "operator.gtEqual",
  219. "contents":[
  220. {"type": "inputMortise", "default": "", "tenonTypes": []},
  221. ">=",
  222. {"type": "inputMortise", "default": "", "tenonTypes": []}
  223. ],
  224. "class": "operator.GtEqual"
  225. },
  226. {
  227. "name": "operator.lt",
  228. "contents":[
  229. {"type": "inputMortise", "default": "", "tenonTypes": []},
  230. "<",
  231. {"type": "inputMortise", "default": "", "tenonTypes": []}
  232. ],
  233. "class": "operator.Lt"
  234. },
  235. {
  236. "name": "operator.ltEqual",
  237. "contents":[
  238. {"type": "inputMortise", "default": "", "tenonTypes": []},
  239. "<=",
  240. {"type": "inputMortise", "default": "", "tenonTypes": []}
  241. ],
  242. "class": "operator.LtEqual"
  243. },
  244. {
  245. "name": "operator.equal",
  246. "contents":[
  247. {"type": "inputMortise", "default": "", "tenonTypes": []},
  248. "==",
  249. {"type": "inputMortise", "default": "", "tenonTypes": []}
  250. ],
  251. "class": "operator.Equal"
  252. },
  253. {
  254. "name": "operator.dot",
  255. "contents":[
  256. {"type": "inputMortise", "default": "", "tenonTypes": []},
  257. ".",
  258. {"type": "inputMortise", "default": "", "tenonTypes": []}
  259. ],
  260. "class": "operator.Dot"
  261. },
  262. {
  263. "name": "operator.and",
  264. "contents":[
  265. {"type": "inputMortise", "default": "", "tenonTypes": []},
  266. "与",
  267. {"type": "inputMortise", "default": "", "tenonTypes": []}
  268. ],
  269. "class": "operator.And"
  270. },
  271. {
  272. "name": "operator.or",
  273. "contents":[
  274. {"type": "inputMortise", "default": "", "tenonTypes": []},
  275. "或",
  276. {"type": "inputMortise", "default": "", "tenonTypes": []}
  277. ],
  278. "class": "operator.Or"
  279. },
  280. {
  281. "name": "operator.not",
  282. "contents":[
  283. {"type": "inputMortise", "default": "", "tenonTypes": []},
  284. "不成立"
  285. ],
  286. "class": "operator.Not"
  287. }
  288. ]
  289. }
  290. }