mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-27 18:50:59 +08:00
18 lines
473 B
TypeScript
18 lines
473 B
TypeScript
import * as React from 'react';
|
|
import warning from 'warning';
|
|
|
|
export default class Validation extends React.Component {
|
|
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');
|
|
}
|
|
render() {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
Validation.Validator = () => {};
|
|
Validation.FieldMixin = {
|
|
setField() {},
|
|
};
|