mirror of https://github.com/layui/layui
perf(treeTable): 改进 flatToTree (#1912)
* perf(treeTable): 改进 flatToTree 性能 * test: 新增 treeTable 平铺模式的测试数据 * test: 微调 treeTable 测试用例 * refactor(treeTable): 剔除多余循环,进一步优化性能 * fix: 修复一些边缘情况 --------- Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>pull/1923/head
parent
ca56d0b333
commit
21272d3510
@ -0,0 +1,33 @@
|
||||
{
|
||||
"code": 0,
|
||||
"count": 100,
|
||||
"data": [
|
||||
{
|
||||
"id":1,"name":"User-1","type":1,"status":2,"score":11,"experience":123,"sex":"女","city":"北京市","description":"-","createTime":"2016-10-14 10:00:00","parentId":null
|
||||
},
|
||||
{
|
||||
"id":2,"name":"User-2","type":1,"status":2,"score":22,"experience":456,"sex":"男","city":"上海市","description":"-","createTime":"2016-10-14 10:00:00","parentId":1
|
||||
},
|
||||
{
|
||||
"id":3,"name":"User-3","type":1,"status":2,"score":33,"experience":777,"sex":"男","city":"广州市","description":"-","createTime":"2016-10-14 10:00:00","parentId":2
|
||||
},
|
||||
{
|
||||
"id":4,"name":"User-4","type":1,"status":2,"score":44,"experience":888,"sex":"男","city":"深圳市","description":"-","createTime":"2016-10-14 10:00:00","parentId":null
|
||||
},
|
||||
{
|
||||
"id":5,"name":"User-5","type":1,"status":2,"score":55,"experience":999,"sex":"男","city":"重庆市","description":"-","createTime":"2016-10-14 10:00:00","parentId":null
|
||||
},
|
||||
{
|
||||
"id":6,"name":"User-6","type":1,"status":2,"score":66,"experience":1000,"sex":"男","city":"成都市","description":"-","createTime":"2016-10-14 10:00:00","parentId":5
|
||||
},
|
||||
{
|
||||
"id":7,"name":"User-7","type":1,"status":2,"score":77,"experience":1001,"sex":"男","city":"苏州市","description":"-","createTime":"2016-10-14 10:00:00","parentId":5
|
||||
},
|
||||
{
|
||||
"id":8,"name":"User-8","type":1,"status":2,"score":88,"experience":1002,"sex":"男","city":"杭州市","description":"-","createTime":"2016-10-14 10:00:00","parentId":null
|
||||
},
|
||||
{
|
||||
"id":9,"name":"User-9","type":1,"status":2,"score":99,"experience":1003,"sex":"男","city":"武汉市","description":"-","createTime":"2016-10-14 10:00:00","parentId":null
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in new issue