Browse Source

cross -> close

pull/11999/head
HeskeyBaozi 6 years ago
committed by 偏右
parent
commit
ef54d3fbb7
  1. 4
      components/icon/index.tsx
  2. 2
      components/message/index.tsx
  3. 2
      components/notification/index.tsx
  4. 2
      components/progress/progress.tsx
  5. 4
      package.json

4
components/icon/index.tsx

@ -1,12 +1,12 @@
import * as React from 'react';
import classNames from 'classnames';
import { antDesignIcons } from '@ant-design/icons';
import * as allIcons from '@ant-design/icons';
import ReactIcon from '@ant-design/icons-react';
import createFromIconfontCN from './IconFont';
import { svgBaseProps } from './utils';
import warning from '../_util/warning';
ReactIcon.add(...antDesignIcons);
ReactIcon.add(...Object.keys(allIcons).map((key) => (allIcons as any)[key]));
export interface CustomIconComponentProps {
width: string | number;

2
components/message/index.tsx

@ -58,7 +58,7 @@ function notice(args: ArgsProps): MessageType {
const iconType = ({
info: 'info-circle',
success: 'check-circle',
error: 'cross-circle',
error: 'close-circle',
warning: 'exclamation-circle',
loading: 'loading',
})[args.type];

2
components/notification/index.tsx

@ -95,7 +95,7 @@ function getNotificationInstance(prefixCls: string, placement: NotificationPlace
const typeToIcon = {
success: 'check-circle-o',
info: 'info-circle-o',
error: 'cross-circle-o',
error: 'close-circle-o',
warning: 'exclamation-circle-o',
};

2
components/progress/progress.tsx

@ -89,7 +89,7 @@ export default class Progress extends React.Component<ProgressProps, {}> {
if (format || (progressStatus !== 'exception' && progressStatus !== 'success')) {
text = textFormatter(validProgress(percent), validProgress(successPercent));
} else if (progressStatus === 'exception') {
text = <Icon type={`cross${iconType}`} />;
text = <Icon type={`close${iconType}`} />;
} else if (progressStatus === 'success') {
text = <Icon type={`check${iconType}`} />;
}

4
package.json

@ -39,8 +39,8 @@
"react-dom": ">=16.0.0"
},
"dependencies": {
"@ant-design/icons": "~0.3.0-beta.3",
"@ant-design/icons-react": "~0.3.0-beta.3",
"@ant-design/icons": "~1.0.0-alpha.5",
"@ant-design/icons-react": "~1.0.0-alpha.1",
"array-tree-filter": "^2.0.0",
"babel-runtime": "6.x",
"classnames": "~2.2.0",

Loading…
Cancel
Save