1
This commit is contained in:
@@ -139,6 +139,31 @@
|
||||
none: translations.data_not_found
|
||||
},
|
||||
done: function () {
|
||||
// 更新分页文本
|
||||
$('.layui-laypage a').each(function() {
|
||||
let text = $(this).text();
|
||||
if (text === '上一页') {
|
||||
$(this).text(translations.pagination_prev);
|
||||
} else if (text === '下一页') {
|
||||
$(this).text(translations.pagination_next);
|
||||
}
|
||||
});
|
||||
|
||||
// 更新分页信息
|
||||
let pageInfo = $('.layui-laypage-count').text();
|
||||
let total = pageInfo.match(/\d+/)[0];
|
||||
$('.layui-laypage-count').text(translations.pagination_total.replace('{total}', total));
|
||||
|
||||
// 更新每页条数
|
||||
$('.layui-laypage-limits option').each(function() {
|
||||
let value = $(this).val();
|
||||
$(this).text(translations.pagination_limit.replace('{limit}', value));
|
||||
});
|
||||
|
||||
// 更新跳转文本
|
||||
$('.layui-laypage-skip').prev().text(translations.pagination_jump);
|
||||
$('.layui-laypage-btn').text(translations.pagination_go);
|
||||
|
||||
layer.photos({photos: 'div[lay-id="data-table"]', anim: 5});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user