feat: 后台表格筛选改为 Above 常驻布局
文章/评论/用户/媒体/订单五个表格的筛选条件从下拉改为表格上方内联显示(FiltersLayout::AboveContent),无需点击即可看到并操作筛选
This commit is contained in:
@@ -65,7 +65,7 @@ class CommentsTable
|
||||
'spam' => '垃圾',
|
||||
'rejected' => '已拒绝',
|
||||
]),
|
||||
])
|
||||
], \Filament\Tables\Enums\FiltersLayout::AboveContent)
|
||||
->recordActions([
|
||||
Action::make('approve')
|
||||
->label('通过')
|
||||
|
||||
@@ -56,7 +56,7 @@ class MediaTable
|
||||
'attachments' => '附件',
|
||||
'cover' => '封面',
|
||||
]),
|
||||
])
|
||||
], \Filament\Tables\Enums\FiltersLayout::AboveContent)
|
||||
->recordActions([
|
||||
\Filament\Actions\EditAction::make(),
|
||||
])
|
||||
|
||||
@@ -78,7 +78,7 @@ class PostsTable
|
||||
]),
|
||||
TernaryFilter::make('is_sticky')
|
||||
->label('置顶'),
|
||||
])
|
||||
], \Filament\Tables\Enums\FiltersLayout::AboveContent)
|
||||
->recordActions([
|
||||
ViewAction::make(),
|
||||
EditAction::make(),
|
||||
|
||||
@@ -51,7 +51,7 @@ class UsersTable
|
||||
\Filament\Tables\Filters\SelectFilter::make('roles')
|
||||
->label('角色')
|
||||
->relationship('roles', 'name'),
|
||||
])
|
||||
], \Filament\Tables\Enums\FiltersLayout::AboveContent)
|
||||
->recordActions([
|
||||
EditAction::make(),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user