config.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?php
  2. return [
  3. [
  4. 'name' => 'text',
  5. 'title' => '默认文本',
  6. 'type' => 'string',
  7. 'content' => [],
  8. 'value' => '知音',
  9. 'rule' => 'required',
  10. 'msg' => '',
  11. 'tip' => '',
  12. 'ok' => '',
  13. 'extend' => '',
  14. ],
  15. [
  16. 'name' => 'size',
  17. 'title' => '默认宽高',
  18. 'type' => 'number',
  19. 'content' => [],
  20. 'value' => '300',
  21. 'rule' => 'required',
  22. 'msg' => '',
  23. 'tip' => '',
  24. 'ok' => '',
  25. 'extend' => '',
  26. ],
  27. [
  28. 'name' => 'padding',
  29. 'title' => '默认边距',
  30. 'type' => 'number',
  31. 'content' => [],
  32. 'value' => '15',
  33. 'rule' => 'required',
  34. 'msg' => '',
  35. 'tip' => '',
  36. 'ok' => '',
  37. 'extend' => '',
  38. ],
  39. [
  40. 'name' => 'format',
  41. 'title' => '默认格式',
  42. 'type' => 'radio',
  43. 'content' => [
  44. 'png' => 'PNG',
  45. 'svg' => 'SVG(不支持标签)',
  46. ],
  47. 'value' => 'png',
  48. 'rule' => 'required',
  49. 'msg' => '',
  50. 'tip' => '',
  51. 'ok' => '',
  52. 'extend' => '',
  53. ],
  54. [
  55. 'name' => 'errorlevel',
  56. 'title' => '容错级别',
  57. 'type' => 'radio',
  58. 'content' => [
  59. 'low' => '低',
  60. 'medium' => '中',
  61. 'quartile' => '高',
  62. 'high' => '超高',
  63. ],
  64. 'value' => 'medium',
  65. 'rule' => 'required',
  66. 'msg' => '',
  67. 'tip' => '',
  68. 'ok' => '',
  69. 'extend' => '',
  70. ],
  71. [
  72. 'name' => 'foreground',
  73. 'title' => '前景色',
  74. 'type' => 'string',
  75. 'content' => [],
  76. 'value' => '#000000',
  77. 'rule' => 'required',
  78. 'msg' => '',
  79. 'tip' => '',
  80. 'ok' => '',
  81. 'extend' => '',
  82. ],
  83. [
  84. 'name' => 'background',
  85. 'title' => '背景色',
  86. 'type' => 'string',
  87. 'content' => [],
  88. 'value' => '#ffffff',
  89. 'rule' => 'required',
  90. 'msg' => '',
  91. 'tip' => '',
  92. 'ok' => '',
  93. 'extend' => '',
  94. ],
  95. [
  96. 'name' => 'label',
  97. 'title' => '默认标签',
  98. 'type' => 'string',
  99. 'content' => [],
  100. 'value' => '',
  101. 'rule' => '',
  102. 'msg' => '',
  103. 'tip' => '',
  104. 'ok' => '',
  105. 'extend' => '',
  106. ],
  107. [
  108. 'name' => 'labelfontsize',
  109. 'title' => '标签字体大小',
  110. 'type' => 'number',
  111. 'content' => [],
  112. 'value' => '14',
  113. 'rule' => '',
  114. 'msg' => '',
  115. 'tip' => '',
  116. 'ok' => '',
  117. 'extend' => '',
  118. ],
  119. [
  120. 'name' => 'labelfontpath',
  121. 'title' => '标签字体',
  122. 'type' => 'file',
  123. 'content' => [],
  124. 'value' => '/assets/fonts/SourceHanSansK-Regular.ttf',
  125. 'rule' => 'required',
  126. 'msg' => '',
  127. 'tip' => '',
  128. 'ok' => '',
  129. 'extend' => '',
  130. ],
  131. [
  132. 'name' => 'labelalignment',
  133. 'title' => '标签对齐方式',
  134. 'type' => 'radio',
  135. 'content' => [
  136. 'left' => '左',
  137. 'center' => '居中',
  138. 'right' => '右',
  139. ],
  140. 'value' => 'center',
  141. 'rule' => '',
  142. 'msg' => '',
  143. 'tip' => '',
  144. 'ok' => '',
  145. 'extend' => '',
  146. ],
  147. [
  148. 'name' => 'logo',
  149. 'title' => '默认显示Logo',
  150. 'type' => 'radio',
  151. 'content' => [
  152. '否',
  153. '是',
  154. ],
  155. 'value' => '0',
  156. 'rule' => 'required',
  157. 'msg' => '',
  158. 'tip' => '',
  159. 'ok' => '',
  160. 'extend' => '',
  161. ],
  162. [
  163. 'name' => 'logopath',
  164. 'title' => 'Logo图片',
  165. 'type' => 'image',
  166. 'content' => [],
  167. 'value' => '/assets/img/qrcode.png',
  168. 'rule' => 'required',
  169. 'msg' => '',
  170. 'tip' => '',
  171. 'ok' => '',
  172. 'extend' => '',
  173. ],
  174. [
  175. 'name' => 'logosize',
  176. 'title' => 'Logo大小',
  177. 'type' => 'number',
  178. 'content' => [],
  179. 'value' => '50',
  180. 'rule' => 'required',
  181. 'msg' => '',
  182. 'tip' => '',
  183. 'ok' => '',
  184. 'extend' => '',
  185. ],
  186. [
  187. 'name' => 'writefile',
  188. 'title' => '写入文件',
  189. 'type' => 'radio',
  190. 'content' => [
  191. '否',
  192. '是',
  193. ],
  194. 'value' => '0',
  195. 'rule' => 'required',
  196. 'msg' => '',
  197. 'tip' => '',
  198. 'ok' => '',
  199. 'extend' => '',
  200. ],
  201. [
  202. 'name' => 'rewrite',
  203. 'title' => '伪静态',
  204. 'type' => 'array',
  205. 'content' => [],
  206. 'value' => [
  207. 'index/index' => '/qrcode$',
  208. 'index/build' => '/qrcode/build$',
  209. ],
  210. 'rule' => 'required',
  211. 'msg' => '',
  212. 'tip' => '',
  213. 'ok' => '',
  214. 'extend' => '',
  215. ],
  216. ];