换成 svg icon

This commit is contained in:
2betop 2020-03-05 20:12:42 +08:00
parent b4c98198ca
commit 965296f9c3
2 changed files with 2 additions and 3 deletions

View File

@ -13,8 +13,6 @@
background: transparent;
border: 0;
float: right;
font-size: 21px;
font-weight: 700;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;

View File

@ -5,6 +5,7 @@
import React from 'react';
import {ClassNamesFn, themeable} from '../theme';
import {Icon} from './icons';
export interface AlertProps {
level: 'danger' | 'info' | 'success' | 'warning';
@ -70,7 +71,7 @@ export class Alert extends React.Component<AlertProps, AlertState> {
onClick={this.handleClick}
type="button"
>
<span>×</span>
<Icon icon="close" className="icon" />
</button>
) : null}
{children}