<?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 [
    'update' => [
        'field'    => [
            'key' => [
                'type' => 'textarea',
                'autosize' => ['minRows' => 2],
            ],
            'value' => [
                'type' => 'textarea',
                'autosize' => ['minRows' => 2],
            ],
            'type' => [
                'type' => 'cascader',
                'option'    => 'Dever::call("api/util.fieldType", '.$platform_id.')',
                'clearable' => true,
            ],
        ],
        'drag' => 'sort',
    ],
];