platform_request_body.php 756 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. $platform_id = Dever::input('set')['platform_id'] ?? 0;
  3. if (!$platform_id) {
  4. $platform_id = Dever::input('field')['platform_id'] ?? 0;
  5. }
  6. if (!$platform_id) {
  7. $platform_id = Dever::input('id');
  8. }
  9. return [
  10. 'update' => [
  11. 'field' => [
  12. 'key' => [
  13. 'type' => 'textarea',
  14. 'autosize' => ['minRows' => 2],
  15. ],
  16. 'value' => [
  17. 'type' => 'textarea',
  18. 'autosize' => ['minRows' => 2],
  19. ],
  20. 'type' => [
  21. 'type' => 'cascader',
  22. 'option' => 'Dever::call("api/util.fieldType", '.$platform_id.')',
  23. 'clearable' => true,
  24. ],
  25. ],
  26. 'drag' => 'sort',
  27. ],
  28. ];