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.
|
|
|
import { shortcut, Widget } from "@/core";
|
|
|
|
|
|
|
|
@shortcut()
|
|
|
|
export class FloatCenterLayout extends Widget {
|
|
|
|
static xtype = "demo.float_center";
|
|
|
|
|
|
|
|
props = { baseCls: "demo-float-center" };
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return {
|
|
|
|
type: "bi.float_center",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: "bi.label",
|
|
|
|
text: "floatCenter与center的不同在于,它可以控制最小宽度和最大宽度",
|
|
|
|
cls: "layout-bg1",
|
|
|
|
whiteSpace: "normal",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "bi.label",
|
|
|
|
text: "浮动式的中间布局",
|
|
|
|
cls: "layout-bg2",
|
|
|
|
whiteSpace: "normal",
|
|
|
|
}
|
|
|
|
],
|
|
|
|
hgap: 20,
|
|
|
|
vgap: 20,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|