Browse Source
Merge in VISUAL/fineui from ~ZHENFEI.LI/fineui:master to master * commit 'b5bdace1fbbd6ee371dac0708a62e5240d21368c': KERNEL-13521 refactor: segment调整&行列布局的类名方法抽到layout上 KERNEL-13521 refactor: segment使用grid布局,使其默认使用最长项宽度等分es6
Zhenfei.Li-李振飞
2 years ago
8 changed files with 109 additions and 141 deletions
@ -1,28 +1,28 @@
|
||||
Demo.Func = BI.inherit(BI.Widget, { |
||||
props: { |
||||
baseCls: "demo-func" |
||||
baseCls: "demo-func", |
||||
}, |
||||
|
||||
render: function () { |
||||
BI.createWidget({ |
||||
type: "bi.vertical", |
||||
type: "bi.horizontal", |
||||
element: this, |
||||
vgap: 20, |
||||
hgap: 30, |
||||
items: [{ |
||||
type: "bi.segment", |
||||
items: [{ |
||||
text: "1", |
||||
value: 1 |
||||
text: "较长的选项1", |
||||
value: 1, |
||||
}, { |
||||
text: "2", |
||||
value: 2 |
||||
text: "选项2", |
||||
value: 2, |
||||
}, { |
||||
text: "3", |
||||
value: 3 |
||||
}] |
||||
}] |
||||
text: "选项3", |
||||
value: 3, |
||||
}], |
||||
}], |
||||
}); |
||||
} |
||||
}, |
||||
}); |
||||
BI.shortcut("demo.segment", Demo.Func); |
||||
BI.shortcut("demo.segment", Demo.Func); |
||||
|
Loading…
Reference in new issue