mirror of https://github.com/layui/layui
更新 table 示例
parent
68e334db78
commit
59d497b808
|
@ -160,6 +160,7 @@ layui.use(['table', 'dropdown'], function(){
|
||||||
,{field:'username', title:'用户名', width:120, edit: function(d){
|
,{field:'username', title:'用户名', width:120, edit: function(d){
|
||||||
return !d.LAY_DISABLED;
|
return !d.LAY_DISABLED;
|
||||||
}, templet: '#usernameTpl'}
|
}, templet: '#usernameTpl'}
|
||||||
|
,{field:'xxx', title:'测试', edit: 'text'}
|
||||||
,{field:'email', minWidth: 160, maxWidth: 320, title:'邮箱 <i class="layui-icon layui-icon-email"></i>', fieldTitle: '邮箱', hide: 0, edit: 'text', templet: function(d){
|
,{field:'email', minWidth: 160, maxWidth: 320, title:'邮箱 <i class="layui-icon layui-icon-email"></i>', fieldTitle: '邮箱', hide: 0, edit: 'text', templet: function(d){
|
||||||
return '<em>'+ layui.util.escape(d.email) +'</em>'
|
return '<em>'+ layui.util.escape(d.email) +'</em>'
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue