Browse Source

支持传chooseType

master
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",
isDefaultInit: false,
items: [],
itemsCreator: BI.emptyFn
itemsCreator: BI.emptyFn,
chooseType: BI.Selection.Single
});
},
@ -89,7 +90,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
el: {
type: "bi.button_tree",
chooseType: BI.Selection.Single,
chooseType: o.chooseType,
layouts: [{
type: "bi.vertical"
}]
@ -107,7 +108,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
element: this,
scrollable: true,
items: [this.tree]
})
});
},
populate: function (nodes) {

Loading…
Cancel
Save