mirror of
https://gitee.com/layui/layui.git
synced 2025-10-07 15:14:31 +08:00
新增 laypage countText 选项 (#1444)
This commit is contained in:
@@ -200,6 +200,20 @@ limitTemplet: function(item) {
|
||||
skipText: ['Go to', '', 'Confirm']
|
||||
```
|
||||
|
||||
</td>
|
||||
<td>array</td>
|
||||
<td>-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>countText <sup>2.9.1+</sup></td>
|
||||
<td>
|
||||
|
||||
用于自定义总数区域文本,如:
|
||||
|
||||
```
|
||||
countText: ['Total ','']
|
||||
```
|
||||
|
||||
</td>
|
||||
<td>array</td>
|
||||
<td>-</td>
|
||||
|
@@ -152,7 +152,10 @@ layui.define(function(exports){
|
||||
}(),
|
||||
|
||||
// 数据总数
|
||||
count: '<span class="layui-laypage-count">共 '+ config.count +' 条</span>',
|
||||
count: function(){
|
||||
var countText = typeof config.countText === 'object' ? config.countText : ['共 ', ' 条'];
|
||||
return '<span class="layui-laypage-count">'+ countText[0] + config.count + countText[1] +'</span>'
|
||||
}(),
|
||||
|
||||
// 每页条数
|
||||
limit: function(){
|
||||
|
Reference in New Issue
Block a user