layui表格高度自适应,layui表格取消分页

layui表格高度自适应

 height: 'full-180',// 表格高度根据浏览器自适应


layui表格取消分页

1.page: false,
2.limit: Number.MAX_VALUE,


实例

// 渲染表格
table.render({
    elem: '#power-table',
    id: 'power-table',
    url:  '/plm/role/selectPage',
    method: 'GET',
    height: 'full-180',// 表格高度根据浏览器自适应
    //page: false,// 取消分页时使用
    //limit: Number.MAX_VALUE,// 取消分页时使用
    page: true,
    limit:100, // 默认查询一页一百条记录
    limits: [10, 50, 100, 200, 300, 400, 500, 1000],
    cols: [[
        {field: 'name', width: 150, title: '名称'},
        {field: 'remarks', width: 200, title: '备注'},
    ]]
});



layui表格复选回选:https://blog.csdn.net/weixin_43992507/article/details/120068983

layui抽屉式弹框:https://blog.csdn.net/weixin_43992507/article/details/120066313

layui按钮更多选项:https://blog.csdn.net/weixin_43992507/article/details/120063112

layui日期多选:https://blog.csdn.net/weixin_43992507/article/details/114398887

layui下拉树形选项:https://fly.layui.com/extend/treeSelect/

layui select下拉跳出弹框:https://blog.csdn.net/weixin_43992507/article/details/107361042

转载大佬得 
layui表格高度自适应,layui表格取消分页_慕云枫的博客-CSDN博客_layui table取消分页

自己用于记笔记而用得 

猜你喜欢

转载自blog.csdn.net/weixin_52208686/article/details/128149794