ant-design/components/validation/index.jsx

16 lines
447 B
React
Raw Normal View History

2016-01-25 11:48:13 +08:00
import React from 'react';
import warning from 'warning';
2015-08-03 13:34:40 +08:00
2016-01-25 11:48:13 +08:00
export default class AntValidation extends React.Component {
render() {
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');
return null;
2016-01-25 11:48:13 +08:00
}
}
AntValidation.Validator = () => {};
AntValidation.FieldMixin = {
setField() {},
};