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

有关在Block布局中row或column嵌套hasmany时候没有设置field名称时候的样式问题

Open baozilala opened this issue 2 years ago • 1 comments

  • Laravel Version: 9
  • PHP Version: 8.0.2
  • Dcat Admin Version: 2.2.0

Description:

image

Steps To Reproduce:

 $form->block(12, function (Form\BlockForm $form){
                $form->title('xxxx');
                $form->showFooter();
//                dump($form->hasMany('factoryOrder',function (){})->getKeyName());

                $form->hasMany('factoryOrder', null, function ($form) {//这里设置的是空,但是模板中没有进行判断,会显示如图
                    $form->row(function(Form\Row $form){
                        $form->width(2)

建议 hasmanytab.blade.php 中 row header 做一下判断!要是没有设置label的情况,可以不显示.

baozilala avatar Mar 31 '22 01:03 baozilala

后续会参考你的提议

laradocs avatar Mar 31 '22 15:03 laradocs

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 27 '22 15:09 stale[bot]