Skip to content

Commit

Permalink
feat: 调整默认分页控件
Browse files Browse the repository at this point in the history
  • Loading branch information
slowlyo committed Jul 3, 2024
1 parent 2e5dade commit c647bb0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Controllers/AdminMenuController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public function list(): Page
])
->loadDataOnce()
->syncLocation(false)
->footerToolbar([])
->headerToolbar([$this->createButton(true, 'lg'), ...$this->baseHeaderToolBar()])
->filterTogglable(false)
->footerToolbar(['statistics'])
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/AdminPermissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function list(): Page
->perPage(999)
->loadDataOnce()
->filterTogglable(false)
->footerToolbar([])
->footerToolbar(['statistics'])
->headerToolbar([
$this->createButton(true, 'lg'),
'bulkActions',
Expand Down
1 change: 1 addition & 0 deletions src/Traits/ElementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ protected function baseCRUD()
{
$crud = amis()->CRUDTable()
->perPage(20)
->alwaysShowPagination()
->affixHeader(false)
->filterTogglable()
->filterDefaultVisible(false)
Expand Down

0 comments on commit c647bb0

Please sign in to comment.