forked from fanruan/fineui
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, { |
Demo.Func = BI.inherit(BI.Widget, { |
||||||
props: { |
props: { |
||||||
baseCls: "demo-func" |
baseCls: "demo-func", |
||||||
}, |
}, |
||||||
|
|
||||||
render: function () { |
render: function () { |
||||||
BI.createWidget({ |
BI.createWidget({ |
||||||
type: "bi.vertical", |
type: "bi.horizontal", |
||||||
element: this, |
element: this, |
||||||
vgap: 20, |
vgap: 20, |
||||||
hgap: 30, |
hgap: 30, |
||||||
items: [{ |
items: [{ |
||||||
type: "bi.segment", |
type: "bi.segment", |
||||||
items: [{ |
items: [{ |
||||||
text: "1", |
text: "较长的选项1", |
||||||
value: 1 |
value: 1, |
||||||
}, { |
}, { |
||||||
text: "2", |
text: "选项2", |
||||||
value: 2 |
value: 2, |
||||||
}, { |
}, { |
||||||
text: "3", |
text: "选项3", |
||||||
value: 3 |
value: 3, |
||||||
}] |
}], |
||||||
}] |
}], |
||||||
}); |
}); |
||||||
} |
}, |
||||||
}); |
}); |
||||||
BI.shortcut("demo.segment", Demo.Func); |
BI.shortcut("demo.segment", Demo.Func); |
Loading…
Reference in new issue