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.

165 lines
4.8 KiB

import { shortcut, Widget, createItems } from "@/core";
8 years ago
@shortcut()
export class TableLayout extends Widget {
static xtype = "demo.table_layout";
props = { baseCls: "demo-table-layout" };
_createTable1() {
8 years ago
return {
type: "bi.table",
items: createItems(
8 years ago
[
[
{
el: {
cls: "layout-bg1",
},
},
{
el: {
cls: "layout-bg2",
},
},
{
el: {
cls: "layout-bg3",
},
}
],
[
{
el: {
cls: "layout-bg4",
},
},
{
el: {
cls: "layout-bg5",
},
},
{
el: {
cls: "layout-bg6",
},
}
],
[
{
el: {
cls: "layout-bg7",
},
},
{
el: {
cls: "layout-bg8",
},
},
{
el: {
cls: "layout-bg1",
},
}
],
[
{
el: {
cls: "layout-bg2",
},
},
{
el: {
cls: "layout-bg3",
},
},
{
el: {
cls: "layout-bg4",
},
}
],
[
{
el: {
cls: "layout-bg5",
},
},
{
el: {
cls: "layout-bg6",
},
},
{
el: {
cls: "layout-bg7",
},
}
],
[
{
el: {
cls: "layout-bg8",
},
},
{
el: {
cls: "layout-bg1",
},
},
{
el: {
cls: "layout-bg2",
},
}
],
[
{
el: {
cls: "layout-bg6",
},
},
{
el: {
cls: "layout-bg7",
},
},
{
el: {
cls: "layout-bg8",
},
}
]
8 years ago
],
{
type: "bi.layout",
}
),
8 years ago
columnSize: [100, "fill", 200],
rowSize: [10, 30, 50, 70, 90, 110, 130],
hgap: 20,
vgap: 10,
7 years ago
};
}
7 years ago
render() {
8 years ago
return {
type: "bi.grid",
columns: 1,
rows: 1,
items: [
{
column: 0,
row: 0,
el: this._createTable1(),
8 years ago
}
7 years ago
// , {
8 years ago
// column: 0,
// row: 1,
// el: this._createTable2()
7 years ago
// }
],
7 years ago
};
8 years ago
}
}