Browse Source

docs(table): 更正示例的合计行模板选项名

pull/1903/head
贤心 6 months ago
parent
commit
5f4a64bbdb
  1. 4
      docs/table/examples/demo.md

4
docs/table/examples/demo.md

@ -71,7 +71,7 @@ layui.use(['table', 'dropdown'], function(){
page: true, page: true,
cols: [[ cols: [[
{type: 'checkbox', fixed: 'left'}, {type: 'checkbox', fixed: 'left'},
{field:'id', fixed: 'left', width:80, title: 'ID', sort: true, totalRowText: '合计:'}, {field:'id', fixed: 'left', width:80, title: 'ID', sort: true, totalRow: '合计:'},
{field:'username', width:80, title: '用户'}, {field:'username', width:80, title: '用户'},
{field:'email', title:'邮箱 <i class="layui-icon layui-icon-tips layui-font-14" lay-event="email-tips" title="该字段开启了编辑功能" style="margin-left: 5px;"></i>', fieldTitle: '邮箱', hide: 0, width:150, expandedMode: 'tips', edit: 'text'}, {field:'email', title:'邮箱 <i class="layui-icon layui-icon-tips layui-font-14" lay-event="email-tips" title="该字段开启了编辑功能" style="margin-left: 5px;"></i>', fieldTitle: '邮箱', hide: 0, width:150, expandedMode: 'tips', edit: 'text'},
{field:'sex', width:80, title: '性别', sort: true}, {field:'sex', width:80, title: '性别', sort: true},
@ -161,7 +161,7 @@ layui.use(['table', 'dropdown'], function(){
/*{{! /*{{!
cols: [[ // 重置表头 cols: [[ // 重置表头
{type: 'checkbox', fixed: 'left'}, {type: 'checkbox', 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, totalRow: '合计:'},
{field:'sex', title:'性别', width:80, edit: 'text', sort: true}, {field:'sex', title:'性别', width:80, edit: 'text', sort: true},
{field:'experience', title:'积分', width:80, sort: true, totalRow: true, templet: '<div>{{= d.experience }} 分</div>'}, {field:'experience', title:'积分', width:80, sort: true, totalRow: true, templet: '<div>{{= d.experience }} 分</div>'},
{field:'logins', title:'登入次数', width:100, sort: true, totalRow: true}, {field:'logins', title:'登入次数', width:100, sort: true, totalRow: true},

Loading…
Cancel
Save