Browse Source

更新 treeTable 用例

pull/1368/head
贤心 1 year ago
parent
commit
f00403e2a9
  1. 7
      examples/treeTable.html

7
examples/treeTable.html

@ -13,6 +13,12 @@
<table class="layui-hide" id="test"></table> <table class="layui-hide" id="test"></table>
<script type="text/html" id="TPL-treeTable-demo">
<div class="layui-btn-container">
<button class="layui-btn layui-btn-sm" lay-event="getChecked">获取选中数据</button>
</div>
</script>
<script src="../src/layui.js"></script> <script src="../src/layui.js"></script>
<script> <script>
layui.use(['treeTable'], function(){ layui.use(['treeTable'], function(){
@ -23,6 +29,7 @@ layui.use(['treeTable'], function(){
elem: '#test', elem: '#test',
url: './json/treeTable/demo-1.json', url: './json/treeTable/demo-1.json',
maxHeight: 'full-32', maxHeight: 'full-32',
toolbar: '#TPL-treeTable-demo',
tree: { tree: {
customName: { customName: {
name: 'name' name: 'name'

Loading…
Cancel
Save