Checkboxes 删改icon位置优化

This commit is contained in:
rickcole 2020-08-25 14:34:31 +08:00
parent 100f20b12f
commit 2bd478bb41
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
cursor: pointer;
> a {
float: right;
// float: right;
margin-left: px2rem(5px);
display: none;
}

View File

@ -125,6 +125,7 @@ export default class CheckboxesControl extends React.Component<
labelClassName={labelClassName}
description={option.description}
>
{option[labelField || 'label']}
{removable ? (
<a data-tooltip="移除" data-position="left">
<Icon
@ -143,7 +144,6 @@ export default class CheckboxesControl extends React.Component<
/>
</a>
) : null}
{option[labelField || 'label']}
</Checkbox>
);
}