mirror of
https://gitee.com/layui/layui.git
synced 2025-08-20 00:44:23 +08:00
fix(i18n): 修复 laypage 变量定义前使用
This commit is contained in:
parent
741686bd79
commit
03dcbb7931
@ -156,7 +156,7 @@ layui.define('i18n', function(exports) {
|
||||
// 数据总数
|
||||
count: function(){
|
||||
var countText = typeof config.countText === 'object'
|
||||
? countText[0] + config.count + countText[1]
|
||||
? config.countText[0] + config.count + config.countText[1]
|
||||
: i18n.$t('laypage.total', {total: config.count});
|
||||
|
||||
return '<span class="layui-laypage-count">'+ countText +'</span>'
|
||||
|
Loading…
Reference in New Issue
Block a user