fix(后台分页): 上一页下一页为空
parent
d86f621d0d
commit
b958757bf0
|
@ -51,7 +51,7 @@ class Bootstrap extends Paginator
|
||||||
* $text = '<svg height="18" viewBox="0 0 18 18" width="18"><path d="M6 12 L13 9 L13 15 z"></path></svg>'
|
* $text = '<svg height="18" viewBox="0 0 18 18" width="18"><path d="M6 12 L13 9 L13 15 z"></path></svg>'
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function getPreviousButton(string $text = '<span class="prev"></span>'): string
|
protected function getPreviousButton(string $text = '<span class="prev">>></span>'): string
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($this->currentPage() <= 1) {
|
if ($this->currentPage() <= 1) {
|
||||||
|
@ -72,7 +72,7 @@ class Bootstrap extends Paginator
|
||||||
* $text = '<svg height="18" viewBox="0 0 18 18" width="18"><path d="M6 9 L13 12 L6 15 z"></path></svg>'
|
* $text = '<svg height="18" viewBox="0 0 18 18" width="18"><path d="M6 9 L13 12 L6 15 z"></path></svg>'
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function getNextButton(string $text='<span class="next"></span>'): string
|
protected function getNextButton(string $text='<span class="next">>></span>'): string
|
||||||
{
|
{
|
||||||
if (!$this->hasMore) {
|
if (!$this->hasMore) {
|
||||||
// return $this->getDisabledTextWrapper($text);
|
// return $this->getDisabledTextWrapper($text);
|
||||||
|
|
Loading…
Reference in New Issue