原图
我的需求:
隐藏表右下角的编辑筛选条件样式,需要的样式如下图:
jsp代码:
<style>
.soul-bottom-contion {
height: 31px;
/*line-height: 29px;*/
border-top: solid 1px #e6e6e6;
display:none;
}
.soul-bottom-contion .condition-items {
display: inline-block;
width: calc(100vw - 100px);
height: 30px;
float: left;
/*overflow: hidden;*/
white-space: nowrap;
display:none;
}
</style>
layui.config({
base: '/static/layui-v2.5.6/ext/',// 第三方模块所在目录
version: 'v1.5.10' // 插件版本号
}).extend({
soulTable: 'soulTable/soulTable',
tableChild: 'soulTable/tableChild',
tableMerge: 'soulTable/tableMerge',
tableFilter: 'soulTable/tableFilter',
excel: 'soulTable/excel'
});
layui.use(['form', 'table','soulTable'], function () {
table.render({
elem: '#myTable'
,id: 'myTable'
,url: 'data.json'
,height: 500
,toolbar: '#toolbar'
,page: false
//filter为添加部分------------
,filter:{
items:['colum','data','condition','editCondition'], // 控制漏斗的操作功能
bottom:false
},
//filter为添加部分------------
,cols: [[
{type: 'checkbox', fixed: 'left'},
{field: 'title', title: '诗词', width: 200, sort: true, filter: true},
{field: 'dynasty', title: '朝代', width: 100, sort: true, filter: true},
{field: 'author', title: '作者', width: 165 , filter: true},
{field: 'content', title: '内容', width: 123, filter: true},
{field: 'type', title: '类型', width: 112, filter: {split:','}, sort:true},
{field: 'heat', title: '点赞数', width: 112, filter: true, fixed: 'right', sort:true, excel:{cellType: 'n'}},
{field: 'createTime', title: '录入时间', width: 165, fixed: 'right', filter: {type: 'date[yyyy-MM-dd HH:mm:ss]'}, sort:true},
]]
,
//done为添加部分----------------
done: function (res, curr, count) {
layui.soulTable.render(this)
}
//done为添加部分----------------
});
})
链接:
官网文档链接:layui-soul-table