{"version":3,"sources":["webpack:///./node_modules/ant-design-vue/es/form/FormItem.js","webpack:///./node_modules/ant-design-vue/es/form/Form.js","webpack:///./node_modules/ant-design-vue/es/form/index.js","webpack:///./node_modules/ant-design-vue/es/form/constants.js","webpack:///./node_modules/ant-design-vue/es/empty/empty.js","webpack:///./node_modules/ant-design-vue/es/empty/index.js","webpack:///./node_modules/ant-design-vue/es/empty/simple.js","webpack:///./node_modules/ant-design-vue/es/form-model/FormItem.js","webpack:///./node_modules/ant-design-vue/es/form-model/Form.js","webpack:///./node_modules/ant-design-vue/es/form-model/index.js"],"names":["i","noop","FormItemProps","id","string","htmlFor","prefixCls","label","any","labelCol","shape","loose","wrapperCol","help","extra","validateStatus","oneOf","hasFeedback","bool","required","colon","fieldDecoratorId","fieldDecoratorOptions","object","selfUpdate","labelAlign","comeFromSlot","vnodes","arguments","length","itemVnode","isSlot","len","vnode","$vnode","componentOptions","children","$children","name","__ANT_FORM_ITEM","mixins","props","provide","isFormItemChildren","inject","FormContext","decoratorFormProps","collectFormItemContext","configProvider","data","helpShow","computed","itemSelfUpdate","this","created","collectContext","beforeUpdate","beforeDestroy","context","mounted","_$props","$props","getControls","slotDefault","methods","form","templateContext","Object","values","$slots","reduce","a","b","concat","isSlotScope","getHelpMessage","onlyControl","getOnlyControl","errors","getField","list","current","item","slice","intersperseSpace","map","e","index","node","message","key","childrenArray","recursively","controls","child","tag","text","trim","attrs","push","getChildAttr","prop","getId","getMeta","getValidateStatus","field","validating","fieldValue","value","initialValue","onLabelClick","control","$el","querySelector","focus","onHelpAnimEnd","_key","$forceUpdate","isRequired","validate","filter","rules","some","rule","renderHelp","_this","h","$createElement","transitionProps","afterEnter","afterLeave","renderExtra","renderValidateWrapper","c1","c2","c3","classes","iconType","icon","type","theme","renderWrapper","contextWrapperCol","mergedWrapperCol","style","on","colProps","renderLabel","_classNames","_FormContext","vertical","contextLabelAlign","contextLabelCol","contextColon","mergedLabelCol","mergedLabelAlign","labelClsBasic","labelColClassName","labelColStyle","labelColId","restProps","labelChildren","computedColon","replace","labelClassName","title","renderChildren","renderFormItem","_itemClassName","customizePrefixCls","getPrefixCls","itemClassName","decoratorOption","directives","directive","Array","isArray","decoratorChildren","getFieldDecorator","option","render","_fieldDecoratorOption","FormProps","func","layout","Col","hideRequiredMark","autoFormCreate","options","Form","oneOfType","boolean","number","String","arrayOf","custom","Item","FormItem","createFormField","create","createDOMForm","fieldNameProp","fieldMetaProp","fieldDataProp","createForm","Vue","formItemContexts","Map","c","get","set","C","watch","forEach","updated","cleanUpUselessFields","onSubmit","submit","$emit","preventDefault","_this2","_options","formClassName","warning","DomForm","domForm","wrappedComponentRef","inst","use","FormDecoratorDirective","prototype","$form","install","component","FIELD_META_PROP","FIELD_DATA_PROP","functional","PRESENTED_IMAGE_DEFAULT","width","height","viewBox","xmlns","fill","fillRule","transform","fillOpacity","cx","cy","rx","ry","d","Empty","image","description","imageStyle","renderEmpty","contentLocale","des","alt","cls","imageNode","src","PRESENTED_IMAGE_SIMPLE","LocaleReceiver","componentName","scopedSlots","stroke","getPropByPath","obj","path","strict","tempObj","keyArr","split","Error","o","k","v","autoLink","__ANT_NEW_FORM_ITEM","BaseMixin","validateState","validateMessage","validateDisabled","validator","model","indexOf","getRules","every","val","addField","removeField","trigger","callback","getFilteredRule","descriptor","validateMessages","messages","firstFields","invalidFields","formRules","selfRules","requiredRule","onFieldBlur","onFieldChange","clearValidate","resetField","$nextTick","_this3","$scopedSlots","formProps","firstChildren","originalEvents","originalBlur","blur","originalChange","change","apply","l","validateOnRuleChange","fields","splice","resetFields","promise","window","Promise","resolve","reject","valid","count","validateField","cb"],"mappings":"oHAAA,gBAAAA,EAAA,yQAmBA,SAASC,KAOF,IAAIC,EAAgB,CACzBC,GAAI,IAAUC,OACdC,QAAS,IAAUD,OACnBE,UAAW,IAAUF,OACrBG,MAAO,IAAUC,IACjBC,SAAU,IAAUC,MAAM,KAAUC,MACpCC,WAAY,IAAUF,MAAM,KAAUC,MACtCE,KAAM,I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ACxBF,EAASnI,KAAKmI,OACdgC,EAAWnK,KAAKmK,SAChBnJ,EAAShB,KAAKgB,OAGd/D,GAAYoK,EADGrH,KAAKL,eAAe0H,cACV,OAAQD,GAGrC,OAAO3C,EACL,OACA,CACEmB,GAAI,CACF,OAAUuE,GAEZ,MAPgB,IAAWlN,GAAY8I,EAAc,CAAC,EAAG,IAAgBA,EAAa9I,EAAY,cAA0B,eAAXkL,GAA0B,IAAgBpC,EAAa9I,EAAY,YAAwB,aAAXkL,GAAwB,IAAgBpC,EAAa9I,EAAY,UAAsB,WAAXkL,GAAsB,IAAgBpC,EAAa9I,EAAY,sBAAuBoL,GAAmBtC,KAQxX,CAAC/E,EAAO,aAKC,I,6CCrMf,UAAI+J,IAAI,IAAK,CAAE9L,KAAM,YACrB,UAAI8L,IAAIC,EAAA,GAMR,EAAKG,QAAU,SAAU3B,GACvBA,EAAIuB,IAAI,KACRvB,EAAI4B,UAAU,EAAKnM,KAAM,GACzBuK,EAAI4B,UAAU,EAAKrC,KAAK9J,KAAM,EAAK8J,KAAKA,EAG3B","file":"js/chunk-vendors~8840ee4a.5958b843.js","sourcesContent":["import _typeof from 'babel-runtime/helpers/typeof';\nimport _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';\nimport _mergeJSXProps from 'babel-helper-vue-jsx-merge-props';\nimport _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';\nimport PropTypes from '../_util/vue-types';\nimport classNames from 'classnames';\nimport find from 'lodash/find';\nimport Row from '../grid/Row';\nimport Col, { ColProps } from '../grid/Col';\nimport warning from '../_util/warning';\nimport { FIELD_META_PROP, FIELD_DATA_PROP } from './constants';\nimport { initDefaultProps, getComponentFromProp, filterEmpty, getSlotOptions, isValidElement, getAllChildren } from '../_util/props-util';\nimport getTransitionProps from '../_util/getTransitionProps';\nimport BaseMixin from '../_util/BaseMixin';\nimport { cloneElement, cloneVNodes } from '../_util/vnode';\nimport Icon from '../icon';\nimport { ConfigConsumerProps } from '../config-provider/configConsumerProps';\n\nfunction noop() {}\n\nfunction intersperseSpace(list) {\n return list.reduce(function (current, item) {\n return [].concat(_toConsumableArray(current), [' ', item]);\n }, []).slice(1);\n}\nexport var FormItemProps = {\n id: PropTypes.string,\n htmlFor: PropTypes.string,\n prefixCls: PropTypes.string,\n label: PropTypes.any,\n labelCol: PropTypes.shape(ColProps).loose,\n wrapperCol: PropTypes.shape(ColProps).loose,\n help: PropTypes.any,\n extra: PropTypes.any,\n validateStatus: PropTypes.oneOf(['', 'success', 'warning', 'error', 'validating']),\n hasFeedback: PropTypes.bool,\n required: PropTypes.bool,\n colon: PropTypes.bool,\n fieldDecoratorId: PropTypes.string,\n fieldDecoratorOptions: PropTypes.object,\n selfUpdate: PropTypes.bool,\n labelAlign: PropTypes.oneOf(['left', 'right'])\n};\nfunction comeFromSlot() {\n var vnodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var itemVnode = arguments[1];\n\n var isSlot = false;\n for (var i = 0, len = vnodes.length; i < len; i++) {\n var vnode = vnodes[i];\n if (vnode && (vnode === itemVnode || vnode.$vnode === itemVnode)) {\n isSlot = true;\n } else {\n var componentOptions = vnode.componentOptions || vnode.$vnode && vnode.$vnode.componentOptions;\n var children = componentOptions ? componentOptions.children : vnode.$children;\n isSlot = comeFromSlot(children, itemVnode);\n }\n if (isSlot) {\n break;\n }\n }\n return isSlot;\n}\n\nexport default {\n name: 'AFormItem',\n __ANT_FORM_ITEM: true,\n mixins: [BaseMixin],\n props: initDefaultProps(FormItemProps, {\n hasFeedback: false\n }),\n provide: function provide() {\n return {\n isFormItemChildren: true\n };\n },\n\n inject: {\n isFormItemChildren: { 'default': false },\n FormContext: { 'default': function _default() {\n return {};\n } },\n decoratorFormProps: { 'default': function _default() {\n return {};\n } },\n collectFormItemContext: { 'default': function _default() {\n return noop;\n } },\n configProvider: { 'default': function _default() {\n return ConfigConsumerProps;\n } }\n },\n data: function data() {\n return { helpShow: false };\n },\n\n computed: {\n itemSelfUpdate: function itemSelfUpdate() {\n return !!(this.selfUpdate === undefined ? this.FormContext.selfUpdate : this.selfUpdate);\n }\n },\n created: function created() {\n this.collectContext();\n },\n beforeUpdate: function beforeUpdate() {\n if (process.env.NODE_ENV !== 'production') {\n this.collectContext();\n }\n },\n beforeDestroy: function beforeDestroy() {\n this.collectFormItemContext(this.$vnode && this.$vnode.context, 'delete');\n },\n mounted: function mounted() {\n var _$props = this.$props,\n help = _$props.help,\n validateStatus = _$props.validateStatus;\n\n warning(this.getControls(this.slotDefault, true).length <= 1 || help !== undefined || validateStatus !== undefined, 'Form.Item', 'Cannot generate `validateStatus` and `help` automatically, ' + 'while there are more than one `getFieldDecorator` in it.');\n warning(!this.fieldDecoratorId, 'Form.Item', '`fieldDecoratorId` is deprecated. please use `v-decorator={id, options}` instead.');\n },\n\n methods: {\n collectContext: function collectContext() {\n if (this.FormContext.form && this.FormContext.form.templateContext) {\n var templateContext = this.FormContext.form.templateContext;\n\n var vnodes = Object.values(templateContext.$slots || {}).reduce(function (a, b) {\n return [].concat(_toConsumableArray(a), _toConsumableArray(b));\n }, []);\n var isSlot = comeFromSlot(vnodes, this.$vnode);\n warning(!isSlot, 'You can not set FormItem from slot, please use slot-scope instead slot');\n var isSlotScope = false;\n // 进一步判断是否是通过slot-scope传递\n if (!isSlot && this.$vnode.context !== templateContext) {\n isSlotScope = comeFromSlot(this.$vnode.context.$children, templateContext.$vnode);\n }\n if (!isSlotScope && !isSlot) {\n this.collectFormItemContext(this.$vnode.context);\n }\n }\n },\n getHelpMessage: function getHelpMessage() {\n var help = getComponentFromProp(this, 'help');\n var onlyControl = this.getOnlyControl();\n if (help === undefined && onlyControl) {\n var errors = this.getField().errors;\n if (errors) {\n return intersperseSpace(errors.map(function (e, index) {\n var node = null;\n if (isValidElement(e)) {\n node = e;\n } else if (isValidElement(e.message)) {\n node = e.message;\n }\n return node ? cloneElement(node, { key: index }) : e.message;\n }));\n } else {\n return '';\n }\n }\n\n return help;\n },\n getControls: function getControls() {\n var childrenArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var recursively = arguments[1];\n\n var controls = [];\n for (var i = 0; i < childrenArray.length; i++) {\n if (!recursively && controls.length > 0) {\n break;\n }\n\n var child = childrenArray[i];\n if (!child.tag && child.text.trim() === '') {\n continue;\n }\n\n if (getSlotOptions(child).__ANT_FORM_ITEM) {\n continue;\n }\n var children = getAllChildren(child);\n var attrs = child.data && child.data.attrs || {};\n if (FIELD_META_PROP in attrs) {\n // And means FIELD_DATA_PROP in child.props, too.\n controls.push(child);\n } else if (children) {\n controls = controls.concat(this.getControls(children, recursively));\n }\n }\n return controls;\n },\n getOnlyControl: function getOnlyControl() {\n var child = this.getControls(this.slotDefault, false)[0];\n return child !== undefined ? child : null;\n },\n getChildAttr: function getChildAttr(prop) {\n var child = this.getOnlyControl();\n var data = {};\n if (!child) {\n return undefined;\n }\n if (child.data) {\n data = child.data;\n } else if (child.$vnode && child.$vnode.data) {\n data = child.$vnode.data;\n }\n return data[prop] || data.attrs[prop];\n },\n getId: function getId() {\n return this.getChildAttr('id');\n },\n getMeta: function getMeta() {\n return this.getChildAttr(FIELD_META_PROP);\n },\n getField: function getField() {\n return this.getChildAttr(FIELD_DATA_PROP);\n },\n getValidateStatus: function getValidateStatus() {\n var onlyControl = this.getOnlyControl();\n if (!onlyControl) {\n return '';\n }\n var field = this.getField();\n if (field.validating) {\n return 'validating';\n }\n if (field.errors) {\n return 'error';\n }\n var fieldValue = 'value' in field ? field.value : this.getMeta().initialValue;\n if (fieldValue !== undefined && fieldValue !== null && fieldValue !== '') {\n return 'success';\n }\n return '';\n },\n\n\n // Resolve duplicated ids bug between different forms\n // https://github.com/ant-design/ant-design/issues/7351\n onLabelClick: function onLabelClick() {\n var id = this.id || this.getId();\n if (!id) {\n return;\n }\n var formItemNode = this.$el;\n var control = formItemNode.querySelector('[id=\"' + id + '\"]');\n if (control && control.focus) {\n control.focus();\n }\n },\n onHelpAnimEnd: function onHelpAnimEnd(_key, helpShow) {\n this.helpShow = helpShow;\n if (!helpShow) {\n this.$forceUpdate();\n }\n },\n isRequired: function isRequired() {\n var required = this.required;\n\n if (required !== undefined) {\n return required;\n }\n if (this.getOnlyControl()) {\n var meta = this.getMeta() || {};\n var validate = meta.validate || [];\n\n return validate.filter(function (item) {\n return !!item.rules;\n }).some(function (item) {\n return item.rules.some(function (rule) {\n return rule.required;\n });\n });\n }\n return false;\n },\n renderHelp: function renderHelp(prefixCls) {\n var _this = this;\n\n var h = this.$createElement;\n\n var help = this.getHelpMessage();\n var children = help ? h(\n 'div',\n { 'class': prefixCls + '-explain', key: 'help' },\n [help]\n ) : null;\n if (children) {\n this.helpShow = !!children;\n }\n var transitionProps = getTransitionProps('show-help', {\n afterEnter: function afterEnter() {\n return _this.onHelpAnimEnd('help', true);\n },\n afterLeave: function afterLeave() {\n return _this.onHelpAnimEnd('help', false);\n }\n });\n return h(\n 'transition',\n _mergeJSXProps([transitionProps, { key: 'help' }]),\n [children]\n );\n },\n renderExtra: function renderExtra(prefixCls) {\n var h = this.$createElement;\n\n var extra = getComponentFromProp(this, 'extra');\n return extra ? h(\n 'div',\n { 'class': prefixCls + '-extra' },\n [extra]\n ) : null;\n },\n renderValidateWrapper: function renderValidateWrapper(prefixCls, c1, c2, c3) {\n var h = this.$createElement;\n\n var props = this.$props;\n var onlyControl = this.getOnlyControl;\n var validateStatus = props.validateStatus === undefined && onlyControl ? this.getValidateStatus() : props.validateStatus;\n\n var classes = prefixCls + '-item-control';\n if (validateStatus) {\n classes = classNames(prefixCls + '-item-control', {\n 'has-feedback': validateStatus && props.hasFeedback,\n 'has-success': validateStatus === 'success',\n 'has-warning': validateStatus === 'warning',\n 'has-error': validateStatus === 'error',\n 'is-validating': validateStatus === 'validating'\n });\n }\n var iconType = '';\n switch (validateStatus) {\n case 'success':\n iconType = 'check-circle';\n break;\n case 'warning':\n iconType = 'exclamation-circle';\n break;\n case 'error':\n iconType = 'close-circle';\n break;\n case 'validating':\n iconType = 'loading';\n break;\n default:\n iconType = '';\n break;\n }\n var icon = props.hasFeedback && iconType ? h(\n 'span',\n { 'class': prefixCls + '-item-children-icon' },\n [h(Icon, {\n attrs: { type: iconType, theme: iconType === 'loading' ? 'outlined' : 'filled' }\n })]\n ) : null;\n return h(\n 'div',\n { 'class': classes },\n [h(\n 'span',\n { 'class': prefixCls + '-item-children' },\n [c1, icon]\n ), c2, c3]\n );\n },\n renderWrapper: function renderWrapper(prefixCls, children) {\n var h = this.$createElement;\n\n var _ref = this.isFormItemChildren ? {} : this.FormContext,\n contextWrapperCol = _ref.wrapperCol;\n\n var wrapperCol = this.wrapperCol;\n\n var mergedWrapperCol = wrapperCol || contextWrapperCol || {};\n\n var style = mergedWrapperCol.style,\n id = mergedWrapperCol.id,\n on = mergedWrapperCol.on,\n restProps = _objectWithoutProperties(mergedWrapperCol, ['style', 'id', 'on']);\n\n var className = classNames(prefixCls + '-item-control-wrapper', mergedWrapperCol['class']);\n var colProps = {\n props: restProps,\n 'class': className,\n key: 'wrapper',\n style: style,\n id: id,\n on: on\n };\n return h(\n Col,\n colProps,\n [children]\n );\n },\n renderLabel: function renderLabel(prefixCls) {\n var _classNames;\n\n var h = this.$createElement;\n var _FormContext = this.FormContext,\n vertical = _FormContext.vertical,\n contextLabelAlign = _FormContext.labelAlign,\n contextLabelCol = _FormContext.labelCol,\n contextColon = _FormContext.colon;\n var labelAlign = this.labelAlign,\n labelCol = this.labelCol,\n colon = this.colon,\n id = this.id,\n htmlFor = this.htmlFor;\n\n var label = getComponentFromProp(this, 'label');\n var required = this.isRequired();\n var mergedLabelCol = labelCol || contextLabelCol || {};\n\n var mergedLabelAlign = labelAlign || contextLabelAlign;\n var labelClsBasic = prefixCls + '-item-label';\n var labelColClassName = classNames(labelClsBasic, mergedLabelAlign === 'left' && labelClsBasic + '-left', mergedLabelCol['class']);\n\n var labelColClass = mergedLabelCol['class'],\n labelColStyle = mergedLabelCol.style,\n labelColId = mergedLabelCol.id,\n on = mergedLabelCol.on,\n restProps = _objectWithoutProperties(mergedLabelCol, ['class', 'style', 'id', 'on']);\n\n var labelChildren = label;\n // Keep label is original where there should have no colon\n var computedColon = colon === true || contextColon !== false && colon !== false;\n var haveColon = computedColon && !vertical;\n // Remove duplicated user input colon\n if (haveColon && typeof label === 'string' && label.trim() !== '') {\n labelChildren = label.replace(/[::]\\s*$/, '');\n }\n\n var labelClassName = classNames((_classNames = {}, _defineProperty(_classNames, prefixCls + '-item-required', required), _defineProperty(_classNames, prefixCls + '-item-no-colon', !computedColon), _classNames));\n var colProps = {\n props: restProps,\n 'class': labelColClassName,\n key: 'label',\n style: labelColStyle,\n id: labelColId,\n on: on\n };\n\n return label ? h(\n Col,\n colProps,\n [h(\n 'label',\n {\n attrs: {\n 'for': htmlFor || id || this.getId(),\n\n title: typeof label === 'string' ? label : ''\n },\n 'class': labelClassName, on: {\n 'click': this.onLabelClick\n }\n },\n [labelChildren]\n )]\n ) : null;\n },\n renderChildren: function renderChildren(prefixCls) {\n return [this.renderLabel(prefixCls), this.renderWrapper(prefixCls, this.renderValidateWrapper(prefixCls, this.slotDefault, this.renderHelp(prefixCls), this.renderExtra(prefixCls)))];\n },\n renderFormItem: function renderFormItem() {\n var _itemClassName;\n\n var h = this.$createElement;\n var customizePrefixCls = this.$props.prefixCls;\n\n var getPrefixCls = this.configProvider.getPrefixCls;\n var prefixCls = getPrefixCls('form', customizePrefixCls);\n var children = this.renderChildren(prefixCls);\n var itemClassName = (_itemClassName = {}, _defineProperty(_itemClassName, prefixCls + '-item', true), _defineProperty(_itemClassName, prefixCls + '-item-with-help', this.helpShow), _itemClassName);\n\n return h(\n Row,\n { 'class': classNames(itemClassName), key: 'row' },\n [children]\n );\n },\n decoratorOption: function decoratorOption(vnode) {\n if (vnode.data && vnode.data.directives) {\n var directive = find(vnode.data.directives, ['name', 'decorator']);\n warning(!directive || directive && Array.isArray(directive.value), 'Form', 'Invalid directive: type check failed for directive \"decorator\". Expected Array, got ' + _typeof(directive ? directive.value : directive) + '. At ' + vnode.tag + '.');\n return directive ? directive.value : null;\n } else {\n return null;\n }\n },\n decoratorChildren: function decoratorChildren(vnodes) {\n var FormContext = this.FormContext;\n\n var getFieldDecorator = FormContext.form.getFieldDecorator;\n for (var i = 0, len = vnodes.length; i < len; i++) {\n var vnode = vnodes[i];\n if (getSlotOptions(vnode).__ANT_FORM_ITEM) {\n break;\n }\n if (vnode.children) {\n vnode.children = this.decoratorChildren(cloneVNodes(vnode.children));\n } else if (vnode.componentOptions && vnode.componentOptions.children) {\n vnode.componentOptions.children = this.decoratorChildren(cloneVNodes(vnode.componentOptions.children));\n }\n var option = this.decoratorOption(vnode);\n if (option && option[0]) {\n vnodes[i] = getFieldDecorator(option[0], option[1], this)(vnode);\n }\n }\n return vnodes;\n }\n },\n\n render: function render() {\n var $slots = this.$slots,\n decoratorFormProps = this.decoratorFormProps,\n fieldDecoratorId = this.fieldDecoratorId,\n _fieldDecoratorOption = this.fieldDecoratorOptions,\n fieldDecoratorOptions = _fieldDecoratorOption === undefined ? {} : _fieldDecoratorOption,\n FormContext = this.FormContext;\n\n var child = filterEmpty($slots['default'] || []);\n if (decoratorFormProps.form && fieldDecoratorId && child.length) {\n var getFieldDecorator = decoratorFormProps.form.getFieldDecorator;\n child[0] = getFieldDecorator(fieldDecoratorId, fieldDecoratorOptions, this)(child[0]);\n warning(!(child.length > 1), 'Form', '`autoFormCreate` just `decorator` then first children. but you can use JSX to support multiple children');\n this.slotDefault = child;\n } else if (FormContext.form) {\n child = cloneVNodes(child);\n this.slotDefault = this.decoratorChildren(child);\n } else {\n this.slotDefault = child;\n }\n return this.renderFormItem();\n }\n};","import _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _extends from 'babel-runtime/helpers/extends';\nimport PropTypes from '../_util/vue-types';\nimport classNames from 'classnames';\nimport { ColProps } from '../grid/Col';\nimport Vue from 'vue';\nimport isRegExp from 'lodash/isRegExp';\nimport warning from '../_util/warning';\nimport createDOMForm from '../vc-form/src/createDOMForm';\nimport createFormField from '../vc-form/src/createFormField';\nimport FormItem from './FormItem';\nimport { FIELD_META_PROP, FIELD_DATA_PROP } from './constants';\nimport { initDefaultProps, getListeners } from '../_util/props-util';\nimport { ConfigConsumerProps } from '../config-provider/configConsumerProps';\nimport Base from '../base';\n\nexport var FormCreateOption = {\n onFieldsChange: PropTypes.func,\n onValuesChange: PropTypes.func,\n mapPropsToFields: PropTypes.func,\n validateMessages: PropTypes.any,\n withRef: PropTypes.bool,\n name: PropTypes.string\n};\n\n// function create\nexport var WrappedFormUtils = {\n /** 获取一组输入控件的值,如不传入参数,则获取全部组件的值 */\n getFieldsValue: PropTypes.func,\n /** 获取一个输入控件的值*/\n getFieldValue: PropTypes.func,\n /** 设置一组输入控件的值*/\n setFieldsValue: PropTypes.func,\n /** 设置一组输入控件的值*/\n setFields: PropTypes.func,\n /** 校验并获取一组输入域的值与 Error */\n validateFields: PropTypes.func,\n // validateFields(fieldNames: Array, options: Object, callback: ValidateCallback): void;\n // validateFields(fieldNames: Array, callback: ValidateCallback): void;\n // validateFields(options: Object, callback: ValidateCallback): void;\n // validateFields(callback: ValidateCallback): void;\n // validateFields(): void;\n /** 与 `validateFields` 相似,但校验完后,如果校验不通过的菜单域不在可见范围内,则自动滚动进可见范围 */\n validateFieldsAndScroll: PropTypes.func,\n // validateFieldsAndScroll(fieldNames?: Array, options?: Object, callback?: ValidateCallback): void;\n // validateFieldsAndScroll(fieldNames?: Array, callback?: ValidateCallback): void;\n // validateFieldsAndScroll(options?: Object, callback?: ValidateCallback): void;\n // validateFieldsAndScroll(callback?: ValidateCallback): void;\n // validateFieldsAndScroll(): void;\n /** 获取某个输入控件的 Error */\n getFieldError: PropTypes.func,\n getFieldsError: PropTypes.func,\n /** 判断一个输入控件是否在校验状态*/\n isFieldValidating: PropTypes.func,\n isFieldTouched: PropTypes.func,\n isFieldsTouched: PropTypes.func,\n /** 重置一组输入控件的值与状态,如不传入参数,则重置所有组件 */\n resetFields: PropTypes.func,\n\n getFieldDecorator: PropTypes.func\n};\n\nexport var FormProps = {\n layout: PropTypes.oneOf(['horizontal', 'inline', 'vertical']),\n labelCol: PropTypes.shape(ColProps).loose,\n wrapperCol: PropTypes.shape(ColProps).loose,\n colon: PropTypes.bool,\n labelAlign: PropTypes.oneOf(['left', 'right']),\n form: PropTypes.object,\n // onSubmit: React.FormEventHandler;\n prefixCls: PropTypes.string,\n hideRequiredMark: PropTypes.bool,\n autoFormCreate: PropTypes.func,\n options: PropTypes.object,\n selfUpdate: PropTypes.bool\n};\n\nexport var ValidationRule = {\n /** validation error message */\n message: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n /** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */\n type: PropTypes.string,\n /** indicates whether field is required */\n required: PropTypes.boolean,\n /** treat required fields that only contain whitespace as errors */\n whitespace: PropTypes.boolean,\n /** validate the exact length of a field */\n len: PropTypes.number,\n /** validate the min length of a field */\n min: PropTypes.number,\n /** validate the max length of a field */\n max: PropTypes.number,\n /** validate the value from a list of possible values */\n 'enum': PropTypes.oneOfType([String, PropTypes.arrayOf(String)]),\n /** validate from a regular expression */\n pattern: PropTypes.custom(isRegExp),\n /** transform a value before validation */\n transform: PropTypes.func,\n /** custom validate function (Note: callback must be called) */\n validator: PropTypes.func\n};\n\n// export type ValidateCallback = (errors: any, values: any) => void;\n\n// export type GetFieldDecoratorOptions = {\n// /** 子节点的值的属性,如 Checkbox 的是 'checked' */\n// valuePropName?: string;\n// /** 子节点的初始值,类型、可选值均由子节点决定 */\n// initialValue?: any;\n// /** 收集子节点的值的时机 */\n// trigger?: string;\n// /** 可以把 onChange 的参数转化为控件的值,例如 DatePicker 可设为:(date, dateString) => dateString */\n// getValueFromEvent?: (...args: any[]) => any;\n// /** Get the component props according to field value. */\n// getValueProps?: (value: any) => any;\n// /** 校验子节点值的时机 */\n// validateTrigger?: string | string[];\n// /** 校验规则,参见 [async-validator](https://github.com/yiminghe/async-validator) */\n// rules?: ValidationRule[];\n// /** 是否和其他控件互斥,特别用于 Radio 单选控件 */\n// exclusive?: boolean;\n// /** Normalize value to form component */\n// normalize?: (value: any, prevValue: any, allValues: any) => any;\n// /** Whether stop validate on first rule of error for this field. */\n// validateFirst?: boolean;\n// /** 是否一直保留子节点的信息 */\n// preserve?: boolean;\n// };\n\nvar Form = {\n name: 'AForm',\n props: initDefaultProps(FormProps, {\n layout: 'horizontal',\n hideRequiredMark: false,\n colon: true\n }),\n Item: FormItem,\n createFormField: createFormField,\n create: function create() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n return createDOMForm(_extends({\n fieldNameProp: 'id'\n }, options, {\n fieldMetaProp: FIELD_META_PROP,\n fieldDataProp: FIELD_DATA_PROP\n }));\n },\n createForm: function createForm(context) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var V = Base.Vue || Vue;\n return new V(Form.create(_extends({}, options, { templateContext: context }))());\n },\n created: function created() {\n this.formItemContexts = new Map();\n },\n provide: function provide() {\n var _this = this;\n\n return {\n FormContext: this,\n // https://github.com/vueComponent/ant-design-vue/issues/446\n collectFormItemContext: this.form && this.form.templateContext ? function (c) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'add';\n\n var formItemContexts = _this.formItemContexts;\n var number = formItemContexts.get(c) || 0;\n if (type === 'delete') {\n if (number <= 1) {\n formItemContexts['delete'](c);\n } else {\n formItemContexts.set(c, number - 1);\n }\n } else {\n if (c !== _this.form.templateContext) {\n formItemContexts.set(c, number + 1);\n }\n }\n } : function () {}\n };\n },\n\n inject: {\n configProvider: { 'default': function _default() {\n return ConfigConsumerProps;\n } }\n },\n watch: {\n form: function form() {\n this.$forceUpdate();\n }\n },\n computed: {\n vertical: function vertical() {\n return this.layout === 'vertical';\n }\n },\n beforeUpdate: function beforeUpdate() {\n this.formItemContexts.forEach(function (number, c) {\n if (c.$forceUpdate) {\n c.$forceUpdate();\n }\n });\n },\n updated: function updated() {\n if (this.form && this.form.cleanUpUselessFields) {\n this.form.cleanUpUselessFields();\n }\n },\n\n methods: {\n onSubmit: function onSubmit(e) {\n if (!getListeners(this).submit) {\n e.preventDefault();\n } else {\n this.$emit('submit', e);\n }\n }\n },\n\n render: function render() {\n var _classNames,\n _this2 = this;\n\n var h = arguments[0];\n var customizePrefixCls = this.prefixCls,\n hideRequiredMark = this.hideRequiredMark,\n layout = this.layout,\n onSubmit = this.onSubmit,\n $slots = this.$slots,\n autoFormCreate = this.autoFormCreate,\n _options = this.options,\n options = _options === undefined ? {} : _options;\n\n var getPrefixCls = this.configProvider.getPrefixCls;\n var prefixCls = getPrefixCls('form', customizePrefixCls);\n\n var formClassName = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, prefixCls + '-horizontal', layout === 'horizontal'), _defineProperty(_classNames, prefixCls + '-vertical', layout === 'vertical'), _defineProperty(_classNames, prefixCls + '-inline', layout === 'inline'), _defineProperty(_classNames, prefixCls + '-hide-required-mark', hideRequiredMark), _classNames));\n if (autoFormCreate) {\n warning(false, 'Form', '`autoFormCreate` is deprecated. please use `form` instead.');\n var DomForm = this.DomForm || createDOMForm(_extends({\n fieldNameProp: 'id'\n }, options, {\n fieldMetaProp: FIELD_META_PROP,\n fieldDataProp: FIELD_DATA_PROP,\n templateContext: this.$vnode.context\n }))({\n provide: function provide() {\n return {\n decoratorFormProps: this.$props\n };\n },\n data: function data() {\n return {\n children: $slots['default'],\n formClassName: formClassName,\n submit: onSubmit\n };\n },\n created: function created() {\n autoFormCreate(this.form);\n },\n render: function render() {\n var h = arguments[0];\n var children = this.children,\n formClassName = this.formClassName,\n submit = this.submit;\n\n return h(\n 'form',\n {\n on: {\n 'submit': submit\n },\n 'class': formClassName },\n [children]\n );\n }\n });\n if (this.domForm) {\n this.domForm.children = $slots['default'];\n this.domForm.submit = onSubmit;\n this.domForm.formClassName = formClassName;\n }\n this.DomForm = DomForm;\n\n return h(DomForm, {\n attrs: {\n wrappedComponentRef: function wrappedComponentRef(inst) {\n _this2.domForm = inst;\n }\n }\n });\n }\n return h(\n 'form',\n {\n on: {\n 'submit': onSubmit\n },\n 'class': formClassName },\n [$slots['default']]\n );\n }\n};\n\nexport default Form;","import Vue from 'vue';\nimport Form from './Form';\nimport ref from 'vue-ref';\nimport FormDecoratorDirective from '../_util/FormDecoratorDirective';\nimport Base from '../base';\n\nVue.use(ref, { name: 'ant-ref' });\nVue.use(FormDecoratorDirective);\nVue.prototype.$form = Form;\n\nexport { FormProps, FormCreateOption, ValidationRule } from './Form';\nexport { FormItemProps } from './FormItem';\n\n/* istanbul ignore next */\nForm.install = function (Vue) {\n Vue.use(Base);\n Vue.component(Form.name, Form);\n Vue.component(Form.Item.name, Form.Item);\n Vue.prototype.$form = Form;\n};\n\nexport default Form;","export var FIELD_META_PROP = 'data-__meta';\nexport var FIELD_DATA_PROP = 'data-__field';","export default {\n functional: true,\n PRESENTED_IMAGE_DEFAULT: true,\n render: function render() {\n var h = arguments[0];\n\n return h(\n \"svg\",\n {\n attrs: { width: \"184\", height: \"152\", viewBox: \"0 0 184 152\", xmlns: \"http://www.w3.org/2000/svg\" }\n },\n [h(\n \"g\",\n {\n attrs: { fill: \"none\", fillRule: \"evenodd\" }\n },\n [h(\n \"g\",\n {\n attrs: { transform: \"translate(24 31.67)\" }\n },\n [h(\"ellipse\", {\n attrs: {\n fillOpacity: \".8\",\n fill: \"#F5F5F7\",\n cx: \"67.797\",\n cy: \"106.89\",\n rx: \"67.797\",\n ry: \"12.668\"\n }\n }), h(\"path\", {\n attrs: {\n d: \"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z\",\n fill: \"#AEB8C2\"\n }\n }), h(\"path\", {\n attrs: {\n d: \"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z\",\n fill: \"url(#linearGradient-1)\",\n transform: \"translate(13.56)\"\n }\n }), h(\"path\", {\n attrs: {\n d: \"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z\",\n fill: \"#F5F5F7\"\n }\n }), h(\"path\", {\n attrs: {\n d: \"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z\",\n fill: \"#DCE0E6\"\n }\n })]\n ), h(\"path\", {\n attrs: {\n d: \"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z\",\n fill: \"#DCE0E6\"\n }\n }), h(\n \"g\",\n {\n attrs: { transform: \"translate(149.65 15.383)\", fill: \"#FFF\" }\n },\n [h(\"ellipse\", {\n attrs: { cx: \"20.654\", cy: \"3.167\", rx: \"2.849\", ry: \"2.815\" }\n }), h(\"path\", {\n attrs: { d: \"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z\" }\n })]\n )]\n )]\n );\n }\n};","import _mergeJSXProps from 'babel-helper-vue-jsx-merge-props';\nimport _typeof from 'babel-runtime/helpers/typeof';\nimport _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _extends from 'babel-runtime/helpers/extends';\nimport PropTypes from '../_util/vue-types';\nimport { ConfigConsumerProps } from '../config-provider/configConsumerProps';\nimport { getComponentFromProp, getListeners } from '../_util/props-util';\nimport LocaleReceiver from '../locale-provider/LocaleReceiver';\nimport DefaultEmptyImg from './empty';\nimport SimpleEmptyImg from './simple';\nimport Base from '../base';\n\nexport var TransferLocale = function TransferLocale() {\n return {\n description: PropTypes.string\n };\n};\n\nexport var EmptyProps = function EmptyProps() {\n return {\n prefixCls: PropTypes.string,\n image: PropTypes.any,\n description: PropTypes.any,\n imageStyle: PropTypes.object\n };\n};\n\nvar Empty = {\n name: 'AEmpty',\n props: _extends({}, EmptyProps()),\n inject: {\n configProvider: { 'default': function _default() {\n return ConfigConsumerProps;\n } }\n },\n methods: {\n renderEmpty: function renderEmpty(contentLocale) {\n var h = this.$createElement;\n var _$props = this.$props,\n customizePrefixCls = _$props.prefixCls,\n imageStyle = _$props.imageStyle;\n var getPrefixCls = this.configProvider.getPrefixCls;\n\n var prefixCls = getPrefixCls('empty', customizePrefixCls);\n var image = getComponentFromProp(this, 'image') || h(DefaultEmptyImg);\n var description = getComponentFromProp(this, 'description');\n\n var des = typeof description !== 'undefined' ? description : contentLocale.description;\n var alt = typeof des === 'string' ? des : 'empty';\n var cls = _defineProperty({}, prefixCls, true);\n var imageNode = null;\n if (typeof image === 'string') {\n imageNode = h('img', {\n attrs: { alt: alt, src: image }\n });\n } else if ((typeof image === 'undefined' ? 'undefined' : _typeof(image)) === 'object' && image.PRESENTED_IMAGE_SIMPLE) {\n var Image = image;\n imageNode = h(Image);\n cls[prefixCls + '-normal'] = true;\n } else {\n imageNode = image;\n }\n return h(\n 'div',\n _mergeJSXProps([{ 'class': cls }, { on: getListeners(this) }]),\n [h(\n 'div',\n { 'class': prefixCls + '-image', style: imageStyle },\n [imageNode]\n ), des && h(\n 'p',\n { 'class': prefixCls + '-description' },\n [des]\n ), this.$slots['default'] && h(\n 'div',\n { 'class': prefixCls + '-footer' },\n [this.$slots['default']]\n )]\n );\n }\n },\n render: function render() {\n var h = arguments[0];\n\n return h(LocaleReceiver, {\n attrs: { componentName: 'Empty' },\n scopedSlots: { 'default': this.renderEmpty } });\n }\n};\n\nEmpty.PRESENTED_IMAGE_DEFAULT = DefaultEmptyImg;\nEmpty.PRESENTED_IMAGE_SIMPLE = SimpleEmptyImg;\n\n/* istanbul ignore next */\nEmpty.install = function (Vue) {\n Vue.use(Base);\n Vue.component(Empty.name, Empty);\n};\n\nexport default Empty;","export default {\n functional: true,\n PRESENTED_IMAGE_SIMPLE: true,\n render: function render() {\n var h = arguments[0];\n\n return h(\n \"svg\",\n {\n attrs: { width: \"64\", height: \"41\", viewBox: \"0 0 64 41\", xmlns: \"http://www.w3.org/2000/svg\" }\n },\n [h(\n \"g\",\n {\n attrs: { transform: \"translate(0 1)\", fill: \"none\", fillRule: \"evenodd\" }\n },\n [h(\"ellipse\", {\n attrs: { fill: \"#F5F5F5\", cx: \"32\", cy: \"33\", rx: \"32\", ry: \"7\" }\n }), h(\n \"g\",\n {\n attrs: { fillRule: \"nonzero\", stroke: \"#D9D9D9\" }\n },\n [h(\"path\", {\n attrs: { d: \"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z\" }\n }), h(\"path\", {\n attrs: {\n d: \"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z\",\n fill: \"#FAFAFA\"\n }\n })]\n )]\n )]\n );\n }\n};","import _extends from 'babel-runtime/helpers/extends';\nimport AsyncValidator from 'async-validator';\nimport cloneDeep from 'lodash/cloneDeep';\nimport PropTypes from '../_util/vue-types';\nimport { ColProps } from '../grid/Col';\nimport { initDefaultProps, getComponentFromProp, getOptionProps, getEvents, filterEmpty, isValidElement } from '../_util/props-util';\nimport BaseMixin from '../_util/BaseMixin';\nimport { ConfigConsumerProps } from '../config-provider/configConsumerProps';\nimport FormItem from '../form/FormItem';\nimport { cloneElement } from '../_util/vnode';\n\nfunction noop() {}\n\nfunction getPropByPath(obj, path, strict) {\n var tempObj = obj;\n path = path.replace(/\\[(\\w+)\\]/g, '.$1');\n path = path.replace(/^\\./, '');\n\n var keyArr = path.split('.');\n var i = 0;\n for (var len = keyArr.length; i < len - 1; ++i) {\n if (!tempObj && !strict) break;\n var key = keyArr[i];\n if (key in tempObj) {\n tempObj = tempObj[key];\n } else {\n if (strict) {\n throw new Error('please transfer a valid prop path to form item!');\n }\n break;\n }\n }\n return {\n o: tempObj,\n k: keyArr[i],\n v: tempObj ? tempObj[keyArr[i]] : null\n };\n}\nexport var FormItemProps = {\n id: PropTypes.string,\n htmlFor: PropTypes.string,\n prefixCls: PropTypes.string,\n label: PropTypes.any,\n help: PropTypes.any,\n extra: PropTypes.any,\n labelCol: PropTypes.shape(ColProps).loose,\n wrapperCol: PropTypes.shape(ColProps).loose,\n hasFeedback: PropTypes.bool,\n colon: PropTypes.bool,\n labelAlign: PropTypes.oneOf(['left', 'right']),\n prop: PropTypes.string,\n rules: PropTypes.oneOfType([Array, Object]),\n autoLink: PropTypes.bool,\n required: PropTypes.bool,\n validateStatus: PropTypes.oneOf(['', 'success', 'warning', 'error', 'validating'])\n};\n\nexport default {\n name: 'AFormModelItem',\n __ANT_NEW_FORM_ITEM: true,\n mixins: [BaseMixin],\n props: initDefaultProps(FormItemProps, {\n hasFeedback: false,\n autoLink: true\n }),\n inject: {\n configProvider: { 'default': function _default() {\n return ConfigConsumerProps;\n } },\n FormContext: { 'default': function _default() {\n return {};\n } }\n },\n data: function data() {\n return {\n validateState: this.validateStatus,\n validateMessage: '',\n validateDisabled: false,\n validator: {}\n };\n },\n\n\n computed: {\n fieldValue: function fieldValue() {\n var model = this.FormContext.model;\n if (!model || !this.prop) {\n return;\n }\n var path = this.prop;\n if (path.indexOf(':') !== -1) {\n path = path.replace(/:/g, '.');\n }\n return getPropByPath(model, path, true).v;\n },\n isRequired: function isRequired() {\n var rules = this.getRules();\n var isRequired = false;\n if (rules && rules.length) {\n rules.every(function (rule) {\n if (rule.required) {\n isRequired = true;\n return false;\n }\n return true;\n });\n }\n return isRequired;\n }\n },\n watch: {\n validateStatus: function validateStatus(val) {\n this.validateState = val;\n }\n },\n mounted: function mounted() {\n if (this.prop) {\n var addField = this.FormContext.addField;\n\n addField && addField(this);\n this.initialValue = cloneDeep(this.fieldValue);\n }\n },\n beforeDestroy: function beforeDestroy() {\n var removeField = this.FormContext.removeField;\n\n removeField && removeField(this);\n },\n\n methods: {\n validate: function validate(trigger) {\n var _this = this;\n\n var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;\n\n this.validateDisabled = false;\n var rules = this.getFilteredRule(trigger);\n if (!rules || rules.length === 0) {\n callback();\n return true;\n }\n this.validateState = 'validating';\n var descriptor = {};\n if (rules && rules.length > 0) {\n rules.forEach(function (rule) {\n delete rule.trigger;\n });\n }\n descriptor[this.prop] = rules;\n var validator = new AsyncValidator(descriptor);\n if (this.FormContext && this.FormContext.validateMessages) {\n validator.messages(this.FormContext.validateMessages);\n }\n var model = {};\n model[this.prop] = this.fieldValue;\n validator.validate(model, { firstFields: true }, function (errors, invalidFields) {\n _this.validateState = errors ? 'error' : 'success';\n _this.validateMessage = errors ? errors[0].message : '';\n callback(_this.validateMessage, invalidFields);\n _this.FormContext && _this.FormContext.$emit && _this.FormContext.$emit('validate', _this.prop, !errors, _this.validateMessage || null);\n });\n },\n getRules: function getRules() {\n var formRules = this.FormContext.rules;\n var selfRules = this.rules;\n var requiredRule = this.required !== undefined ? { required: !!this.required, trigger: 'change' } : [];\n var prop = getPropByPath(formRules, this.prop || '');\n formRules = formRules ? prop.o[this.prop || ''] || prop.v : [];\n return [].concat(selfRules || formRules || []).concat(requiredRule);\n },\n getFilteredRule: function getFilteredRule(trigger) {\n var rules = this.getRules();\n return rules.filter(function (rule) {\n if (!rule.trigger || trigger === '') return true;\n if (Array.isArray(rule.trigger)) {\n return rule.trigger.indexOf(trigger) > -1;\n } else {\n return rule.trigger === trigger;\n }\n }).map(function (rule) {\n return _extends({}, rule);\n });\n },\n onFieldBlur: function onFieldBlur() {\n this.validate('blur');\n },\n onFieldChange: function onFieldChange() {\n if (this.validateDisabled) {\n this.validateDisabled = false;\n return;\n }\n this.validate('change');\n },\n clearValidate: function clearValidate() {\n this.validateState = '';\n this.validateMessage = '';\n this.validateDisabled = false;\n },\n resetField: function resetField() {\n var _this2 = this;\n\n this.validateState = '';\n this.validateMessage = '';\n var model = this.FormContext.model || {};\n var value = this.fieldValue;\n var path = this.prop;\n if (path.indexOf(':') !== -1) {\n path = path.replace(/:/, '.');\n }\n var prop = getPropByPath(model, path, true);\n this.validateDisabled = true;\n if (Array.isArray(value)) {\n prop.o[prop.k] = [].concat(this.initialValue);\n } else {\n prop.o[prop.k] = this.initialValue;\n }\n // reset validateDisabled after onFieldChange triggered\n this.$nextTick(function () {\n _this2.validateDisabled = false;\n });\n }\n },\n render: function render() {\n var _this3 = this;\n\n var h = arguments[0];\n var $slots = this.$slots,\n $scopedSlots = this.$scopedSlots;\n\n var props = getOptionProps(this);\n var label = getComponentFromProp(this, 'label');\n var extra = getComponentFromProp(this, 'extra');\n var help = getComponentFromProp(this, 'help');\n var formProps = {\n props: _extends({}, props, {\n label: label,\n extra: extra,\n validateStatus: this.validateState,\n help: this.validateMessage || help,\n required: this.isRequired || props.required\n })\n };\n var children = filterEmpty($scopedSlots['default'] ? $scopedSlots['default']() : $slots['default']);\n var firstChildren = children[0];\n if (this.prop && this.autoLink && isValidElement(firstChildren)) {\n var originalEvents = getEvents(firstChildren);\n var originalBlur = originalEvents.blur;\n var originalChange = originalEvents.change;\n firstChildren = cloneElement(firstChildren, {\n on: {\n blur: function blur() {\n originalBlur && originalBlur.apply(undefined, arguments);\n _this3.onFieldBlur();\n },\n change: function change() {\n if (Array.isArray(originalChange)) {\n for (var i = 0, l = originalChange.length; i < l; i++) {\n originalChange[i].apply(originalChange, arguments);\n }\n } else if (originalChange) {\n originalChange.apply(undefined, arguments);\n }\n _this3.onFieldChange();\n }\n }\n });\n }\n return h(\n FormItem,\n formProps,\n [firstChildren, children.slice(1)]\n );\n }\n};","import _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _extends from 'babel-runtime/helpers/extends';\nimport PropTypes from '../_util/vue-types';\nimport classNames from 'classnames';\nimport { ColProps } from '../grid/Col';\nimport isRegExp from 'lodash/isRegExp';\nimport warning from '../_util/warning';\nimport FormItem from './FormItem';\nimport { initDefaultProps, getListeners } from '../_util/props-util';\nimport { ConfigConsumerProps } from '../config-provider/configConsumerProps';\n\nexport var FormProps = {\n layout: PropTypes.oneOf(['horizontal', 'inline', 'vertical']),\n labelCol: PropTypes.shape(ColProps).loose,\n wrapperCol: PropTypes.shape(ColProps).loose,\n colon: PropTypes.bool,\n labelAlign: PropTypes.oneOf(['left', 'right']),\n prefixCls: PropTypes.string,\n hideRequiredMark: PropTypes.bool,\n model: PropTypes.object,\n rules: PropTypes.object,\n validateMessages: PropTypes.any,\n validateOnRuleChange: PropTypes.bool\n};\n\nexport var ValidationRule = {\n /** validation error message */\n message: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n /** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */\n type: PropTypes.string,\n /** indicates whether field is required */\n required: PropTypes.boolean,\n /** treat required fields that only contain whitespace as errors */\n whitespace: PropTypes.boolean,\n /** validate the exact length of a field */\n len: PropTypes.number,\n /** validate the min length of a field */\n min: PropTypes.number,\n /** validate the max length of a field */\n max: PropTypes.number,\n /** validate the value from a list of possible values */\n 'enum': PropTypes.oneOfType([String, PropTypes.arrayOf(String)]),\n /** validate from a regular expression */\n pattern: PropTypes.custom(isRegExp),\n /** transform a value before validation */\n transform: PropTypes.func,\n /** custom validate function (Note: callback must be called) */\n validator: PropTypes.func\n};\n\nvar Form = {\n name: 'AFormModel',\n props: initDefaultProps(FormProps, {\n layout: 'horizontal',\n hideRequiredMark: false,\n colon: true,\n validateOnRuleChange: false\n }),\n Item: FormItem,\n created: function created() {\n this.fields = [];\n },\n provide: function provide() {\n return {\n FormContext: this\n };\n },\n\n inject: {\n configProvider: { 'default': function _default() {\n return ConfigConsumerProps;\n } }\n },\n watch: {\n rules: function rules() {\n if (this.validateOnRuleChange) {\n this.validate(function () {});\n }\n }\n },\n computed: {\n vertical: function vertical() {\n return this.layout === 'vertical';\n }\n },\n methods: {\n addField: function addField(field) {\n if (field) {\n this.fields.push(field);\n }\n },\n removeField: function removeField(field) {\n if (field.prop) {\n this.fields.splice(this.fields.indexOf(field), 1);\n }\n },\n onSubmit: function onSubmit(e) {\n if (!getListeners(this).submit) {\n e.preventDefault();\n } else {\n this.$emit('submit', e);\n }\n },\n resetFields: function resetFields() {\n if (!this.model) {\n warning(false, 'FormModel', 'model is required for resetFields to work.');\n return;\n }\n this.fields.forEach(function (field) {\n field.resetField();\n });\n },\n clearValidate: function clearValidate() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n var fields = props.length ? typeof props === 'string' ? this.fields.filter(function (field) {\n return props === field.prop;\n }) : this.fields.filter(function (field) {\n return props.indexOf(field.prop) > -1;\n }) : this.fields;\n fields.forEach(function (field) {\n field.clearValidate();\n });\n },\n validate: function validate(callback) {\n var _this = this;\n\n if (!this.model) {\n warning(false, 'FormModel', 'model is required for resetFields to work.');\n return;\n }\n var promise = void 0;\n // if no callback, return promise\n if (typeof callback !== 'function' && window.Promise) {\n promise = new window.Promise(function (resolve, reject) {\n callback = function callback(valid) {\n valid ? resolve(valid) : reject(valid);\n };\n });\n }\n var valid = true;\n var count = 0;\n // 如果需要验证的fields为空,调用验证时立刻返回callback\n if (this.fields.length === 0 && callback) {\n callback(true);\n }\n var invalidFields = {};\n this.fields.forEach(function (field) {\n field.validate('', function (message, field) {\n if (message) {\n valid = false;\n }\n invalidFields = _extends({}, invalidFields, field);\n if (typeof callback === 'function' && ++count === _this.fields.length) {\n callback(valid, invalidFields);\n }\n });\n });\n if (promise) {\n return promise;\n }\n },\n validateField: function validateField(props, cb) {\n props = [].concat(props);\n var fields = this.fields.filter(function (field) {\n return props.indexOf(field.prop) !== -1;\n });\n if (!fields.length) {\n warning(false, 'FormModel', 'please pass correct props!');\n return;\n }\n fields.forEach(function (field) {\n field.validate('', cb);\n });\n }\n },\n\n render: function render() {\n var _classNames;\n\n var h = arguments[0];\n var customizePrefixCls = this.prefixCls,\n hideRequiredMark = this.hideRequiredMark,\n layout = this.layout,\n onSubmit = this.onSubmit,\n $slots = this.$slots;\n\n var getPrefixCls = this.configProvider.getPrefixCls;\n var prefixCls = getPrefixCls('form', customizePrefixCls);\n\n var formClassName = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, prefixCls + '-horizontal', layout === 'horizontal'), _defineProperty(_classNames, prefixCls + '-vertical', layout === 'vertical'), _defineProperty(_classNames, prefixCls + '-inline', layout === 'inline'), _defineProperty(_classNames, prefixCls + '-hide-required-mark', hideRequiredMark), _classNames));\n return h(\n 'form',\n {\n on: {\n 'submit': onSubmit\n },\n 'class': formClassName },\n [$slots['default']]\n );\n }\n};\n\nexport default Form;","import Vue from 'vue';\nimport Form from './Form';\nimport ref from 'vue-ref';\nimport FormDecoratorDirective from '../_util/FormDecoratorDirective';\nimport Base from '../base';\n\nVue.use(ref, { name: 'ant-ref' });\nVue.use(FormDecoratorDirective);\n\nexport { FormProps, ValidationRule } from './Form';\nexport { FormItemProps } from './FormItem';\n\n/* istanbul ignore next */\nForm.install = function (Vue) {\n Vue.use(Base);\n Vue.component(Form.name, Form);\n Vue.component(Form.Item.name, Form.Item);\n};\n\nexport default Form;"],"sourceRoot":""}