12345678910111213141516171819202122232425262728293031323334 |
- <?php
- $platform_id = Dever::input('set')['platform_id'] ?? 0;
- if (!$platform_id) {
- $platform_id = Dever::input('field')['platform_id'] ?? 0;
- }
- if (!$platform_id) {
- $platform_id = Dever::input('id');
- }
- return array
- (
- 'update' => array
- (
- 'field' => array
- (
- 'key' => array
- (
- 'type' => 'textarea',
- 'autosize' => array('minRows' => 2),
- ),
- 'value' => array
- (
- 'type' => 'textarea',
- 'autosize' => array('minRows' => 2),
- ),
- 'type' => array
- (
- 'type' => 'cascader',
- 'option' => 'Dever::call("api/util.fieldType", '.$platform_id.')',
- 'clearable' => true,
- ),
- ),
- 'drag' => 'sort',
- ),
- );
|