请问我如何更改下表单布局的显示呢?
#1879
-
请问如何让“测试”以及“测试2”这两个输入框横向排列,我在column方法中再嵌套row或是column都不行。红框中是目前代码的显示效果,想调整成绿框中那样显示。非常感谢。protected function form()
{
return Form::make(new AdminOrders(), function (Form $form) {
$form->block(8, function(Form\BlockForm $form){
$form->hasMany('body', function($form){
$form->column(6, function ($form) {
$form->text('ceshi1', '测试');
$form->text('ceshi2', '测试2');
});
$form->column(6, function ($form) {
$form->text('name', '右边1')->required();
$form->date('born', '右边2')->required();
});
});
});
$form->block(4, function(Form\BlockForm $form){
$form->next(function(Form\BlockForm $form){
});
});
});
} |
Beta Was this translation helpful? Give feedback.
Answered by
imfoggy
Aug 22, 2022
Replies: 1 comment 2 replies
-
已弃用。改用另外一个了。 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
imfoggy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已弃用。改用另外一个了。
只花了一晚上的时间就把之前开发的功能用新框架重新搞了一遍。
真香。