Skip to content

Commit 94d0430

Browse files
committed
update
1 parent 3617424 commit 94d0430

File tree

3 files changed

+6
-294
lines changed

3 files changed

+6
-294
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Class Paging
2323
* @package Inhere\LibraryPlus\Html
2424
*/
25-
class Paging extends PagingBase
25+
class ExtendedPagination extends Pagination
2626
{
2727
/**
2828
* @var array
@@ -231,7 +231,7 @@ public function selectPage()
231231
onchange="javascript:location.href=\'' . $this->getUrl() . '\'+this.value;">';
232232

233233
for ($i = 1; $i <= $this->pageTotal; $i++) {
234-
$select .= ($page == $i) ?
234+
$select .= ($page === $i) ?
235235
'<option value="' . $i . '" selected="selected"">' . $i . '</option>' :
236236
'<option value="' . $i . '" >' . $i . '</option>';
237237
}
@@ -279,9 +279,9 @@ public function useStyle($type = 'full')
279279
}
280280

281281
// 添加 a 的外部元素 li
282-
private function hasListElement($ele, $attrs = [])
282+
private function hasListElement($ele, array $attrs = [])
283283
{
284-
if ($this->elements['list']['tag'] != '') {
284+
if ($this->elements['list']['tag'] !== '') {
285285
$listEle = $this->elements['list']['tag'];
286286

287287
return Html::tag($listEle, $ele, $attrs);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
use Inhere\Exceptions\InvalidConfigException;
1212

1313
/**
14-
* Class PagingBase
14+
* Class Pagination
1515
* @package Inhere\LibraryPlus\Html
1616
*/
17-
class PagingBase
17+
class Pagination
1818
{
1919
/**
2020
* 总的页数

libs/web/ViewRenderer.php

Lines changed: 0 additions & 288 deletions
This file was deleted.

0 commit comments

Comments
 (0)