新增头像字段

This commit is contained in:
JaguarJack 2021-05-05 14:23:54 +08:00
parent 174e9e39c0
commit 666b837327

View File

@ -17,6 +17,8 @@ class User extends CatchTable
->header([
HeaderItem::label('')->selection(),
HeaderItem::label('用户名')->prop('username'),
HeaderItem::label('头像')->prop('avatar')->withPreviewComponent(),
HeaderItem::label('邮箱')->prop('email'),
HeaderItem::label('状态')->prop('status')->component('status', 'status'),
HeaderItem::label('创建时间')->prop('created_at'),