layui拡張コンポーネント-soulTableフィルタリング

これは公式ウェブサイトのレンダリングです

ここに写真の説明を挿入
ここに写真の説明を挿入

****

ただし、使用時には、タイトルのじょうごの編集フィルター条件はこの操作と同等であるため、以下の編集フィルター条件はまったく必要ありません。したがって、達成したい目標は、下のグラフを非表示にすることです。動作を図に示します。

****

ここに写真の説明を挿入
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.use(['form', 'table','soulTable'], function () {
    
    
    table.render({
    
    
        elem: '#myTable'
        ,id: 'myTable'
        ,url: 'data.json'
        ,height: 500
        ,toolbar: '#toolbar'
        ,page: false
        //filter为添加部分------------
        ,filter:{
    
    
           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

おすすめ

転載: blog.csdn.net/qq_36636312/article/details/109388810