优化 table 用例

This commit is contained in:
贤心 2023-11-29 16:52:19 +08:00
parent cd24e1cde4
commit b945f7a3df

View File

@ -168,7 +168,7 @@ layui.use(['table', 'dropdown'], function(){
}, templet: '#usernameTpl'},
{field:'xxx', title:'测试', edit: 'text'},
{field:'email', minWidth: 160, maxWidth: 320, title:'邮箱 <i class="layui-icon layui-icon-email" lay-event="email"></i>', fieldTitle: '邮箱', hide: 0, edit: 'text', style: 'background-color: #fafafa; color: red;', templet: function(d){
return '<em>'+ layui.util.escape(d.email) +'</em>'
return '<em>'+ layui.util.escape(d.email) +'</em>'
}},
{field:'sex', title:'性别', width:80, edit: 'text', sort: true, escape: false},
{field:'city', title:'城市', width:120, templet: '#cityTpl', exportTemplet: function(d, obj){