v1.3.4
v1.3.2更新日志
发布时间 2020/05/12
功能优化部分
1.优化表单多列布局功能,优化表单间距,使整体更加协调
$form->row(function (Form\Row $form) {
$form->width(4)->text('username')->required();
$form->width(3)->text('title');
...
});
$form->row(function (Form\Row $form) {
...
});
...
效果
2.增加数据详情Show多列布局功能
$show->row(function (Show\Row $show) {
$show->width(3)->id;
$show->width(3)->name;
$show->width(5)->email;
});
$show->row(function (Show\Row $show) {
$show->width(5)->email_verified_at;
$show->created_at;
$show->updated_at;
});
$show->row(function (Show\Row $show) {
$show->width(3)->field('profile.first_name');
$show->field('profile.last_name');
$show->width(3)->field('profile.postcode');
});
效果
3.增加HasMany一对多表单对文件上传表单的支持
$form->hasMany('paintings', function (Form\NestedForm $form) {
$form->text('title');
$form->file('attachment');
$form->image('image');
});
4.增加一对一表单对文件上传表单的支持
$form->image('profile.avatar');
5.Content和Color增加Macroable支持
在你的app\Admin\bootstrap.php
中加入以下代码
Content::macro('getView', function () {
return $this->view;
});
使用
$view = $content->getView();
6.登录页面错误信息显示文件布局优化