mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正分页类
This commit is contained in:
@@ -60,6 +60,7 @@ abstract class Paginator
|
||||
$this->hasMore = count($this->items) > ($this->listRows);
|
||||
$this->items = $this->items->slice(0, $this->listRows);
|
||||
} else {
|
||||
$this->total = $total;
|
||||
$this->lastPage = (int)ceil($total / $listRows);
|
||||
$this->currentPage = $this->setCurrentPage($currentPage);
|
||||
$this->hasMore = $this->currentPage < $this->lastPage;
|
||||
|
||||
Reference in New Issue
Block a user