表格插件
插件使用用bootstrap-table 1.16.0,文档地址:https://www.bootstrap-table.com.cn,github地址:https://github.com/wenzhixin/bootstrap-table。
因x-editable不支持bootstrap v4版本,这里暂时放弃x-editable进行行内编辑。导出需要配合bootstrap-table-export.min.js、TableExport。
当你使用bootstrap-table时,如果你的列表需要用到复选框,请确保复选框的字段名称在当前页面是唯一的。
因为插件的复选框已做修改成自定义的,需要
input
的 id
属性配合实现。
{ field: 'example', // 设置的该字段名称,需保证页面唯一 checkbox: true // 是否显示复选框 }
TreeGrid使用