mirror of https://github.com/layui/layui
docs(table-demo): 更新文档 (#2197)
* docs(table-demo): 更新文档 将表头属性 toolbar 替换为等效属性 templet 新版本的表头属性介绍文档中已经移除了关于 toolbar 的介绍 * Update docs/table/examples/demo.md * Update docs/table/examples/demo.md --------- Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>pull/2203/head
parent
81e0feacac
commit
dc6250f0c3
|
@ -36,7 +36,7 @@
|
||||||
</div>
|
</div>
|
||||||
!}}</script>
|
!}}</script>
|
||||||
|
|
||||||
<script type="text/html" id="barDemo">
|
<script type="text/html" id="toolDemo">
|
||||||
<div class="layui-clear-space">
|
<div class="layui-clear-space">
|
||||||
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
|
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
|
||||||
<a class="layui-btn layui-btn-xs" lay-event="more">
|
<a class="layui-btn layui-btn-xs" lay-event="more">
|
||||||
|
@ -83,7 +83,7 @@ layui.use(['table', 'dropdown'], function(){
|
||||||
{field:'checkin', title:'打卡', width: 100, sort: true, totalRow: '{{!{{= parseInt(d.TOTAL_NUMS) }} 次!}}'},
|
{field:'checkin', title:'打卡', width: 100, sort: true, totalRow: '{{!{{= parseInt(d.TOTAL_NUMS) }} 次!}}'},
|
||||||
{field:'ip', title:'IP', width: 120},
|
{field:'ip', title:'IP', width: 120},
|
||||||
{field:'joinTime', title:'加入时间', width: 120},
|
{field:'joinTime', title:'加入时间', width: 120},
|
||||||
{fixed: 'right', title:'操作', width: 134, minWidth: 125, toolbar: '#barDemo'}
|
{fixed: 'right', title:'操作', width: 134, minWidth: 125, templet: '#toolDemo'}
|
||||||
]],
|
]],
|
||||||
done: function(){
|
done: function(){
|
||||||
var id = this.id;
|
var id = this.id;
|
||||||
|
|
Loading…
Reference in New Issue