Browse Source

Pull request #3183: 无JIRA任务 bugfix

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '28ca2fee2a2e6f095b4dd106c7943863510a4ba6':
  bugfix
es6
guy-王川 2 years ago
parent
commit
b6b2ebd678
  1. 25
      src/case/layer/panel.js

25
src/case/layer/panel.js

@ -11,22 +11,21 @@ BI.Panel = BI.inherit(BI.Widget, {
titleHeight: 30, titleHeight: 30,
titleButtons: [], titleButtons: [],
el: {}, el: {},
logic: { // logic: {
dynamic: false // dynamic: false
} // }
}); });
}, },
_init: function () { render: function () {
BI.Panel.superclass._init.apply(this, arguments); BI.Panel.superclass._init.apply(this, arguments);
var o = this.options; var o = this.options;
BI.createWidget(BI.extend({ return {
element: this type: "bi.vertical_fill",
}, BI.LogicFactory.createLogic("vertical", BI.extend(o.logic, { rowSize: ["", "fill"],
items: BI.LogicFactory.createLogicItemsByDirection("top", this._createTitle() items: [this._createTitle(), this.options.el]
, this.options.el) };
}))));
}, },
_createTitle: function () { _createTitle: function () {
@ -56,7 +55,7 @@ BI.Panel = BI.inherit(BI.Widget, {
}); });
return { return {
el: { // el: {
type: "bi.left_right_vertical_adapt", type: "bi.left_right_vertical_adapt",
cls: "panel-title bi-header-background bi-border-bottom", cls: "panel-title bi-header-background bi-border-bottom",
height: BI.toPix(o.titleHeight, 1), height: BI.toPix(o.titleHeight, 1),
@ -66,8 +65,8 @@ BI.Panel = BI.inherit(BI.Widget, {
}, },
lhgap: 10, lhgap: 10,
rhgap: 10 rhgap: 10
}, // },
height: BI.toPix(o.titleHeight, 1) // height: BI.toPix(o.titleHeight, 1)
}; };
}, },

Loading…
Cancel
Save