|
|
@ -30,27 +30,10 @@ BI.SelectTreePopup = BI.inherit(BI.Pane, { |
|
|
|
|
|
|
|
|
|
|
|
extend.type = "bi.tree_node"; |
|
|
|
extend.type = "bi.tree_node"; |
|
|
|
extend.selectable = true; |
|
|
|
extend.selectable = true; |
|
|
|
// if (i === nodes.length - 1) {
|
|
|
|
|
|
|
|
// extend.type = "bi.select_tree_last_plus_group_node";
|
|
|
|
|
|
|
|
// extend.isLastNode = true;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (i === 0 && !pNode) {
|
|
|
|
|
|
|
|
// extend.type = "bi.select_tree_first_plus_group_node";
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (i === 0 && i === nodes.length - 1) { // 根
|
|
|
|
|
|
|
|
// extend.type = "bi.select_tree_plus_group_node";
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
BI.defaults(node, extend); |
|
|
|
BI.defaults(node, extend); |
|
|
|
self._formatItems(node.children, layer + 1, node); |
|
|
|
self._formatItems(node.children, layer + 1, node); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
extend.type = "bi.tree_item"; |
|
|
|
extend.type = "bi.tree_item"; |
|
|
|
// extend.type = "bi.mid_tree_leaf_item";
|
|
|
|
|
|
|
|
// if (i === 0 && !pNode) {
|
|
|
|
|
|
|
|
// extend.type = "bi.first_tree_leaf_item";
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (i === nodes.length - 1) {
|
|
|
|
|
|
|
|
// extend.type = "bi.last_tree_leaf_item";
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
BI.defaults(node, extend); |
|
|
|
BI.defaults(node, extend); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|