调整下样式

This commit is contained in:
rickcole 2020-05-06 15:05:30 +08:00
parent c8075250d5
commit a87817d1ca
2 changed files with 5 additions and 2 deletions

View File

@ -130,7 +130,7 @@
cursor: pointer;
display: flex;
> label {
> .#{$ns}NestedSelect-optionLabel {
flex: 1;
cursor: pointer;
span {

View File

@ -452,6 +452,7 @@ export default class NestedSelectControl extends React.Component<
>
{multiple ? (
<Checkbox
className={cx('NestedSelect-optionLabel')}
onChange={this.handleCheck.bind(this, option, index)}
trueValue={option.value}
checked={selfChecked}
@ -460,7 +461,9 @@ export default class NestedSelectControl extends React.Component<
{option.label}
</Checkbox>
) : (
<span>{option.label}</span>
<div className={cx('NestedSelect-optionLabel')}>
<span>{option.label}</span>
</div>
)}
{option.children && option.children.length ? (