* zin: add data-load attribute to link in pager size menu.

This commit is contained in:
sunhao
2023-06-07 18:01:18 +08:00
parent fde17f3365
commit 68d1fc877c
+1 -1
View File
@@ -38,7 +38,7 @@ function usePager(array $userSetting = null, string $pagerName = 'pager'): array
else
{
$setting['items'][] = array('type' => 'info', 'text' => $pager->lang->pager->totalCountAB);
$setting['items'][] = array('type' => 'size-menu', 'text' => str_replace('<strong>', '', str_replace('</strong>', '', $pager->lang->pager->pageSize)), 'dropdown' => array('placement' => 'top'));
$setting['items'][] = array('type' => 'size-menu', 'text' => str_replace('<strong>', '', str_replace('</strong>', '', $pager->lang->pager->pageSize)), 'dropdown' => array('placement' => 'top'), 'itemProps' => array('data-load' => 'table'));
$setting['items'][] = array('type' => 'link', 'page' => 'first', 'hint' => $pager->lang->pager->firstPage, 'icon' => 'icon-first-page');
$setting['items'][] = array('type' => 'link', 'page' => 'prev', 'hint' => $pager->lang->pager->previousPage, 'icon' => 'icon-angle-left');
$setting['items'][] = array('type' => 'info', 'text' => '{page}/{pageTotal}');