更新 treeTable 测试用例

This commit is contained in:
贤心
2023-08-15 21:27:22 +08:00
parent ac6d0ddb76
commit a2aabef0de

View File

@@ -23,6 +23,14 @@ layui.use(['treeTable'], function(){
elem: '#test',
url: './json/treeTable/demo-1.json',
maxHeight: 'full-32',
tree: {
customName: {
name: 'name'
},
view: {
iconLeaf: ''
}
},
cols: [[
{type: 'checkbox', fixed: 'left'},
{type: 'numbers', fixed: 'left'},
@@ -33,7 +41,7 @@ layui.use(['treeTable'], function(){
{field: 'score', title: '评分', width: 80, sort: true},
{field: 'city', title: '城市', width: 150},
{field: 'description', title: '描述', minWidth: 200},
{field: 'createTime', title: '创建时间', width: 170, fixed: 'right'},
{field: 'createTime', title: '创建时间', width: 170, fixed: 'right'}
]],
page: true
});