UNPKG

sk-react-antd

Version:
28 lines (24 loc) 980 B
import "antd/es/form/style"; import _Form from "antd/es/form"; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } import PropTypes from 'prop-types'; import { SK } from 'sk-js'; import { Dir } from '../AntdConst'; _Form.defaultProps = SK.extends(true, {}, { hideRequiredMark: false, layout: Dir.Horizontal }, _Form.defaultProps, {}); _Form.propTypes = SK.extends(true, {}, { //https://ant.design/components/form-cn/#Form form: PropTypes.object, hideRequiredMark: PropTypes.bool, layout: PropTypes.oneOf(Object.values(Dir)), onSubmit: PropTypes.func }, _Form.propTypes, {}); _Form.NON_SK_COMP_NAME = 'Form'; var OriginForm = function OriginForm() { _classCallCheck(this, OriginForm); }; OriginForm.defaultProps = SK.extends(true, {}, _Form.defaultProps, {}); OriginForm.propTypes = SK.extends(true, {}, _Form.propTypes, {}); export { OriginForm as default };