fix: 取消buttongroupselect默认值展示条件限制 & 配置badge情况下按钮平铺无法自适应

This commit is contained in:
yanglu19 2024-01-09 17:45:40 +08:00
parent 5fd26a866e
commit 5d57682580
2 changed files with 6 additions and 3 deletions

View File

@ -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')
]

View File

@ -149,8 +149,12 @@
display: flex;
.#{$ns}Button,
.#{$ns}ButtonGroup {
.#{$ns}ButtonGroup,
.#{$ns}Badge {
flex-grow: 1;
text-align: center;
.#{$ns}Button {
width: 100%;
}
}
}