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.
21 lines
535 B
21 lines
535 B
7 years ago
|
/**
|
||
|
* Created by User on 2017/3/22.
|
||
|
*/
|
||
|
Demo.HorizontalFloat = BI.inherit(BI.Widget, {
|
||
|
props: {
|
||
|
baseCls: "demo-horizontal-float"
|
||
|
},
|
||
|
|
||
|
render: function () {
|
||
|
return {
|
||
|
type: "bi.horizontal_float",
|
||
|
items: [{
|
||
|
type: "bi.label",
|
||
|
text: "浮动式水平居中布局方案,用于宽度未知的情况",
|
||
|
cls: "layout-bg1",
|
||
|
height: 30
|
||
|
}]
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
BI.shortcut("demo.horizontal_float", Demo.HorizontalFloat);
|