Commit 9867f6e6 authored by nikogu's avatar nikogu

split dva from components

parent 2f8b6c3d
...@@ -7,7 +7,12 @@ ...@@ -7,7 +7,12 @@
"transform-runtime", "transform-runtime",
"transform-decorators-legacy", "transform-decorators-legacy",
"transform-class-properties", "transform-class-properties",
["import", { "libraryName": "antd", "style": true }] ["import", { "libraryName": "antd", "style": true }],
["module-resolver", {
"alias": {
"react-router": "dva/router"
}
}]
] ]
}, },
"production": { "production": {
...@@ -15,7 +20,12 @@ ...@@ -15,7 +20,12 @@
"transform-runtime", "transform-runtime",
"transform-decorators-legacy", "transform-decorators-legacy",
"transform-class-properties", "transform-class-properties",
["import", { "libraryName": "antd", "style": true }] ["import", { "libraryName": "antd", "style": true }],
["module-resolver", {
"alias": {
"react-router": "dva/router"
}
}]
] ]
} }
}, },
......
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { Link } from 'dva/router'; import { Link } from 'react-router';
import { Button, Icon } from 'antd'; import { Button, Icon } from 'antd';
import styles from './index.less'; import styles from './index.less';
......
import React from 'react'; import React from 'react';
import classNames from 'classnames'; import classNames from 'classnames';
import { Button } from 'antd'; import { Button } from 'antd';
import { Link } from 'dva/router'; import { Link } from 'react-router';
import config from './typeConfig'; import config from './typeConfig';
import styles from './index.less'; import styles from './index.less';
......
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { Breadcrumb, Tabs } from 'antd'; import { Breadcrumb, Tabs } from 'antd';
import { Link } from 'dva/router'; import { Link } from 'react-router';
import classNames from 'classnames'; import classNames from 'classnames';
import styles from './index.less'; import styles from './index.less';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment