forked from fanruan/fineui
woodyjang
7 years ago
9 changed files with 147 additions and 17 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,32 @@ |
|||||||
|
/** |
||||||
|
* Created by GUY on 2016/5/7. |
||||||
|
* @class BI.LayerTreeTableCell |
||||||
|
* @extends BI.Single |
||||||
|
*/ |
||||||
|
BI.LayerTreeTableCell = BI.inherit(BI.Widget, { |
||||||
|
_defaultConfig: function () { |
||||||
|
return BI.extend(BI.LayerTreeTableCell.superclass._defaultConfig.apply(this, arguments), { |
||||||
|
baseCls: "bi-layer-tree-table-cell", |
||||||
|
layer: 0, |
||||||
|
text: "" |
||||||
|
}) |
||||||
|
}, |
||||||
|
|
||||||
|
_init: function () { |
||||||
|
BI.LayerTreeTableCell.superclass._init.apply(this, arguments); |
||||||
|
var o = this.options; |
||||||
|
BI.createWidget({ |
||||||
|
type: "bi.label", |
||||||
|
element: this.element, |
||||||
|
textAlign: "left", |
||||||
|
whiteSpace: "nowrap", |
||||||
|
height: o.height, |
||||||
|
text: o.text, |
||||||
|
value: o.value, |
||||||
|
lgap: 5 + 30 * o.layer, |
||||||
|
rgap: 5 |
||||||
|
}) |
||||||
|
} |
||||||
|
}); |
||||||
|
|
||||||
|
BI.shortcut("bi.layer_tree_table_cell", BI.LayerTreeTableCell); |
Loading…
Reference in new issue