Table tree support sort
This commit is contained in:
parent
3c9452ef2a
commit
a5acce4b81
3 changed files with 61 additions and 17 deletions
|
@ -998,6 +998,11 @@
|
|||
}
|
||||
}
|
||||
});
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
if (data[i].children && data[i].children.length) {
|
||||
data[i].children = this.sortData(data[i].children, type, index);
|
||||
}
|
||||
}
|
||||
return data;
|
||||
},
|
||||
handleSort (_index, type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue