This commit is contained in:
贤心
2022-07-06 09:31:38 +08:00
parent 3ffd0163de
commit acc110c7f8
3 changed files with 11 additions and 12 deletions

View File

@@ -171,7 +171,7 @@ layui.use(['table', 'dropdown'], function(){
]]
//,autoSort: false // 禁用前端自动排序,由服务的完成排序
,initSort: { // 初始排序状态
,initSort111: { // 初始排序状态
field: 'experience' //排序字段,对应 cols 设定的各字段名
,type: 'desc' //排序方式 asc: 升序、desc: 降序、null: 默认排序
}

View File

@@ -61,7 +61,7 @@
<table id="test2" lay-filter="test2"></table>
<div style="display: none1;">
<table class="layui-table" lay-data="{width:800, height: 300, url:'json/table/demo2.json', page: true, limit: 6}">
<table class="layui-table" lay-data="{width:800, height: 300, url:'json/table/demo2.json', page: true, limit: 6, toolbar: true}">
<thead>
<tr>
<th lay-data="{checkbox:true, fixed:'left'}" rowspan="2"></th>
@@ -78,7 +78,7 @@
</thead>
</table>
<table class="layui-table" lay-data="{url:'json/table/demo2.json', page: true, limit: 6}">
<table class="layui-table" lay-data="{url:'json/table/demo2.json', page: true, limit: 6, toolbar: true}">
<thead>
<tr>
<th lay-data="{field:'username'}" rowspan="3">联系人</th>