fineui是帆软报表和BI产品线所使用的前端框架。

27 lines
771 B

8 years ago
/**
* Created by User on 2017/3/22.
*/
Demo.FloatCenterLayout = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-float-center"
},
render: function () {
return {
type: "bi.float_center",
items: [{
type: "bi.label",
text: "floatCenter与center的不同在于,它可以控制最小宽度和最大宽度",
cls: "layout-bg1",
whiteSpace: "normal"
}, {
type: "bi.label",
7 years ago
text: "浮动式的中间布局",
8 years ago
cls: "layout-bg2",
whiteSpace: "normal"
}],
hgap: 20,
vgap: 20
7 years ago
};
8 years ago
}
});
8 years ago
BI.shortcut("demo.float_center", Demo.FloatCenterLayout);