mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
fix: 取消buttongroupselect默认值展示条件限制 & 配置badge情况下按钮平铺无法自适应
This commit is contained in:
parent
5fd26a866e
commit
5d57682580
@ -133,8 +133,7 @@ export class ButtonGroupControlPlugin extends BasePlugin {
|
||||
getSchemaTpl('multiple'),
|
||||
getSchemaTpl('valueFormula', {
|
||||
rendererSchema: (schema: Schema) => schema,
|
||||
useSelectMode: true, // 改用 Select 设置模式
|
||||
visibleOn: 'this.options && this.options.length > 0'
|
||||
useSelectMode: true
|
||||
}),
|
||||
getSchemaTpl('description')
|
||||
]
|
||||
|
@ -149,8 +149,12 @@
|
||||
display: flex;
|
||||
|
||||
.#{$ns}Button,
|
||||
.#{$ns}ButtonGroup {
|
||||
.#{$ns}ButtonGroup,
|
||||
.#{$ns}Badge {
|
||||
flex-grow: 1;
|
||||
text-align: center;
|
||||
.#{$ns}Button {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user