1.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. [
  2. {
  3. "type": "hidden",
  4. "field": "type",
  5. "value": "text"
  6. },
  7. {
  8. "type": "select",
  9. "field": "input_type",
  10. "value": "",
  11. "title": "类型",
  12. "props": {
  13. "multiple": false,
  14. "placeholder": "请选择类型"
  15. },
  16. "options": [
  17. {
  18. "value": "input",
  19. "label": "文本框"
  20. },
  21. {
  22. "value": "dateTime",
  23. "label": "日期时间"
  24. },
  25. {
  26. "value": "date",
  27. "label": "日期"
  28. },
  29. {
  30. "value": "time",
  31. "label": "时间"
  32. },
  33. {
  34. "value": "color",
  35. "label": "颜色"
  36. },
  37. {
  38. "value": "number",
  39. "label": "数字"
  40. }
  41. ]
  42. },
  43. {
  44. "type": "input",
  45. "field": "info",
  46. "value": "",
  47. "title": "配置名称",
  48. "props": {
  49. "type": "text",
  50. "placeholder": "请输入配置名称",
  51. "autofocus": true
  52. }
  53. },
  54. {
  55. "type": "input",
  56. "field": "menu_name",
  57. "value": "",
  58. "title": "字段变量",
  59. "props": {
  60. "type": "text",
  61. "placeholder": "例如:site_url"
  62. }
  63. },
  64. {
  65. "type": "input",
  66. "field": "desc",
  67. "value": "",
  68. "title": "表单说明",
  69. "props": {
  70. "type": "text",
  71. "placeholder": "请输入表单说明"
  72. }
  73. },
  74. {
  75. "type": "input",
  76. "field": "value",
  77. "value": "",
  78. "title": "默认值",
  79. "props": {
  80. "type": "text",
  81. "placeholder": "请输入默认值"
  82. }
  83. },
  84. {
  85. "type": "inputNumber",
  86. "field": "width",
  87. "value": 100,
  88. "title": "文本框宽",
  89. "props": {
  90. "placeholder": "请输入文本框宽"
  91. }
  92. },
  93. {
  94. "type": "input",
  95. "field": "required",
  96. "value": "",
  97. "title": "验证规则",
  98. "props": {
  99. "type": "text",
  100. "placeholder": "多个请用,隔开例如:required:true,url:true"
  101. }
  102. },
  103. {
  104. "type": "inputNumber",
  105. "field": "sort",
  106. "value": 0,
  107. "title": "排序",
  108. "props": {
  109. "placeholder": "请输入排序"
  110. }
  111. },
  112. {
  113. "type": "radio",
  114. "field": "status",
  115. "value": 1,
  116. "title": "状态",
  117. "props": {},
  118. "options": [
  119. {
  120. "value": 1,
  121. "label": "显示"
  122. },
  123. {
  124. "value": 0,
  125. "label": "隐藏"
  126. }
  127. ]
  128. }
  129. ]