mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
按钮样式优化
This commit is contained in:
parent
9c5c5125df
commit
6dcc242d98
@ -205,6 +205,7 @@
|
||||
height: $height;
|
||||
|
||||
.#{$ns}Button-icon:first-child:not(:last-child):not(.pull-right),
|
||||
> svg.icon:not(:last-child):not(.pull-right),
|
||||
> .pull-left {
|
||||
margin-right: $padding-x;
|
||||
}
|
||||
|
@ -772,7 +772,7 @@ export default class ComboControl extends React.Component<ComboProps> {
|
||||
{
|
||||
type: 'dropdown-button',
|
||||
icon: addIcon ? (
|
||||
<Icon icon="plus" className="icon m-r-xs" />
|
||||
<Icon icon="plus" className="icon" />
|
||||
) : (
|
||||
''
|
||||
),
|
||||
@ -797,9 +797,7 @@ export default class ComboControl extends React.Component<ComboProps> {
|
||||
data-position="left"
|
||||
data-tooltip={__('新增一条数据')}
|
||||
>
|
||||
{addIcon ? (
|
||||
<Icon icon="plus" className="icon m-r-xs" />
|
||||
) : null}
|
||||
{addIcon ? <Icon icon="plus" className="icon" /> : null}
|
||||
<span>{__(addButtonText || '新增')}</span>
|
||||
</a>
|
||||
)
|
||||
@ -1149,9 +1147,7 @@ export default class ComboControl extends React.Component<ComboProps> {
|
||||
className={cx(`Button Combo-addBtn`, addButtonClassName)}
|
||||
data-tooltip={__('新增一条数据')}
|
||||
>
|
||||
{addIcon ? (
|
||||
<Icon icon="plus" className="icon m-r-xs" />
|
||||
) : null}
|
||||
{addIcon ? <Icon icon="plus" className="icon" /> : null}
|
||||
<span>{__(addButtonText || '新增')}</span>
|
||||
</button>
|
||||
)
|
||||
|
@ -211,7 +211,7 @@ export default class SubFormControl extends React.PureComponent<
|
||||
disabled={disabled}
|
||||
data-tooltip={__('新增一条数据')}
|
||||
>
|
||||
<Icon icon="plus" className="icon m-r-xs" />
|
||||
<Icon icon="plus" className="icon" />
|
||||
<span>{__('新增')}</span>
|
||||
</button>
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user