Browse Source

更新 table 用例

pull/1395/head
贤心 1 year ago
parent
commit
ff37f1e0d4
  1. 2
      examples/table-test.html

2
examples/table-test.html

@ -161,7 +161,7 @@ layui.use(['table', 'dropdown'], function(){
{type: 'checkbox', fixed: 'left'}, {type: 'checkbox', fixed: 'left'},
// {type: 'numbers', fixed: 'left'}, // {type: 'numbers', fixed: 'left'},
{field:'id', title:'ID', width:80, fixed: 'left', unresize: true, sort: true, totalRowText: '合计:'}, {field:'id', title:'ID', width:80, fixed: 'left', unresize: true, sort: true, totalRowText: '合计:'},
{field:'username', expandedStyle: 'tips', title:'用户名 <i class="layui-icon layui-icon-username" lay-event="username"></i>', width:120, edit: function(d){ {field:'username', ignoreExport: false, expandedStyle: 'tips', title:'用户名 <i class="layui-icon layui-icon-username" lay-event="username"></i>', width:120, edit: function(d){
return !d.LAY_DISABLED; return !d.LAY_DISABLED;
}, templet: '#usernameTpl'}, }, templet: '#usernameTpl'},
{field:'xxx', title:'测试', edit: 'text'}, {field:'xxx', title:'测试', edit: 'text'},

Loading…
Cancel
Save