Table tree support sort

This commit is contained in:
梁灏 2020-01-08 21:13:57 +08:00
parent 3c9452ef2a
commit a5acce4b81
3 changed files with 61 additions and 17 deletions

View file

@ -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) {