Browse Source

无JIRA任务 单选树不选的处理

es6
windy 4 years ago
parent
commit
8f64e50013
  1. 2
      src/widget/multilayerselecttree/multilayerselecttree.leveltree.js
  2. 2
      src/widget/multilayersingletree/multilayersingletree.leveltree.js

2
src/widget/multilayerselecttree/multilayerselecttree.leveltree.js

@ -113,7 +113,7 @@ BI.MultiLayerSelectLevelTree = BI.inherit(BI.Pane, {
isDefaultInit: o.itemsCreator !== BI.emptyFn,
el: {
type: "bi.button_tree",
chooseType: BI.Selection.Default, // 不使用buttontree内部getValue逻辑
chooseType: o.chooseType === BI.Selection.None ? BI.Selection.None : BI.Selection.Default, // 不使用buttontree内部getValue逻辑
behaviors: o.behaviors,
layouts: [{
type: "bi.vertical"

2
src/widget/multilayersingletree/multilayersingletree.leveltree.js

@ -112,7 +112,7 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Pane, {
isDefaultInit: o.itemsCreator !== BI.emptyFn,
el: {
type: "bi.button_tree",
chooseType: BI.Selection.Default, // 不使用buttontree内部getValue逻辑
chooseType: o.chooseType === BI.Selection.None ? BI.Selection.None : BI.Selection.Default, // 不使用buttontree内部getValue逻辑
behaviors: o.behaviors,
layouts: [{
type: "bi.vertical"

Loading…
Cancel
Save