zoneLocation order
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
813d7368f3
commit
75053618a2
|
@ -67,7 +67,7 @@ export default class Treeview extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
item.childs = newData.sort((a, b) => {
|
item.childs = newData.sort((a, b) => {
|
||||||
let priority = b.isIncluded - a.isIncluded;
|
let priority = (b.isIncluded - a.isIncluded) - 1;
|
||||||
|
|
||||||
if (b.name > a.name)
|
if (b.name > a.name)
|
||||||
priority++;
|
priority++;
|
||||||
|
|
|
@ -125,7 +125,6 @@ module.exports = Self => {
|
||||||
|
|
||||||
return priority;
|
return priority;
|
||||||
});
|
});
|
||||||
console.log(sortedLeaves);
|
|
||||||
const leaves = Object.assign([], sortedLeaves);
|
const leaves = Object.assign([], sortedLeaves);
|
||||||
|
|
||||||
nestLeaves(leaves);
|
nestLeaves(leaves);
|
||||||
|
|
Loading…
Reference in New Issue