-
-
Notifications
You must be signed in to change notification settings - Fork 111
fix: IDialogPropTypes import #25
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/image/j5zomlutm |
Codecov Report
@@ Coverage Diff @@
## master #25 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 137 137
Branches 31 31
=========================================
Hits 137 137
Continue to review full report at Codecov.
|
怎么对 snap 还有了影响。。。 |
src/Preview.tsx
Outdated
import * as React from 'react'; | ||
import Dialog from 'rc-dialog'; | ||
import IDialogPropTypes from 'rc-dialog/lib/IDialogPropTypes'; | ||
import { IDialogPropTypes } from 'rc-dialog/lib/IDialogPropTypes'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要这样引入了,不然以后还会有问题,从 rc-dialog
去引
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { DialogProps as IDialogPropTypes } from 'rc-dialog'
这样导入,rc-dialog
有导出这个,名字换了。
因为导出方式变了,感觉最好加个 displayName |
😂😂😂 昨晚莫名其妙的,想去 compile 下 image |
close #24