config.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. return [
  3. [
  4. 'name' => 'condition1',
  5. 'title' => '条件1',
  6. 'type' => 'radio',
  7. 'group' => '选项组一',
  8. 'content' => [
  9. 'value1' => '值1',
  10. 'value2' => '值2',
  11. ],
  12. 'value' => 'value2',
  13. 'rule' => 'required',
  14. 'msg' => '',
  15. 'tip' => '',
  16. 'ok' => '',
  17. 'extend' => '',
  18. ],
  19. [
  20. 'name' => 'condition2',
  21. 'title' => '条件2',
  22. 'type' => 'checkbox',
  23. 'group' => '选项组一',
  24. 'visible' => 'condition1=value1',
  25. 'content' => [
  26. 'value1' => '值1',
  27. 'value2' => '值2',
  28. 'value3' => '值3',
  29. ],
  30. 'value' => 'value1,value2',
  31. 'rule' => 'required',
  32. 'msg' => '',
  33. 'tip' => '',
  34. 'ok' => '',
  35. 'extend' => '',
  36. ],
  37. [
  38. 'name' => 'condition3',
  39. 'title' => '条件3',
  40. 'type' => 'select',
  41. 'group' => '选项组一',
  42. 'visible' => 'condition1=value2',
  43. 'content' => [
  44. 'value1' => '值1',
  45. 'value2' => '值2',
  46. ],
  47. 'value' => 'value1',
  48. 'rule' => 'required',
  49. 'msg' => '',
  50. 'tip' => '',
  51. 'ok' => '',
  52. 'extend' => '',
  53. ],
  54. [
  55. 'name' => 'condition4',
  56. 'title' => '条件4',
  57. 'type' => 'selects',
  58. 'group' => '选项组一',
  59. 'content' => [
  60. 'value1' => '值1',
  61. 'value2' => '值2',
  62. 'value3' => '值3',
  63. ],
  64. 'value' => 'value1,value2',
  65. 'rule' => 'required',
  66. 'msg' => '',
  67. 'tip' => '',
  68. 'ok' => '',
  69. 'extend' => '',
  70. ],
  71. [
  72. 'name' => 'title',
  73. 'title' => '标题',
  74. 'type' => 'string',
  75. 'group' => '选项组一',
  76. 'visible' => 'condition3=value1',
  77. 'content' => [],
  78. 'value' => '3x',
  79. 'rule' => 'required',
  80. 'msg' => '',
  81. 'tip' => '',
  82. 'ok' => '',
  83. 'extend' => '',
  84. ],
  85. [
  86. 'name' => 'domain',
  87. 'title' => '绑定二级域名前缀',
  88. 'type' => 'string',
  89. 'group' => '选项组二',
  90. 'content' => [],
  91. 'value' => '',
  92. 'rule' => '',
  93. 'msg' => '',
  94. 'tip' => '',
  95. 'ok' => '',
  96. 'extend' => '',
  97. ],
  98. [
  99. 'name' => 'rewrite',
  100. 'title' => '伪静态',
  101. 'type' => 'array',
  102. 'group' => '选项组二',
  103. 'content' => [],
  104. 'value' => [
  105. 'index/index' => '/example$',
  106. 'demo/index' => '/example/d/[:name]',
  107. 'demo/demo1' => '/example/d1/[:name]',
  108. 'demo/demo2' => '/example/d2/[:name]',
  109. ],
  110. 'rule' => 'required',
  111. 'msg' => '',
  112. 'tip' => '',
  113. 'ok' => '',
  114. 'extend' => '',
  115. ],
  116. [
  117. 'name' => '__tips__',
  118. 'title' => '温馨提示',
  119. 'type' => 'string',
  120. 'content' => [],
  121. 'value' => '这里是提示的文本内容',
  122. 'rule' => '',
  123. 'msg' => '',
  124. 'tip' => '',
  125. 'ok' => '',
  126. 'extend' => '',
  127. ],
  128. ];