最主要的几个字段:parentId,children,isParent 是组件展示必须存在的
{
"code": 0,
"count": 1000,
"data": [
{
"id": 1,
"name": "User-1",
"type": 4,
"status": 2,
"score": 28,
"experience": 54981,
"sex": "男",
"city": "丽江市",
"description": "-",
"createTime": "2014-06-04 12:29:55",
"parentId": null,
"children": [
{
"id": 2,
"name": "User-2",
"type": 2,
"status": 3,
"score": 75,
"experience": 43884,
"sex": "女",
"city": "大理白族自治州",
"description": "-",
"createTime": "1971-11-03 19:15:43",
"parentId": null,
"children": [
&n

本文展示了Layui树形表格(treeTable)的数据格式,包括关键字段如parentId、children和isParent的含义。数据中包含多级嵌套的用户信息,如id、name、type、status等详细属性,可用于构建层级展示的前端表格。
最低0.47元/天 解锁文章
2802

被折叠的 条评论
为什么被折叠?



