mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
无选项样式优化
This commit is contained in:
parent
4f7a0bfa62
commit
aef41bace7
@ -382,3 +382,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@mixin checkboxes-placeholder {
|
||||
height: $Form-input-height;
|
||||
line-height: $Form-input-lineHeight;
|
||||
font-size: $Form-input-fontSize;
|
||||
padding: ($Form-input-height - $Form-input-lineHeight * $Form-input-fontSize)/2
|
||||
$gap-sm;
|
||||
color: $text--muted-color;
|
||||
}
|
||||
|
@ -279,15 +279,6 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
@mixin checkboxes-placeholder {
|
||||
height: $Form-input-height;
|
||||
line-height: $Form-input-lineHeight;
|
||||
font-size: $Form-input-fontSize;
|
||||
padding: ($Form-input-height - $Form-input-lineHeight * $Form-input-fontSize)/2
|
||||
$gap-sm;
|
||||
color: $text--muted-color;
|
||||
}
|
||||
|
||||
.#{$ns}Checkboxes {
|
||||
> .#{$ns}Checkbox {
|
||||
display: block;
|
||||
|
@ -164,6 +164,10 @@
|
||||
// .#{$ns}Transfer-result {
|
||||
// flex-grow: unset;
|
||||
// }
|
||||
|
||||
&-placeholder {
|
||||
@include checkboxes-placeholder();
|
||||
}
|
||||
}
|
||||
|
||||
.#{$ns}TransferControl {
|
||||
|
@ -89,7 +89,11 @@ export class TabsTransfer extends React.Component<TabsTransferProps> {
|
||||
} = this.props;
|
||||
|
||||
if (!Array.isArray(options) || !options.length) {
|
||||
return <div>{placeholder || '暂无可选项'}</div>;
|
||||
return (
|
||||
<div className={cx('TabsTransfer-placeholder')}>
|
||||
{placeholder || '暂无可选项'}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user