mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
换成 svg icon
This commit is contained in:
parent
b4c98198ca
commit
965296f9c3
@ -13,8 +13,6 @@
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 21px;
|
|
||||||
font-weight: 700;
|
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
color: #000;
|
color: #000;
|
||||||
text-shadow: 0 1px 0 #fff;
|
text-shadow: 0 1px 0 #fff;
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {ClassNamesFn, themeable} from '../theme';
|
import {ClassNamesFn, themeable} from '../theme';
|
||||||
|
import {Icon} from './icons';
|
||||||
|
|
||||||
export interface AlertProps {
|
export interface AlertProps {
|
||||||
level: 'danger' | 'info' | 'success' | 'warning';
|
level: 'danger' | 'info' | 'success' | 'warning';
|
||||||
@ -70,7 +71,7 @@ export class Alert extends React.Component<AlertProps, AlertState> {
|
|||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<span>×</span>
|
<Icon icon="close" className="icon" />
|
||||||
</button>
|
</button>
|
||||||
) : null}
|
) : null}
|
||||||
{children}
|
{children}
|
||||||
|
Loading…
Reference in New Issue
Block a user