UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

44 lines (43 loc) 1.87 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; import BaseMobxReactForm, { Form as BaseForm } from 'mobx-react-form'; import validator from 'validator'; import vjf from 'mobx-react-form/lib/validators/VJF'; var MobxReactForm = /** @class */ (function (_super) { __extends(MobxReactForm, _super); function MobxReactForm(options, settings) { return _super.call(this, options, __assign({ plugins: { vjf: vjf(validator) }, options: { showErrorsOnReset: false } }, settings)) || this; } return MobxReactForm; }(BaseMobxReactForm)); export default MobxReactForm; var StrictForm = /** @class */ (function (_super) { __extends(StrictForm, _super); function StrictForm(options, settings) { return _super.call(this, options, __assign({ plugins: { vjf: vjf(validator) }, options: { showErrorsOnReset: false } }, settings)) || this; } return StrictForm; }(BaseForm)); export { StrictForm };