fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

8 years ago
/**
* Created by User on 2017/3/21.
*/
Demo.Horizontal = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-horizontal"
},
render: function () {
return {
7 years ago
type: "bi.horizontal",
8 years ago
items: [{
7 years ago
type: "bi.label",
7 years ago
whiteSpace: "normal",
text: "因为大多数场景下都需要垂直居中,所以这个布局一般会被vertical_adapt布局设置scrollx=true取代",
7 years ago
cls: "layout-bg3",
7 years ago
width: 500,
height: 50
}, {
type: "bi.label",
text: "水平布局",
cls: "layout-bg4",
7 years ago
width: 300,
height: 30
}, {
type: "bi.label",
text: "水平布局",
7 years ago
cls: "layout-bg5",
width: 300,
height: 30
}, {
type: "bi.label",
text: "水平布局",
cls: "layout-bg6",
7 years ago
width: 300,
height: 30
}]
8 years ago
}
}
});
8 years ago
BI.shortcut("demo.horizontal", Demo.Horizontal);