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.
36 lines
924 B
36 lines
924 B
import { shortcut, Widget, createWidget } from "@/core"; |
|
|
|
@shortcut() |
|
export class Func extends Widget { |
|
static xtype = "demo.segment"; |
|
|
|
props = { baseCls: "demo-func" }; |
|
|
|
render() { |
|
createWidget({ |
|
type: "bi.horizontal", |
|
element: this, |
|
vgap: 20, |
|
hgap: 30, |
|
items: [ |
|
{ |
|
type: "bi.segment", |
|
items: [ |
|
{ |
|
text: "较长的选项1", |
|
value: 1, |
|
}, |
|
{ |
|
text: "选项2", |
|
value: 2, |
|
}, |
|
{ |
|
text: "选项3", |
|
value: 3, |
|
} |
|
], |
|
} |
|
], |
|
}); |
|
} |
|
}
|
|
|