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; cursor: pointer;
> a { > a {
float: right; // float: right;
margin-left: px2rem(5px); margin-left: px2rem(5px);
display: none; display: none;
} }

View File

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