config.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. declare(strict_types=1);
  3. return [
  4. [
  5. 'type' => 'switch',
  6. 'field' => 'is_cache',
  7. 'title' => '缓存开关',
  8. 'info' => '是否开启缓存',
  9. '$required' => false,
  10. 'props' => [
  11. 'activeValue' => true,
  12. 'inactiveValue' => false
  13. ],
  14. '_fc_id' => 'id_Fjzbmcdo513lahc',
  15. 'name' => 'ref_Fzt4mcdo513laic',
  16. 'display' => true,
  17. 'hidden' => false,
  18. '_fc_drag_tag' => 'switch'
  19. ],
  20. [
  21. 'type' => 'checkbox',
  22. 'field' => 'normal_module_list',
  23. 'title' => '普通模块加载列表',
  24. 'info' => '选择状态的模块才会加载',
  25. 'effect' => [
  26. 'fetch' => [
  27. 'action' => '{{API_BASE_URL}}/admin/system/extension/normal',
  28. 'method' => 'GET',
  29. 'dataType' => 'json',
  30. 'headers' => [
  31. "Authorization" => "Bearer {{API_TOKEN}}"
  32. ],
  33. 'query' => [],
  34. 'data' => [],
  35. 'parse' => '',
  36. 'beforeFetch' => '',
  37. 'onError' => '',
  38. 'to' => 'options'
  39. ]
  40. ],
  41. '$required' => false,
  42. 'props' => [
  43. '_optionType' => 1
  44. ],
  45. '_fc_id' => 'id_Ffunmdtoraneacc',
  46. 'name' => 'ref_Fq8pmdtoraneadc',
  47. 'display' => true,
  48. 'hidden' => true,
  49. '_fc_drag_tag' => 'checkbox'
  50. ],
  51. [
  52. 'type' => 'group',
  53. 'field' => 'category',
  54. 'value' => [
  55. [
  56. 'text' => '核心扩展',
  57. 'code' => 'core'
  58. ],
  59. [
  60. 'text' => '支付',
  61. 'code' => 'pay'
  62. ],
  63. [
  64. 'text' => '定制',
  65. 'code' => 'custom'
  66. ],
  67. [
  68. 'text' => '其他扩展',
  69. 'code' => 'other'
  70. ],
  71. ],
  72. 'title' => '分类',
  73. 'info' => '',
  74. '$required' => false,
  75. 'props' => [
  76. 'expand' => 1,
  77. 'rule' => [
  78. [
  79. 'type' => 'fcRow',
  80. 'children' => [
  81. [
  82. 'type' => 'col',
  83. 'props' => [
  84. 'span' => 12
  85. ],
  86. 'children' => [
  87. [
  88. 'type' => 'input',
  89. 'field' => 'text',
  90. 'title' => '分类名',
  91. 'info' => '',
  92. '$required' => false,
  93. '_fc_id' => 'id_Ffmvmclvt0mfauc',
  94. 'name' => 'ref_Fwifmclvt0mfavc',
  95. 'display' => true,
  96. 'hidden' => false,
  97. '_fc_drag_tag' => 'input'
  98. ],
  99. [
  100. 'type' => 'input',
  101. 'field' => 'code',
  102. 'title' => '分类编码',
  103. 'info' => '',
  104. '$required' => false,
  105. '_fc_id' => 'id_F217mclvt3a5axc',
  106. 'name' => 'ref_Flwvmclvt3a5ayc',
  107. 'display' => true,
  108. 'hidden' => false,
  109. '_fc_drag_tag' => 'input'
  110. ]
  111. ]
  112. ]
  113. ]
  114. ]
  115. ]
  116. ]
  117. ]
  118. ];