Skip to content

Commit

Permalink
fix: 修复select下menutpl样式错误问题 (#11487)
Browse files Browse the repository at this point in the history
* fix: 修复select下menutpl样式错误问题 (#11484)

* style: 优化select下checkbox样式

* 优化

---------

Co-authored-by: Qnets <[email protected]>
  • Loading branch information
qkiroc and hzh11012 authored Jan 11, 2025
1 parent ab0a728 commit fee47f7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
32 changes: 16 additions & 16 deletions packages/amis-ui/scss/components/form/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -363,33 +363,33 @@
background: var(--select-base-default-option-bg-color);
line-height: var(--select-base-default-option-line-height);

&-checkbox {
.#{$ns}Checkbox {
width: 100%;
display: flex;
align-items: center;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
align-items: center;
> label {
width: 100%;
display: flex;
margin: 0;
> i {
flex-shrink: 0;
}

> span {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
align-items: center;

> i {
flex-shrink: 0;
}

> span {
width: 100%;
font-size: var(--select-base-default-option-fontSize);
font-weight: var(--select-base-default-option-fontWeight);
color: var(--select-base-default-option-color);
}
.#{$ns}TplField {
> span > p {
margin: 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 100%;
font-size: var(--select-base-default-option-fontSize);
font-weight: var(--select-base-default-option-fontWeight);
color: var(--select-base-default-option-color);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions packages/amis-ui/src/components/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ export class Select extends React.Component<SelectProps, SelectState> {
}}
disabled={item.disabled}
testIdBuilder={optTestIdBudr?.getChild('chekbx')}
size="sm"
>
{renderMenu(item, {
multiple,
Expand Down

0 comments on commit fee47f7

Please sign in to comment.