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.
52 lines
1.5 KiB
52 lines
1.5 KiB
Demo.Face = BI.inherit(BI.Widget, { |
|
props: { |
|
baseCls: "demo-face" |
|
}, |
|
render: function () { |
|
return { |
|
type: "bi.vertical", |
|
hgap: 50, |
|
vgap: 20, |
|
items: [{ |
|
type: "bi.label", |
|
text: "栅格布局", |
|
height: 50 |
|
}, { |
|
type: "bi.lattice", |
|
columnSize: [0.1, 0.1, 0.3, 0.4, 0.1], |
|
items: [{ |
|
type: "bi.label", |
|
height: 30, |
|
text: "Left-1", |
|
cls: "layout-bg1 lattice-item", |
|
hgap: 20 |
|
}, { |
|
type: "bi.label", |
|
height: 30, |
|
text: "Left-2", |
|
cls: "layout-bg2 lattice-item", |
|
hgap: 20 |
|
}, { |
|
type: "bi.label", |
|
height: 30, |
|
text: "Left-3", |
|
cls: "layout-bg3 lattice-item", |
|
hgap: 20 |
|
}, { |
|
type: "bi.label", |
|
height: 30, |
|
text: "Left-4", |
|
cls: "layout-bg4 lattice-item", |
|
hgap: 20 |
|
}, { |
|
type: "bi.label", |
|
height: 30, |
|
text: "Left-5", |
|
cls: "layout-bg5 lattice-item", |
|
hgap: 20 |
|
}] |
|
}] |
|
} |
|
} |
|
}); |
|
$.shortcut("demo.face", Demo.Face); |