Browse Source

更新 table 用例

pull/1431/head
贤心 1 year ago
parent
commit
b92932c891
  1. 6
      examples/table-test.html

6
examples/table-test.html

@ -75,7 +75,9 @@
</div> </div>
</script> </script>
<table id="test"></table> <div id="parent" style="height: 520px;">
<table id="test"></table>
</div>
<script src="../src/layui.js"></script> <script src="../src/layui.js"></script>
<script> <script>
@ -121,7 +123,7 @@ layui.use(['table', 'dropdown'], function(){
// 渲染 // 渲染
window.ins1 = table.render({ window.ins1 = table.render({
elem: '#test', elem: '#test',
height: 520, height: '#parent-0',
// width: 600, // width: 600,
title: '用户数据表', title: '用户数据表',
url: 'json/table/demo1.json', url: 'json/table/demo1.json',

Loading…
Cancel
Save