fast-element-ui
Version:
Vue项目快速开发组件框架,使用element-ui为基础库二次封装构建。
1 lines • 20.5 kB
JavaScript
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.FastElementUI=n():t.FastElementUI=n()}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=192)}([,,function(t,n,e){var r=e(56);t.exports=function(t,n){return r(t,n)}},function(t,n,e){var r=e(47);t.exports=function(t,n,e){var o=null==t?void 0:r(t,n);return void 0===o?e:o}},function(t,n,e){"use strict";e.d(n,"a",(function(){return r}));var r=function(t){0}},function(t,n,e){var r=e(90),o=e(32),i=e(79),u=e(7),c=e(17),a=e(26),f=e(20),l=e(27),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(c(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||a(t)||l(t)||i(t)))return!t.length;var n=o(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(f(t))return!r(t).length;for(var e in t)if(s.call(t,e))return!1;return!0}},function(t,n){t.exports=function(t){return null==t}},function(t,n){var e=Array.isArray;t.exports=e},function(t,n,e){var r=e(12),o=e(14),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var u=t[n];i.call(t,n)&&o(u,e)&&(void 0!==e||n in t)||r(t,n,e)}},function(t,n){t.exports=function(t,n){return function(e){return t(n(e))}}},function(t,n,e){var r=e(14);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},function(t,n,e){var r=e(54);t.exports=function(t,n,e){return null==t?t:r(t,n,e)}},function(t,n,e){var r=e(29);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||Function("return this")()}).call(this,e(96))},function(t,n,e){var r=e(7);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},function(t,n,e){var r=e(31),o=e(33);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,n,e){var r=e(8),o=e(12);t.exports=function(t,n,e,i){var u=!e;e||(e={});for(var c=-1,a=n.length;++c<a;){var f=n[c],l=i?i(e[f],t[f],f,e,t):void 0;void 0===l&&(l=t[f]),u?o(e,f,l):r(e,f,l)}return e}},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n){t.exports=function(){return!1}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,function(t,n,e){var r=e(80),o=e(81),i=e(82),u=e(16),c=e(18),a=e(85),f=e(86),l=e(87),s=f((function(t,n){var e={};if(null==t)return e;var f=!1;n=r(n,(function(n){return n=u(n,t),f||(f=n.length>1),n})),c(t,l(t),e),f&&(e=o(e,7,a));for(var s=n.length;s--;)i(e,n[s]);return e}));t.exports=s},function(t,n,e){var r=e(21);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n){t.exports=function(){return!1}},function(t,n){t.exports=function(){return!1}},function(t,n){t.exports=function(t){return t}},function(t,n,e){var r=e(30),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,n){t.exports=function(t,n){return null==t?void 0:t[n]}},function(t,n,e){var r=e(19),o=e(13);t.exports=function(t){if(!o(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},,function(t,n){t.exports=function(t,n,e){for(var r=e-1,o=t.length;++r<o;)if(t[r]===n)return r;return-1}},,,,,,,function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},,function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(15),o=e(97).f,i=e(98),u=e(45),c=e(89),a=e(65),f=e(44),l=function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n};t.exports=function(t,n){var e,s,p,v,d,h,y,b,x=t.target,g=t.global,m=t.stat,_=t.proto,j=g?r:m?r[x]:(r[x]||{}).prototype,w=g?u:u[x]||(u[x]={}),O=w.prototype;for(p in n)e=!i(g?p:x+(m?".":"#")+p,t.forced)&&j&&f(j,p),d=w[p],e&&(h=t.noTargetGet?(b=o(j,p))&&b.value:j[p]),v=e&&h?h:n[p],e&&typeof d==typeof v||(y=t.bind&&e?c(v,r):t.wrap&&e?l(v):_&&"function"==typeof v?c(Function.call,v):v,(t.sham||v&&v.sham||d&&d.sham)&&a(y,"sham",!0),w[p]=y,_&&(f(u,s=x+"Prototype")||a(u,s,{}),u[s][p]=v,t.real&&O&&!O[p]&&a(O,p,v)))}},function(t,n){t.exports=function(t,n){return null==t?void 0:t[n]}},function(t,n,e){var r=e(49),o=e(50),i=e(51),u=e(52),c=e(53);function a(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=u,a.prototype.set=c,t.exports=a},function(t,n){t.exports=function(){this.__data__=[],this.size=0}},function(t,n,e){var r=e(10),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0)&&(e==n.length-1?n.pop():o.call(n,e,1),--this.size,!0)}},function(t,n,e){var r=e(10);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},function(t,n,e){var r=e(10);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,n,e){var r=e(10);t.exports=function(t,n){var e=this.__data__,o=r(e,t);return o<0?(++this.size,e.push([t,n])):e[o][1]=n,this}},function(t,n,e){var r=e(8),o=e(16),i=e(55),u=e(13),c=e(28);t.exports=function(t,n,e,a){if(!u(t))return t;for(var f=-1,l=(n=o(n,t)).length,s=l-1,p=t;null!=p&&++f<l;){var v=c(n[f]),d=e;if(f!=s){var h=p[v];void 0===(d=a?a(h,v,p):void 0)&&(d=u(h)?h:i(n[f+1])?[]:{})}r(p,v,d),p=p[v]}return t}},function(t,n){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},function(t,n,e){var r=e(57),o=e(25);t.exports=function t(n,e,i,u,c){return n===e||(null==n||null==e||!o(n)&&!o(e)?n!=n&&e!=e:r(n,e,i,u,t,c))}},function(t,n,e){var r=e(48),o=e(58),i=e(62),u=e(63),c=e(32),a=e(7),f=e(26),l=e(27),s="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,v,d,h){var y=a(t),b=a(n),x=y?"[object Array]":c(t),g=b?"[object Array]":c(n),m=(x="[object Arguments]"==x?s:x)==s,_=(g="[object Arguments]"==g?s:g)==s,j=x==g;if(j&&f(t)){if(!f(n))return!1;y=!0,m=!1}if(j&&!m)return h||(h=new r),y||l(t)?o(t,n,e,v,d,h):i(t,n,x,e,v,d,h);if(!(1&e)){var w=m&&p.call(t,"__wrapped__"),O=_&&p.call(n,"__wrapped__");if(w||O){var E=w?t.value():t,S=O?n.value():n;return h||(h=new r),d(E,S,e,v,h)}}return!!j&&(h||(h=new r),u(t,n,e,v,d,h))}},function(t,n,e){var r=e(59),o=e(60),i=e(61);t.exports=function(t,n,e,u,c,a){var f=1&e,l=t.length,s=n.length;if(l!=s&&!(f&&s>l))return!1;var p=a.get(t);if(p&&a.get(n))return p==n;var v=-1,d=!0,h=2&e?new r:void 0;for(a.set(t,n),a.set(n,t);++v<l;){var y=t[v],b=n[v];if(u)var x=f?u(b,y,v,n,t,a):u(y,b,v,t,n,a);if(void 0!==x){if(x)continue;d=!1;break}if(h){if(!o(n,(function(t,n){if(!i(h,n)&&(y===t||c(y,t,e,u,a)))return h.push(n)}))){d=!1;break}}else if(y!==b&&!c(y,b,e,u,a)){d=!1;break}}return a.delete(t),a.delete(n),d}},function(t,n,e){var r=e(7);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},function(t,n,e){var r=e(35);t.exports=function(t,n){return!!(null==t?0:t.length)&&r(t,n,0)>-1}},function(t,n){t.exports=function(t,n){return t===n||t!=t&&n!=n}},function(t,n,e){var r=e(64),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,i,u,c){var a=1&e,f=r(t),l=f.length;if(l!=r(n).length&&!a)return!1;for(var s=l;s--;){var p=f[s];if(!(a?p in n:o.call(n,p)))return!1}var v=c.get(t);if(v&&c.get(n))return v==n;var d=!0;c.set(t,n),c.set(n,t);for(var h=a;++s<l;){var y=t[p=f[s]],b=n[p];if(i)var x=a?i(b,y,p,n,t,c):i(y,b,p,t,n,c);if(!(void 0===x?y===b||u(y,b,e,i,c):x)){d=!1;break}h||(h="constructor"==p)}if(d&&!h){var g=t.constructor,m=n.constructor;g==m||!("constructor"in t)||!("constructor"in n)||"function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m||(d=!1)}return c.delete(t),c.delete(n),d}},function(t,n,e){var r=e(9)(Object.keys,Object);t.exports=r},function(t,n,e){var r=e(24),o=e(69),i=e(68);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},,function(t,n,e){var r=e(42);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(24),o=e(77),i=e(67),u=e(72),c=Object.defineProperty;n.f=r?c:function(t,n,e){if(i(t),n=u(n,!0),i(e),o)try{return c(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},,function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(42);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(9)(Object.getPrototypeOf,Object);t.exports=r},function(t,n,e){var r=e(19),o=e(73),i=e(25),u=Function.prototype,c=Object.prototype,a=u.toString,f=c.hasOwnProperty,l=a.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var n=o(t);if(null===n)return!0;var e=f.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&a.call(e)==l}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(91),o=e(75);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(24),o=e(21),i=e(93);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,n){t.exports=function(){return!1}},function(t,n){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}},function(t,n){t.exports=function(t){return t}},function(t,n,e){var r=e(16),o=e(83),i=e(84),u=e(28);t.exports=function(t,n){return n=r(n,t),null==(t=i(t,n))||delete t[u(o(n))]}},function(t,n){t.exports=function(t){var n=null==t?0:t.length;return n?t[n-1]:void 0}},function(t,n){t.exports=function(t){return t}},function(t,n,e){var r=e(74);t.exports=function(t){return r(t)?void 0:t}},function(t,n){t.exports=function(t){return t}},function(t,n){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},function(t,n,e){"use strict";function r(t,n,e,r,o,i,u,c){var a,f="function"==typeof t?t.options:t;if(n&&(f.render=n,f.staticRenderFns=e,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),u?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},f._ssrRegister=a):o&&(a=c?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var l=f.render;f.render=function(t,n){return a.call(n),l(t,n)}}else{var s=f.beforeCreate;f.beforeCreate=s?[].concat(s,a):[a]}return{exports:t,options:f}}e.d(n,"a",(function(){return r}))},function(t,n,e){var r=e(78);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 0:return function(){return t.call(n)};case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(9)(Object.keys,Object);t.exports=r},function(t,n,e){var r=e(21),o=e(71),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},,function(t,n,e){var r=e(15),o=e(42),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},,function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(24),o=e(95),i=e(68),u=e(76),c=e(72),a=e(44),f=e(77),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=u(t),n=c(n,!0),f)try{return l(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n,e){var r=e(21),o=/#|\.prototype\./,i=function(t,n){var e=c[u(t)];return e==f||e!=a&&("function"==typeof n?r(n):!!n)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},,,,,,,,function(t,n,e){t.exports=e(145)},,,,,,,,,function(t,n){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n);var r=e(4),o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",t._l(t.rowsData,(function(n,r){return e("el-row",{key:r,style:t.border?t.rowsData.length-1===r?"border: 1px solid #E0E0E0;":"border: 1px solid #E0E0E0;border-bottom: 0px;":"",attrs:{gutter:t.gutter}},t._l(n,(function(r,o){return e("el-col",{key:r.name,style:t.border&&n.length>1&&n.length-1!==o?"border-right: 1px solid #E0E0E0;":"",attrs:{span:t.baseSpanNum/t.columns*r.span}},[e("el-form-item",{class:r.itemCtCls,attrs:{label:r.label+t.colonText,prop:r.name,"label-width":r.labelWidth,required:r.required,rules:r.rules,error:r.error,"show-message":r.showMessage,"inline-message":r.inlineMessage,size:r.size},scopedSlots:t._u([r.hasOwnProperty("labelHtml")?{key:"label",fn:function(){return[e("label",{domProps:{innerHTML:t._s(r.labelHtml+t.colonText)}})]},proxy:!0}:null,t._isRenderErrorSlot(r)?{key:"error",fn:function(n){var e=n.error;return[t._v("\n "+t._s(t._renderErrorHtml(r.slotNode.error,e))+"\n "),t._t("default")]}}:null],null,!0)},[t._v(" "),t._v(" "),e(t.getComponent(r.type),t._b({tag:"component",model:{value:t.model[r.name],callback:function(n){t.$set(t.model,r.name,n)},expression:"model[col.name]"}},"component",t.getComponentProps(r),!1))],1)],1)})),1)})),1)};o._withStripped=!0;var i=e(106),u=e.n(i),c=e(6),a=e.n(c),f=e(3),l=e.n(f),s=e(23),p=e.n(s),v={name:"FastFormLayout",props:{colon:{type:Boolean,default:!1},columns:{type:Number,default:4},border:{type:Boolean,default:!0},detail:{type:Array,default:function(){return[]}},model:{type:Object,default:function(){return{}}}},data:function(){return this.desc="表单布局,是一种专门用于管理表单中输入字段的布局",this.baseSpanNum=24,this.gutter=10,{}},computed:{colonText:function(){return this.colon?":":""},rowsData:function(){for(var t=[],n=0,e=this.detail.length;n<e;n++){var r=[this.detail[n]],o=u()(this.detail[n].span);if(o>=this.columns)t.push(r);else{for(var i=n+1,c=this.detail.length;i<c;i++)if(o+=u()(this.detail[i].span),r.push(this.detail[i]),o>=this.columns){n=i;break}if(t.push(r),r.length===e||r[r.length-1].name===this.detail[this.detail.length-1].name)break}}return t}},methods:{_isRenderErrorSlot:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!a()(l()(t,"slotNode.error"))},_renderErrorHtml:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.$slots.default=t(this.$createElement,n)},getComponent:function(t){return"fast-".concat(t)},getComponentProps:function(t){return p()(t,["value","span","name","label","type","labelHtml","rules","labelWidth","required","error","showMessage","inlineMessage","size","show-message","inline-message"])}}},d=e(88),h=Object(d.a)(v,o,[],!1,null,null,null);h.options.__file="packages/form-layout/form.vue";var y=h.exports;y.install=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(Object(r.a)(y.name+"----install----"),n&&n.length>0)for(var e=0;e<n.length;e++)t.use(n[e]);t.component(y.name,y)};n.default=y},,,,,,,,,,,function(t,n,e){var r=e(146);t.exports=r},function(t,n,e){e(147);var r=e(45);t.exports=r.parseInt},function(t,n,e){var r=e(46),o=e(148);r({global:!0,forced:parseInt!=o},{parseInt:o})},function(t,n,e){var r=e(15),o=e(149).trim,i=e(115),u=r.parseInt,c=/^[+-]?0[Xx]/,a=8!==u(i+"08")||22!==u(i+"0x16");t.exports=a?function(t,n){var e=o(String(t));return u(e,n>>>0||(c.test(e)?16:10))}:u},function(t,n,e){var r=e(75),o="["+e(115)+"]",i=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),c=function(t){return function(n){var e=String(r(n));return 1&t&&(e=e.replace(i,"")),2&t&&(e=e.replace(u,"")),e}};t.exports={start:c(1),end:c(2),trim:c(3)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n);var r=e(4),o=e(11),i=e.n(o),u=e(2),c=e.n(u),a=e(5),f=e.n(a),l=e(134),s={name:"FastForm",inheritAttrs:!1,props:{border:{type:Boolean,default:!1},colon:{type:Boolean,default:!1},columns:{type:Number,default:2},detail:{type:Array,default:function(){return[]}},isRender:{type:Boolean,default:!0},isDisplay:{type:Boolean,default:!0}},data:function(){return{}},methods:{_validateEvent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$emit("validate",t,n,e)},validate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this.$refs["".concat(this._uid,"-el-form-ref")].validate((function(e){if(!e)return n(),!1;t()}))},resetFields:function(){this.$refs["".concat(this._uid,"-el-form-ref")].resetFields()},clearValidate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.$refs["".concat(this._uid,"-el-form-ref")].clearValidate(t)},validateField:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};f()(t)||this.$refs["".concat(this._uid,"-el-form-ref")].validateField(t,n)},getForm:function(){return this.$refs["".concat(this._uid,"-el-form-ref")]}},render:function(t){if(c()(this.isRender,!1))return t();var n={};return c()(this.isDisplay,!1)&&i()(n,"display","none"),t("el-form",{ref:"".concat(this._uid,"-el-form-ref"),style:n,attrs:{id:this.$attrs.id},props:this.$attrs,on:{validate:this._validateEvent}},[t(l.default,{props:{colon:this.colon,columns:this.columns,border:this.border,detail:this.detail,model:this.$attrs.model}})])},install:function(t,n){Object(r.a)(s.name+"----install----"),n&&t.use(n),t.component(s.name,s)}};n.default=s}]).default}));