Browse Source

支持传chooseType

es6
Dailer 6 years ago
parent
commit
463675cb92
  1. 7
      src/widget/multilayersingletree/multilayersingletree.leveltree.js

7
src/widget/multilayersingletree/multilayersingletree.leveltree.js

@ -10,7 +10,8 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
baseCls: "bi-multilayer-single-level-tree", baseCls: "bi-multilayer-single-level-tree",
isDefaultInit: false, isDefaultInit: false,
items: [], items: [],
itemsCreator: BI.emptyFn itemsCreator: BI.emptyFn,
chooseType: BI.Selection.Single
}); });
}, },
@ -89,7 +90,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.button_tree", type: "bi.button_tree",
chooseType: BI.Selection.Single, chooseType: o.chooseType,
layouts: [{ layouts: [{
type: "bi.vertical" type: "bi.vertical"
}] }]
@ -107,7 +108,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
element: this, element: this,
scrollable: true, scrollable: true,
items: [this.tree] items: [this.tree]
}) });
}, },
populate: function (nodes) { populate: function (nodes) {

Loading…
Cancel
Save