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 Segments extends Widget {
|
|
|
|
static xtype = "demo.segments";
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return {
|
|
|
|
type: "bi.vertical",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: "bi.label",
|
|
|
|
height: 30,
|
|
|
|
text: "默认风格",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "bi.segment",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: "tab1",
|
|
|
|
value: 1,
|
|
|
|
selected: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "tab2",
|
|
|
|
value: 2,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "tab3 disabled",
|
|
|
|
disabled: true,
|
|
|
|
value: 3,
|
|
|
|
}
|
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
hgap: 50,
|
|
|
|
vgap: 20,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|