mirror of https://github.com/layui/layui
更新 table 示例
parent
0e8dbaa183
commit
01cf9117c0
|
@ -7,6 +7,7 @@
|
||||||
<link rel="stylesheet" href="../src/css/layui.css">
|
<link rel="stylesheet" href="../src/css/layui.css">
|
||||||
<style>
|
<style>
|
||||||
body{padding: 32px; /*overflow-y: scroll;*/}
|
body{padding: 32px; /*overflow-y: scroll;*/}
|
||||||
|
.layui-table-view{margin: 8px 0;}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -157,14 +158,14 @@ layui.use('table', function(){
|
||||||
elem: '#test'
|
elem: '#test'
|
||||||
,url: 'json/table/demo1.json'
|
,url: 'json/table/demo1.json'
|
||||||
//,contentType: 'application/json' // 参数为 json 格式传递
|
//,contentType: 'application/json' // 参数为 json 格式传递
|
||||||
,page: !0 || { //详细参数可参考 laypage 组件文档
|
,page: !1 ? false : { // 详细参数可参考 laypage 组件文档
|
||||||
curr: 5
|
curr: 5
|
||||||
,groups: 1
|
,groups: 1
|
||||||
,first: false
|
,first: false
|
||||||
,last: false
|
,last: false
|
||||||
,layout: ['limit', 'prev', 'page', 'next', 'count'] //自定义分页布局
|
,layout: ['limit', 'prev', 'page', 'next', 'count'] //自定义分页布局
|
||||||
}
|
}
|
||||||
//,height: 300
|
,height: 300
|
||||||
,cellMinWidth: 80
|
,cellMinWidth: 80
|
||||||
//,skin: 'line'
|
//,skin: 'line'
|
||||||
//,size: 'lg'
|
//,size: 'lg'
|
||||||
|
|
Loading…
Reference in New Issue