selectedList method
获取当前节点的所有选中的子节点,支持 more 类型
Implementation
List<SelectionEntity> selectedList() {
if (SelectionFilterType.more == filterType) {
return selectedLastColumnList();
} else {
List<SelectionEntity> results = [];
List<SelectionEntity> firstColumn =
SelectionUtil.currentSelectListForEntity(this);
results.addAll(firstColumn);
if (firstColumn.isNotEmpty) {
for (SelectionEntity firstEntity in firstColumn) {
List<SelectionEntity> secondColumn =
SelectionUtil.currentSelectListForEntity(firstEntity);
results.addAll(secondColumn);
if (secondColumn.isNotEmpty) {
for (SelectionEntity secondEntity in secondColumn) {
List<SelectionEntity> thirdColumn =
SelectionUtil.currentSelectListForEntity(secondEntity);
results.addAll(thirdColumn);
}
}
}
}
return results;
}
}