2016-07-07 20:25:03 +08:00
|
|
|
import * as React from 'react';
|
2016-01-25 11:48:13 +08:00
|
|
|
import warning from 'warning';
|
2015-08-03 13:34:40 +08:00
|
|
|
|
2016-03-21 21:16:38 +08:00
|
|
|
export default class Validation extends React.Component {
|
2016-04-01 14:29:11 +08:00
|
|
|
componentDidMount() {
|
2016-02-29 17:37:23 +08:00
|
|
|
warning(false, '`Validation` is removed, please use `Form` which has supported validation after antd@0.12.0,' +
|
2016-04-01 14:29:11 +08:00
|
|
|
' or you can just import Validation from \'rc-form-validation\' for compatibility');
|
|
|
|
}
|
|
|
|
render() {
|
2016-02-29 17:37:23 +08:00
|
|
|
return null;
|
2016-01-25 11:48:13 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-21 21:16:38 +08:00
|
|
|
Validation.Validator = () => {};
|
|
|
|
Validation.FieldMixin = {
|
2016-02-29 17:37:23 +08:00
|
|
|
setField() {},
|
|
|
|
};
|