dcat-admin icon indicating copy to clipboard operation
dcat-admin copied to clipboard

JSON表单

Open hongbinhsu opened this issue 4 years ago • 0 comments

  • Laravel Version: 8.0
  • PHP Version: 8.0
  • Dcat Admin Version: 2.0.17

Description:

字段动态显示与JSON表单结合使用时,后一个JSON新增无效

Steps To Reproduce:

protected $group = ['basic' => '基础', 'list' => '列表', 'kv' => 'KV']; $form->radio('group') ->when('basic', function (Form $form){ $form->text('value'); }) ->when('list', function (Form $form) { $form->list('value', '列表') }) ->when('kv', function (Form $form) { $form->keyValue('value', 'KV'); }) ->options($this->group) ->default('basic') ->required();

hongbinhsu avatar Feb 08 '21 23:02 hongbinhsu