|
|
@ -1,7 +1,6 @@ |
|
|
|
BI.RootTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
BI.RootTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
_defaultConfig: function () { |
|
|
|
props: { |
|
|
|
return BI.extend(BI.RootTreeLeafItem.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-root-tree-leaf-item bi-list-item-active", |
|
|
|
extraCls: "bi-root-tree-leaf-item bi-list-item-active", |
|
|
|
|
|
|
|
logic: { |
|
|
|
logic: { |
|
|
|
dynamic: false |
|
|
|
dynamic: false |
|
|
|
}, |
|
|
|
}, |
|
|
@ -9,13 +8,16 @@ BI.RootTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
pId: "", |
|
|
|
pId: "", |
|
|
|
layer: 0, |
|
|
|
layer: 0, |
|
|
|
height: 24 |
|
|
|
height: 24 |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
_init: function () { |
|
|
|
|
|
|
|
BI.RootTreeLeafItem.superclass._init.apply(this, arguments); |
|
|
|
render: function () { |
|
|
|
|
|
|
|
var self = this; |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
this.text = BI.createWidget({ |
|
|
|
var text = { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
ref: function (_ref) { |
|
|
|
|
|
|
|
self.text = _ref; |
|
|
|
|
|
|
|
}, |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
whiteSpace: "nowrap", |
|
|
|
whiteSpace: "nowrap", |
|
|
|
textHeight: o.height, |
|
|
|
textHeight: o.height, |
|
|
@ -25,7 +27,8 @@ BI.RootTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py, |
|
|
|
py: o.py, |
|
|
|
keyword: o.keyword |
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left); |
|
|
|
var type = BI.LogicFactory.createLogicTypeByDirection(BI.Direction.Left); |
|
|
|
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, { |
|
|
|
var items = BI.LogicFactory.createLogicItemsByDirection(BI.Direction.Left, { |
|
|
|
width: 24, |
|
|
|
width: 24, |
|
|
@ -35,13 +38,12 @@ BI.RootTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
height: o.height |
|
|
|
height: o.height |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
el: this.text |
|
|
|
el: text |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.createWidget(BI.extend({ |
|
|
|
|
|
|
|
element: this |
|
|
|
return BI.LogicFactory.createLogic(type, BI.extend(o.logic, { |
|
|
|
}, BI.LogicFactory.createLogic(type, BI.extend(o.logic, { |
|
|
|
|
|
|
|
items: items |
|
|
|
items: items |
|
|
|
})))); |
|
|
|
})); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
doRedMark: function () { |
|
|
|