This commit is contained in:
贤心
2018-11-01 02:50:21 +08:00
parent 25448460a8
commit 63ae12f3cb
35 changed files with 99 additions and 66 deletions

View File

@@ -191,7 +191,7 @@ layui.use('table', function(){
,toolbar: '#toolbarDemo'
//,defaultToolbar: ['filter']
,cols: [[
{type: 'radio', fixed: 'left'}
{type: 'checkbox', fixed: 'left'}
,{field:'id', title:'ID', width:80, fixed: 'left', unresize: true, sort: true, totalRowText: '合计:'}
,{field:'username', title:'用户名', hide: true, width:120, edit: 'text', templet: '#usernameTpl'}
,{field:'email', title:'邮箱', hide: true, width:150, edit: 'text', templet: function(x){
@@ -248,6 +248,13 @@ layui.use('table', function(){
break;
};
});
table.on('row(test)', function(obj){
console.log(obj);
//layer.closeAll('tips');
});
table.render({
elem: '#test2'