UNPKG

shu-c-view

Version:

rollup 打包vue组件库框架

7 lines (6 loc) 21.9 kB
/*! * shu-c-view v1.2.37 * (c) 2022-09-22 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isEmpty"),e=require("lodash/isArray");function n(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var r=n(t),i=n(e),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(t){try{return!!t()}catch(t){return!0}},a=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={},u=function(t){return t&&t.Math==Math&&t},l=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof o&&o)||function(){return this}()||Function("return this")(),f=function(t){return"object"==typeof t?null!==t:"function"==typeof t},p=f,d=l.document,h=p(d)&&p(d.createElement),v=function(t){return h?d.createElement(t):{}},g=!a&&!s((function(){return 7!=Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a})),y=f,_=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},m=f,S=function(t,e){if(!m(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},x=a,b=g,E=_,w=S,C=Object.defineProperty;c.f=x?C:function(t,e,n){if(E(t),e=w(e,!0),E(n),b)try{return C(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var $=a,O=c.f,R=Function.prototype,P=R.toString,T=/^\s*function ([^ (]*)/;$&&!("name"in R)&&O(R,"name",{configurable:!0,get:function(){try{return P.call(this).match(T)[1]}catch(t){return""}}});var A={},j={},I={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,M=N&&!I.call({1:2},1);j.f=M?function(t){var e=N(this,t);return!!e&&e.enumerable}:I;var D=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},k={}.toString,U=function(t){return k.call(t).slice(8,-1)},L=U,F="".split,B=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},V=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==L(t)?F.call(t,""):Object(t)}:Object,K=B,z=function(t){return V(K(t))},G={}.hasOwnProperty,W=function(t,e){return G.call(t,e)},X=a,Y=j,q=D,Z=z,H=S,J=W,Q=g,tt=Object.getOwnPropertyDescriptor;A.f=X?tt:function(t,e){if(t=Z(t),e=H(e,!0),Q)try{return tt(t,e)}catch(t){}if(J(t,e))return q(!Y.f.call(t,e),t[e])};var et=c,nt=D,rt=a?function(t,e,n){return et.f(t,e,nt(1,n))}:function(t,e,n){return t[e]=n,t},it={exports:{}},ot=l,st=rt,at=function(t,e){try{st(ot,t,e)}catch(n){ot[t]=e}return e},ct=at,ut=l["__core-js_shared__"]||ct("__core-js_shared__",{}),lt=ut,ft=Function.toString;"function"!=typeof lt.inspectSource&&(lt.inspectSource=function(t){return ft.call(t)});var pt=lt.inspectSource,dt=pt,ht=l.WeakMap,vt="function"==typeof ht&&/native code/.test(dt(ht)),gt={exports:{}},yt=ut;(gt.exports=function(t,e){return yt[t]||(yt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var _t,mt,St,xt=0,bt=Math.random(),Et=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++xt+bt).toString(36)},wt=gt.exports,Ct=Et,$t=wt("keys"),Ot={},Rt=vt,Pt=f,Tt=rt,At=W,jt=ut,It=function(t){return $t[t]||($t[t]=Ct(t))},Nt=Ot,Mt=l.WeakMap;if(Rt){var Dt=jt.state||(jt.state=new Mt),kt=Dt.get,Ut=Dt.has,Lt=Dt.set;_t=function(t,e){return e.facade=t,Lt.call(Dt,t,e),e},mt=function(t){return kt.call(Dt,t)||{}},St=function(t){return Ut.call(Dt,t)}}else{var Ft=It("state");Nt[Ft]=!0,_t=function(t,e){return e.facade=t,Tt(t,Ft,e),e},mt=function(t){return At(t,Ft)?t[Ft]:{}},St=function(t){return At(t,Ft)}}var Bt={set:_t,get:mt,has:St,enforce:function(t){return St(t)?mt(t):_t(t,{})},getterFor:function(t){return function(e){var n;if(!Pt(e)||(n=mt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Vt=l,Kt=rt,zt=W,Gt=at,Wt=pt,Xt=Bt.get,Yt=Bt.enforce,qt=String(String).split("String");(it.exports=function(t,e,n,r){var i,o=!!r&&!!r.unsafe,s=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof e||zt(n,"name")||Kt(n,"name",e),(i=Yt(n)).source||(i.source=qt.join("string"==typeof e?e:""))),t!==Vt?(o?!a&&t[e]&&(s=!0):delete t[e],s?t[e]=n:Kt(t,e,n)):s?t[e]=n:Gt(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Xt(this).source||Wt(this)}));var Zt=l,Ht=l,Jt=function(t){return"function"==typeof t?t:void 0},Qt=function(t,e){return arguments.length<2?Jt(Zt[t])||Jt(Ht[t]):Zt[t]&&Zt[t][e]||Ht[t]&&Ht[t][e]},te={},ee=Math.ceil,ne=Math.floor,re=function(t){return isNaN(t=+t)?0:(t>0?ne:ee)(t)},ie=re,oe=Math.min,se=function(t){return t>0?oe(ie(t),9007199254740991):0},ae=re,ce=Math.max,ue=Math.min,le=z,fe=se,pe=function(t,e){var n=ae(t);return n<0?ce(n+e,0):ue(n,e)},de=function(t){return function(e,n,r){var i,o=le(e),s=fe(o.length),a=pe(r,s);if(t&&n!=n){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return!t&&-1}},he={includes:de(!0),indexOf:de(!1)},ve=W,ge=z,ye=he.indexOf,_e=Ot,me=function(t,e){var n,r=ge(t),i=0,o=[];for(n in r)!ve(_e,n)&&ve(r,n)&&o.push(n);for(;e.length>i;)ve(r,n=e[i++])&&(~ye(o,n)||o.push(n));return o},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");te.f=Object.getOwnPropertyNames||function(t){return me(t,Se)};var xe={};xe.f=Object.getOwnPropertySymbols;var be=te,Ee=xe,we=_,Ce=Qt("Reflect","ownKeys")||function(t){var e=be.f(we(t)),n=Ee.f;return n?e.concat(n(t)):e},$e=W,Oe=Ce,Re=A,Pe=c,Te=s,Ae=/#|\.prototype\./,je=function(t,e){var n=Ne[Ie(t)];return n==De||n!=Me&&("function"==typeof e?Te(e):!!e)},Ie=je.normalize=function(t){return String(t).replace(Ae,".").toLowerCase()},Ne=je.data={},Me=je.NATIVE="N",De=je.POLYFILL="P",ke=je,Ue=l,Le=A.f,Fe=rt,Be=it.exports,Ve=at,Ke=function(t,e){for(var n=Oe(e),r=Pe.f,i=Re.f,o=0;o<n.length;o++){var s=n[o];$e(t,s)||r(t,s,i(e,s))}},ze=ke,Ge=function(t,e){var n,r,i,o,s,a=t.target,c=t.global,u=t.stat;if(n=c?Ue:u?Ue[a]||Ve(a,{}):(Ue[a]||{}).prototype)for(r in e){if(o=e[r],i=t.noTargetGet?(s=Le(n,r))&&s.value:n[r],!ze(c?r:a+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ke(o,i)}(t.sham||i&&i.sham)&&Fe(o,"sham",!0),Be(n,r,o,t)}},We=_,Xe=function(){var t=We(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Ye={},qe=s;function Ze(t,e){return RegExp(t,e)}Ye.UNSUPPORTED_Y=qe((function(){var t=Ze("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Ye.BROKEN_CARET=qe((function(){var t=Ze("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var He=Xe,Je=Ye,Qe=RegExp.prototype.exec,tn=String.prototype.replace,en=Qe,nn=function(){var t=/a/,e=/b*/g;return Qe.call(t,"a"),Qe.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),rn=Je.UNSUPPORTED_Y||Je.BROKEN_CARET,on=void 0!==/()??/.exec("")[1];(nn||on||rn)&&(en=function(t){var e,n,r,i,o=this,s=rn&&o.sticky,a=He.call(o),c=o.source,u=0,l=t;return s&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),l=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,u++),n=new RegExp("^(?:"+c+")",a)),on&&(n=new RegExp("^"+c+"$(?!\\s)",a)),nn&&(e=o.lastIndex),r=Qe.call(s?n:o,l),s?r?(r.input=r.input.slice(u),r[0]=r[0].slice(u),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:nn&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),on&&r&&r.length>1&&tn.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var sn=en;Ge({target:"RegExp",proto:!0,forced:/./.exec!==sn},{exec:sn});var an,cn,un="process"==U(l.process),ln=Qt("navigator","userAgent")||"",fn=l.process,pn=fn&&fn.versions,dn=pn&&pn.v8;dn?cn=(an=dn.split("."))[0]+an[1]:ln&&(!(an=ln.match(/Edge\/(\d+)/))||an[1]>=74)&&(an=ln.match(/Chrome\/(\d+)/))&&(cn=an[1]);var hn=cn&&+cn,vn=un,gn=hn,yn=s,_n=!!Object.getOwnPropertySymbols&&!yn((function(){return!Symbol.sham&&(vn?38===gn:gn>37&&gn<41)})),mn=_n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Sn=l,xn=gt.exports,bn=W,En=Et,wn=_n,Cn=mn,$n=xn("wks"),On=Sn.Symbol,Rn=Cn?On:On&&On.withoutSetter||En,Pn=function(t){return bn($n,t)&&(wn||"string"==typeof $n[t])||(wn&&bn(On,t)?$n[t]=On[t]:$n[t]=Rn("Symbol."+t)),$n[t]},Tn=it.exports,An=s,jn=Pn,In=sn,Nn=rt,Mn=jn("species"),Dn=!An((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),kn="$0"==="a".replace(/./,"$0"),Un=jn("replace"),Ln=!!/./[Un]&&""===/./[Un]("a","$0"),Fn=!An((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Bn=re,Vn=B,Kn=function(t){return function(e,n){var r,i,o=String(Vn(e)),s=Bn(n),a=o.length;return s<0||s>=a?t?"":void 0:(r=o.charCodeAt(s))<55296||r>56319||s+1===a||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):r:t?o.slice(s,s+2):i-56320+(r-55296<<10)+65536}},zn={codeAt:Kn(!1),charAt:Kn(!0)}.charAt,Gn=B,Wn=function(t){return Object(Gn(t))},Xn=Wn,Yn=Math.floor,qn="".replace,Zn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Hn=/\$([$&'`]|\d{1,2})/g,Jn=U,Qn=sn,tr=function(t,e,n,r){var i=jn(t),o=!An((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),s=o&&!An((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Mn]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!s||"replace"===t&&(!Dn||!kn||Ln)||"split"===t&&!Fn){var a=/./[i],c=n(i,""[t],(function(t,e,n,r,i){return e.exec===In?o&&!i?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:kn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ln}),u=c[0],l=c[1];Tn(String.prototype,t,u),Tn(RegExp.prototype,i,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}r&&Nn(RegExp.prototype[i],"sham",!0)},er=_,nr=se,rr=re,ir=B,or=function(t,e,n){return e+(n?zn(t,e).length:1)},sr=function(t,e,n,r,i,o){var s=n+t.length,a=r.length,c=Hn;return void 0!==i&&(i=Xn(i),c=Zn),qn.call(o,c,(function(o,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(s);case"<":u=i[c.slice(1,-1)];break;default:var l=+c;if(0===l)return o;if(l>a){var f=Yn(l/10);return 0===f?o:f<=a?void 0===r[f-1]?c.charAt(1):r[f-1]+c.charAt(1):o}u=r[l-1]}return void 0===u?"":u}))},ar=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==Jn(t))throw TypeError("RegExp#exec called on incompatible receiver");return Qn.call(t,e)},cr=Math.max,ur=Math.min;tr("replace",2,(function(t,e,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,s=i?"$":"$0";return[function(n,r){var i=ir(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i,r):e.call(String(i),n,r)},function(t,r){if(!i&&o||"string"==typeof r&&-1===r.indexOf(s)){var a=n(e,t,this,r);if(a.done)return a.value}var c=er(t),u=String(this),l="function"==typeof r;l||(r=String(r));var f=c.global;if(f){var p=c.unicode;c.lastIndex=0}for(var d=[];;){var h=ar(c,u);if(null===h)break;if(d.push(h),!f)break;""===String(h[0])&&(c.lastIndex=or(u,nr(c.lastIndex),p))}for(var v,g="",y=0,_=0;_<d.length;_++){h=d[_];for(var m=String(h[0]),S=cr(ur(rr(h.index),u.length),0),x=[],b=1;b<h.length;b++)x.push(void 0===(v=h[b])?v:String(v));var E=h.groups;if(l){var w=[m].concat(x,S,u);void 0!==E&&w.push(E);var C=String(r.apply(void 0,w))}else C=sr(m,u,S,x,E,r);S>=y&&(g+=u.slice(y,S)+C,y=S+m.length)}return g+u.slice(y)}]}));var lr=f,fr=_,pr=function(t){if(!lr(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},dr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return fr(n),pr(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),hr=f,vr=dr,gr=f,yr=U,_r=Pn("match"),mr=Qt,Sr=c,xr=a,br=Pn("species"),Er=a,wr=l,Cr=ke,$r=function(t,e,n){var r,i;return vr&&"function"==typeof(r=e.constructor)&&r!==n&&hr(i=r.prototype)&&i!==n.prototype&&vr(t,i),t},Or=c.f,Rr=te.f,Pr=function(t){var e;return gr(t)&&(void 0!==(e=t[_r])?!!e:"RegExp"==yr(t))},Tr=Xe,Ar=Ye,jr=it.exports,Ir=s,Nr=Bt.set,Mr=function(t){var e=mr(t),n=Sr.f;xr&&e&&!e[br]&&n(e,br,{configurable:!0,get:function(){return this}})},Dr=Pn("match"),kr=wr.RegExp,Ur=kr.prototype,Lr=/a/g,Fr=/a/g,Br=new kr(Lr)!==Lr,Vr=Ar.UNSUPPORTED_Y;if(Er&&Cr("RegExp",!Br||Vr||Ir((function(){return Fr[Dr]=!1,kr(Lr)!=Lr||kr(Fr)==Fr||"/a/i"!=kr(Lr,"i")})))){for(var Kr=function(t,e){var n,r=this instanceof Kr,i=Pr(t),o=void 0===e;if(!r&&i&&t.constructor===Kr&&o)return t;Br?i&&!o&&(t=t.source):t instanceof Kr&&(o&&(e=Tr.call(t)),t=t.source),Vr&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var s=$r(Br?new kr(t,e):kr(t,e),r?this:Ur,Kr);return Vr&&n&&Nr(s,{sticky:n}),s},zr=function(t){t in Kr||Or(Kr,t,{configurable:!0,get:function(){return kr[t]},set:function(e){kr[t]=e}})},Gr=Rr(kr),Wr=0;Gr.length>Wr;)zr(Gr[Wr++]);Ur.constructor=Kr,Kr.prototype=Ur,jr(wr,"RegExp",Kr)}Mr("RegExp");var Xr=it.exports,Yr=_,qr=s,Zr=Xe,Hr=RegExp.prototype,Jr=Hr.toString,Qr=qr((function(){return"/a/b"!=Jr.call({source:"a",flags:"b"})})),ti="toString"!=Jr.name;(Qr||ti)&&Xr(RegExp.prototype,"toString",(function(){var t=Yr(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Hr)?Zr.call(t):n)}),{unsafe:!0});var ei=function(t){"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(t)};function ni(t,e,n,r,i,o,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const l="function"==typeof n?n.options:n;let f;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),r&&(l._scopeId=r),o?(f=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__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=f):e&&(f=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),f)if(l.functional){const t=l.render;l.render=function(e,n){return f.call(n),t(e,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,f):[f]}return n}const ri={name:"BaseStep",inject:["getPanel"],props:{title:String,icon:String,description:String,status:String},data:()=>({index:-1,lineStyle:{},internalStatus:"",position:"down"}),beforeCreate(){this.$parent.steps.push(this)},created(){"down"!==this.getPanel().position&&(this.position=this.getPanel().position)},beforeDestroy(){const t=this.$parent.steps,e=t.indexOf(this);e>=0&&t.splice(e,1)},computed:{currentStatus(){return this.status||this.internalStatus},prevStatus(){const t=this.$parent.steps[this.index-1];return t?t.currentStatus:"wait"},isCenter(){return this.$parent.alignCenter},isVertical(){return"vertical"===this.$parent.direction},isSimple(){return this.$parent.simple},isLast(){const t=this.$parent;return t.steps[t.steps.length-1]===this},stepsCount(){return this.$parent.steps.length},space(){const{isSimple:t,$parent:{space:e}}=this;return t?"":e},style:function(){const t={},e=this.$parent.steps.length,n="number"==typeof this.space?this.space+"px":this.space?this.space:100/(e-(this.isCenter?0:1))+"%";return t.flexBasis=n,this.isVertical||(this.isLast?t.maxWidth=100/this.stepsCount+"%":t.marginRight=-this.$parent.stepOffset+"px"),t}},methods:{updateStatus(t){const e=this.$parent.$children[this.index-1];t>this.index?this.internalStatus=this.$parent.finishStatus:t===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",e&&e.calcProgress(this.internalStatus)},calcProgress(t){let e=100;const n={};n.transitionDelay=150*this.index+"ms",t===this.$parent.processStatus?(this.currentStatus,e=0):"wait"===t&&(e=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=e&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=e+"%":n.width=e+"%",this.lineStyle=n}},mounted(){const t=this.$watch("index",(e=>{this.$watch("$parent.active",this.updateStatus,{immediate:!0}),this.$watch("$parent.processStatus",(()=>{const t=this.$parent.active;this.updateStatus(t)}),{immediate:!0}),t()}))}};var ii=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-step",class:[!t.isSimple&&"is-"+t.$parent.direction,t.isSimple&&"is-simple",t.isLast&&!t.space&&!t.isCenter&&"is-flex",t.isCenter&&!t.isVertical&&!t.isSimple&&"is-center"],style:t.style},["up"===t.position?n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+t.currentStatus]},[t._t("title",(function(){return[t._v(t._s(t.title))]}))],2),t._v(" "),t.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+t.currentStatus]},[t._t("description",(function(){return[t._v(t._s(t.description))]}))],2)]):t._e(),t._v(" "),n("div",{staticClass:"el-step__head",class:"is-"+t.currentStatus},[n("div",{staticClass:"el-step__line",style:t.isLast?"":{marginRight:t.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:t.lineStyle})]),t._v(" "),n("div",{staticClass:"el-step__icon",class:"is-"+(t.icon?"icon":"text")},["success"!==t.currentStatus&&"error"!==t.currentStatus?t._t("icon",(function(){return[t.icon?n("i",{staticClass:"el-step__icon-inner",class:[t.icon]}):t._e(),t._v(" "),t.icon||t.isSimple?t._e():n("div",{staticClass:"el-step__icon-inner"},[t._v("\n "+t._s(t.index+1)+"\n ")])]})):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===t.currentStatus?"check":"close")]})],2)]),t._v(" "),"down"===t.position?n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+t.currentStatus]},[t._t("title",(function(){return[t._v(t._s(t.title))]}))],2),t._v(" "),t.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+t.currentStatus]},[t._t("description",(function(){return[t._v(t._s(t.description))]}))],2)]):t._e()])};ii._withStripped=!0;const oi=ni({render:ii,staticRenderFns:[]},undefined,ri,undefined,false,undefined,!1,void 0,void 0,void 0);var si=U,ai=Array.isArray||function(t){return"Array"==si(t)},ci=S,ui=c,li=D,fi=f,pi=ai,di=Pn("species"),hi=s,vi=hn,gi=Pn("species"),yi=Ge,_i=s,mi=ai,Si=f,xi=Wn,bi=se,Ei=function(t,e,n){var r=ci(e);r in t?ui.f(t,r,li(0,n)):t[r]=n},wi=function(t,e){var n;return pi(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!pi(n.prototype)?fi(n)&&null===(n=n[di])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ci=function(t){return vi>=51||!hi((function(){var e=[];return(e.constructor={})[gi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},$i=hn,Oi=Pn("isConcatSpreadable"),Ri=$i>=51||!_i((function(){var t=[];return t[Oi]=!1,t.concat()[0]!==t})),Pi=Ci("concat"),Ti=function(t){if(!Si(t))return!1;var e=t[Oi];return void 0!==e?!!e:mi(t)};yi({target:"Array",proto:!0,forced:!Ri||!Pi},{concat:function(t){var e,n,r,i,o,s=xi(this),a=wi(s,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(Ti(o=-1===e?s:arguments[e])){if(c+(i=bi(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&Ei(a,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ei(a,c++,o)}return a.length=c,a}});const Ai={name:"BaseSteps",provide:function(){return{getPanel:()=>this}},mixins:[{mounted:function(){if("production"!==process.env.NODE_ENV&&this.$vnode){var t=this.getMigratingConfig(),e=t.props,n=void 0===e?{}:e,r=t.events,i=void 0===r?{}:r,o=this.$vnode,s=o.data,a=o.componentOptions,c=s.attrs||{},u=a.listeners||{};for(var l in c)n[l=this.kebabCase(l)]&&console.warn("[Element Migrating][".concat(this.$options.name,"][Attribute]: ").concat(n[l]));for(var f in u)i[f=this.kebabCase(f)]&&console.warn("[Element Migrating][".concat(this.$options.name,"][Event]: ").concat(i[f]))}},methods:{getMigratingConfig:function(){return{props:{},events:{}}},kebabCase:function(t){var e=/([^-])([A-Z])/g;return t.replace(e,"$1-$2").replace(e,"$1-$2").toLowerCase()}}}],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"},position:{type:String,default:"down",validator:function(t){return-1!==["up","down"].indexOf(t)}}},data:()=>({steps:[],stepOffset:0}),methods:{getMigratingConfig:()=>({props:{center:"center is removed."}})},watch:{active(t,e){this.$emit("change",t,e)},steps(t){t.forEach(((t,e)=>{t.index=e}))}}};var ji=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"el-steps",class:[!t.simple&&"el-steps--"+t.direction,t.simple&&"el-steps--simple"]},[t._t("default")],2)};ji._withStripped=!0;const Ii=ni({render:ji,staticRenderFns:[]},undefined,Ai,undefined,false,undefined,!1,void 0,void 0,void 0);oi.install=function(t,e){if(ei("按需加载独立组件:"+oi.name),i(e)&&!r(e))for(var n=0;n<e.length;n++)e[n].name!==oi.name&&t.use(e[n]);t.component(oi.name,oi)},Ii.install=function(t,e){if(ei("按需加载独立组件:"+Ii.name),i(e)&&!r(e))for(var n=0;n<e.length;n++)e[n].name!==Ii.name&&t.use(e[n]);t.component(Ii.name,Ii)},exports.Step=oi,exports.Steps=Ii;