{"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/simple.js","webpack:///./node_modules/ant-design-vue/es/empty/index.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":["noop","intersperseSpace","list","reduce","current","item","concat","slice","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","undefined","itemVnode","isSlot","i","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","a","b","isSlotScope","getHelpMessage","onlyControl","getOnlyControl","errors","getField","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","formItemNode","$el","control","querySelector","focus","onHelpAnimEnd","_key","$forceUpdate","isRequired","meta","validate","filter","rules","some","rule","renderHelp","_this","h","$createElement","transitionProps","afterEnter","afterLeave","renderExtra","renderValidateWrapper","c1","c2","c3","classes","iconType","icon","type","theme","renderWrapper","_ref","contextWrapperCol","mergedWrapperCol","style","on","restProps","className","colProps","renderLabel","_classNames","_FormContext","vertical","contextLabelAlign","contextLabelCol","contextColon","mergedLabelCol","mergedLabelAlign","labelClsBasic","labelColClassName","labelColStyle","labelColId","labelChildren","computedColon","haveColon","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","V","Vue","formItemContexts","Map","c","get","set","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","PRESENTED_IMAGE_SIMPLE","stroke","image","description","imageStyle","Empty","renderEmpty","contentLocale","des","alt","cls","imageNode","src","Image","LocaleReceiver","componentName","scopedSlots","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":"0HAAA,2RAmBA,SAASA,KAET,SAASC,EAAiBC,GACxB,OAAOA,EAAKC,QAAO,SAAUC,EAASC,GACpC,MAAO,GAAGC,OAAO,IAAmBF,GAAU,CAAC,IAAKC,MACnD,IAAIE,MAAM,GAER,IAAIC,EAAgB,CACzBC,GAAI,O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3L,EAAMJ,SAExBiO,EAAOpS,OAIZoS,EAAO5G,SAAQ,SAAUjH,GACvBA,EAAMgB,SAAS,GAAIwN,MAJnB,OAAA7G,EAAA,OAAQ,EAAO,YAAa,gCASlC3C,OAAQ,WACN,IAAIhC,EAEAzB,EAAI/F,UAAU,GACd6I,EAAqBlH,KAAKjD,UAC1BoL,EAAmBnI,KAAKmI,iBACxBF,EAASjI,KAAKiI,OACdgC,EAAWjK,KAAKiK,SAChBjJ,EAAShB,KAAKgB,OAEdmG,EAAenH,KAAKL,eAAewH,aACnCpK,EAAYoK,EAAa,OAAQD,GAEjCqD,EAAgB,IAAWxN,GAAY8I,EAAc,GAAI,IAAgBA,EAAa9I,EAAY,cAA0B,eAAXkL,GAA0B,IAAgBpC,EAAa9I,EAAY,YAAwB,aAAXkL,GAAwB,IAAgBpC,EAAa9I,EAAY,UAAsB,WAAXkL,GAAsB,IAAgBpC,EAAa9I,EAAY,sBAAuBoL,GAAmBtC,IAC1X,OAAOzB,EACL,OACA,CACEoB,GAAI,CACF,OAAUyE,GAEZ,MAASM,GACX,CAACvJ,EAAO,gBAKC,I,6CCrMf,OAAI6J,IAAI,IAAK,CAAE5L,KAAM,YACrB,OAAI4L,IAAIC,EAAA,MAMR,EAAKG,QAAU,SAAU1B,GACvBA,EAAIsB,IAAI,QACRtB,EAAI2B,UAAU,EAAKjM,KAAM,GACzBsK,EAAI2B,UAAU,EAAKrC,KAAK5J,KAAM,EAAK4J,OAGtB","file":"js/chunk-vendors~8840ee4a.934f2c78.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};","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 _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;","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":""}