move deperated warning into componentDidMount

This commit is contained in:
afc163 2016-04-01 14:29:11 +08:00
parent be8d19628b
commit 2ed55a4900
2 changed files with 7 additions and 3 deletions

View File

@ -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} />;
}
}

View File

@ -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;
}
}