-
-
Notifications
You must be signed in to change notification settings - Fork 49.8k
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
Add upgrade warning #4028
Add upgrade warning #4028
Conversation
@benjycui, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yiminghe, @afc163 and @waywardmonkeys to be potential reviewers. |
'The value/defaultValue of Calendar must be a moment object after `[email protected]`, ' + | ||
'see: http://u.ant.design/jI6pSlR' | ||
); | ||
} |
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.
用自定义 propTypes 来做?
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.
主要是觉得,配个 demo 的链接比较好。
if (!(value instanceof moment)) { | ||
throw new Error( | ||
'The value/defaultValue of Calendar must be a moment object after `[email protected]`, ' + | ||
'see: http://u.ant.design/jI6pSlR' |
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.
我的意思是 antd 这里不要用自动生成的随机域名,手动维护一个可读的域名。
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.
试了下。。 demo 的 URL 如果要提供一个语义化的链接,还是挺长的。。
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.
长短其实没关系,主要是提供一个固定的快捷域名,以后真实域名变化,用户旧代码也不受影响。
6fa1adb
to
4233844
Compare
Changes Unknown when pulling 4233844 on upgrade-warning into ** on master**. |
Changes Unknown when pulling 4233844 on upgrade-warning into ** on master**. |
2.0 breaking changes 里面,能加 warning 的都加了 warning,并增加链接到 demo |
4233844
to
85e870b
Compare
Updated. |
rebase |
ba7cde0
to
25a19b2
Compare
Rebased. |
No description provided.