block_variable.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. [
  2. {
  3. "name": "variable.var",
  4. "contents": [
  5. "定义一个",
  6. {"type": "select", "options": ["字符串|string", "数字|number", "数组|array", "对象|object", "布尔|boolean"], "default": "string"},
  7. "变量",
  8. {"type": "input", "default": "名称"}
  9. ],
  10. "class": "variable.Var"
  11. },
  12. {
  13. "name": "variable.var",
  14. "contents": [
  15. "定义一个变量",
  16. {"type": "input", "default": "名称"},
  17. "并赋值",
  18. {"type": "inputMortise", "default": "", "tenonTypes": []}
  19. ],
  20. "class": "variable.Var", "extend": "$Operation"
  21. },
  22. {
  23. "name": "variable.set",
  24. "contents":[
  25. "给",
  26. {"type": "mortise", "tenonTypes": []},
  27. "赋值",
  28. {"type": "inputMortise", "default": "", "tenonTypes": []}
  29. ],
  30. "class": "variable.Set", "extend": "$Operation"
  31. },
  32. {
  33. "name": "variable.variable",
  34. "contents":[
  35. "变量",
  36. {"type": "input", "default": "名称"}
  37. ],
  38. "class": "variable.Variable"
  39. },
  40. {
  41. "name": "variable.new",
  42. "contents":[
  43. "创建新对象",
  44. {"type": "input", "default": "名称"},
  45. "(",
  46. {"type": "inputMortise", "default": "", "tenonTypes": []},
  47. ")"
  48. ],
  49. "class": "variable.New"
  50. },
  51. {
  52. "name": "variable.this",
  53. "contents":["this"],
  54. "class": "variable.This"
  55. },
  56. {
  57. "name": "variable.typeof",
  58. "contents":[
  59. {"type": "mortise", "tenonTypes": []},
  60. "的数据类型"
  61. ],
  62. "class": "variable.Typeof"
  63. },
  64. {
  65. "name": "variable.instanceof",
  66. "contents":[
  67. {"type": "inputMortise", "default": "", "tenonTypes": []},
  68. "instanceof",
  69. {"type": "inputMortise", "default": "", "tenonTypes": []}
  70. ],
  71. "class": "variable.Instanceof"
  72. },
  73. {
  74. "name": "variable.in",
  75. "contents":[
  76. {"type": "input", "default": "", "tenonTypes": []},
  77. "in",
  78. {"type": "mortise", "tenonTypes": []}
  79. ],
  80. "class": "variable.In"
  81. },
  82. {
  83. "name": "variable.delete",
  84. "contents":[
  85. "删除对象",
  86. {"type": "mortise", "tenonTypes": []}
  87. ],
  88. "class": "variable.Delete"
  89. },
  90. {
  91. "name": "variable.NaN",
  92. "contents":["NaN"],
  93. "class": "variable.NaN"
  94. }
  95. ]