mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
move deperated warning into componentDidMount
This commit is contained in:
parent
be8d19628b
commit
2ed55a4900
@ -3,10 +3,12 @@ import RcQueueAnim from 'rc-queue-anim';
|
||||
import warning from 'warning';
|
||||
|
||||
export default class QueueAnim extends React.Component {
|
||||
render() {
|
||||
componentDidMount() {
|
||||
warning(false, '`QueueAnim` is deperated, ' +
|
||||
'you can import QueueAnim from \'rc-queue-anim\' directly.' +
|
||||
'The Demo will be moved to http://motion.ant.design/#/component/queue-anim');
|
||||
}
|
||||
render() {
|
||||
return <RcQueueAnim {...this.props} />;
|
||||
}
|
||||
}
|
||||
|
@ -2,9 +2,11 @@ import React from 'react';
|
||||
import warning from 'warning';
|
||||
|
||||
export default class Validation extends React.Component {
|
||||
render() {
|
||||
componentDidMount() {
|
||||
warning(false, '`Validation` is removed, please use `Form` which has supported validation after antd@0.12.0,' +
|
||||
' or you can just import Validation from \'rc-form-validation\' for compatibility');
|
||||
' or you can just import Validation from \'rc-form-validation\' for compatibility');
|
||||
}
|
||||
render() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user