data children is uncertain, and js functions deal with data separately, just like changing name to tile,value to key,
if the children array is empty, then output isLeaf:true, otherwise, continue to cycle to change the subitems
to solve.
the data structure is as follows
list = [
{
name: "0",
value: "0",
children: [
name: "0-1",
value: "0-1",
children: [
name: "0-2",
value: "0-2",
children: [
// ...
],
// ...
]
]
},
];