remove AntdIcon.library, make it inner.

This commit is contained in:
HeskeyBaozi 2018-07-19 20:24:04 +08:00
parent 5b5af6ae77
commit a5b85fd520
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { antDesignIcons } from '@ant-design/icons';
import AntdIcon from '@ant-design/icons-react'; import AntdIcon from '@ant-design/icons-react';
import CustomIcon, { create } from './CustomIcon'; import CustomIcon, { create } from './CustomIcon';
AntdIcon.library.add(...antDesignIcons); AntdIcon.add(...antDesignIcons);
export interface IconProps { export interface IconProps {
type: string; type: string;

View File

@ -40,7 +40,7 @@
}, },
"dependencies": { "dependencies": {
"@ant-design/icons": "^0.1.0-alpha.2", "@ant-design/icons": "^0.1.0-alpha.2",
"@ant-design/icons-react": "^0.1.0-alpha.5", "@ant-design/icons-react": "^0.1.0-alpha.6",
"array-tree-filter": "^2.0.0", "array-tree-filter": "^2.0.0",
"babel-runtime": "6.x", "babel-runtime": "6.x",
"classnames": "~2.2.0", "classnames": "~2.2.0",