Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持立刻导出 #21

Closed
yiminghe opened this issue May 17, 2016 · 5 comments
Closed

支持立刻导出 #21

yiminghe opened this issue May 17, 2016 · 5 comments
Assignees

Comments

@yiminghe
Copy link
Contributor

import { DatePicker } from 'antd';
export default DatePicker;

而不是

import { DatePicker } from 'antd';
const MyDatePicker = DatePicker;
export default MyDatePicker;

https://github.com/ant-design/examples/blob/008ca4cf8e11bb83aa551c5a34e42252e859db2d/src/dynamic-load/component/DatePicker.js

@sorrycc
Copy link
Member

sorrycc commented May 17, 2016

有什么区别呢?

@afc163
Copy link
Contributor

afc163 commented May 17, 2016

export { DatePicker } from 'antd'; #14

@yiminghe
Copy link
Contributor Author

import { DatePicker } from 'antd';
export default DatePicker;

这样写不行

@sorrycc
Copy link
Member

sorrycc commented May 18, 2016

明白了,应该是没处理 export default 语句。

@soda-x soda-x self-assigned this Jun 15, 2016
@soda-x
Copy link
Contributor

soda-x commented Jun 15, 2016

这个后续我来跟进吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants