UNPKG

shu-c-view

Version:

rollup 打包vue@2.7组件库框架

7 lines (6 loc) 19.1 kB
/*! * shu-c-view v2.0.0 * (c) 2024-04-23 * @license MIT */ "use strict";function t(t,e){for(var r=0;r<e.length;r+=1)if(t===e[r])return!0;return!1}Object.defineProperty(exports,"__esModule",{value:!0});function e(t,e,r,n,o,i,u,c,s,a){"boolean"!=typeof u&&(s=c,c=u,u=!1);const f="function"==typeof r?r.options:r;let l;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),n&&(f._scopeId=n),i?(l=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,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=l):e&&(l=u?function(t){e.call(this,a(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,c(t))}),l)if(f.functional){const t=f.render;f.render=function(e,r){return l.call(r),t(e,r)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,l):[l]}return r}const r={name:"BaseCustomSteps",props:{current:{type:Number,default:0},status:{validator:e=>t(e,["wait","process","finish","error"]),default:"process"},size:{validator:e=>t(e,["small"])},direction:{validator:e=>t(e,["horizontal","vertical"]),default:"horizontal"}},computed:{classes(){return["ivu-steps",`ivu-steps-${this.direction}`,{[`ivu-steps-${this.size}`]:!!this.size}]}},watch:{current(){this.updateChildProps()},status(){this.updateCurrent()}},mounted(){this.updateSteps(),this.$on("append",this.debouncedAppendRemove()),this.$on("remove",this.debouncedAppendRemove())},methods:{updateChildProps(t){const e=this.$children.length;this.$children.forEach(((r,n)=>{r.stepNumber=n+1,"horizontal"===this.direction&&(r.total=e),t&&r.currentStatus||(n===this.current?"error"!==this.status&&(r.currentStatus="process"):n<this.current?r.currentStatus="finish":r.currentStatus="wait"),"error"!==r.currentStatus&&0!==n&&(this.$children[n-1].nextError=!1)}))},setNextError(){this.$children.forEach(((t,e)=>{"error"===t.currentStatus&&0!==e&&(this.$children[e-1].nextError=!0)}))},updateCurrent(t){if(!(this.current<0||this.current>=this.$children.length))if(t){this.$children[this.current].currentStatus||(this.$children[this.current].currentStatus=this.status)}else this.$children[this.current].currentStatus=this.status},debouncedAppendRemove:()=>function(t){let e;return function(){if(e)return;e=!0;const r=this,n=arguments,o=function(){e=!1,t.apply(r,n)};this.$nextTick(o)}}((function(){this.updateSteps()})),updateSteps(){this.updateChildProps(!0),this.setNextError(),this.updateCurrent(!0)}}};var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.classes},[t._t("default")],2)};n._withStripped=!0;const o=e({render:n,staticRenderFns:[]},undefined,r,undefined,false,undefined,!1,void 0,void 0,void 0);var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u=function(t){return t&&t.Math==Math&&t},c=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof i&&i)||function(){return this}()||Function("return this")(),s={exports:{}},a=c,f=Object.defineProperty,l=function(t,e){try{f(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},p=l,h=c["__core-js_shared__"]||p("__core-js_shared__",{}),d=h;(s.exports=function(t,e){return d[t]||(d[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});var v,y,b=function(t){try{return!!t()}catch(t){return!0}},m=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=m,S=Function.prototype,w=S.call,O=g&&S.bind.bind(w,w),_=g?O:function(t){return function(){return w.apply(t,arguments)}},C=function(t){return null==t},E=C,j=TypeError,x=function(t){if(E(t))throw j("Can't call method on "+t);return t},L=x,T=Object,$=function(t){return T(L(t))},P=$,M=_({}.hasOwnProperty),A=Object.hasOwn||function(t,e){return M(P(t),e)},R=_,F=0,N=Math.random(),D=R(1..toString),I=function(t){return"Symbol("+(void 0===t?"":t)+")_"+D(++F+N,36)},z="object"==typeof document&&document.all,k={all:z,IS_HTMLDDA:void 0===z&&void 0!==z},G=k.all,V=k.IS_HTMLDDA?function(t){return"function"==typeof t||t===G}:function(t){return"function"==typeof t},B=c,H=V,U=function(t){return H(t)?t:void 0},X=function(t,e){return arguments.length<2?U(B[t]):B[t]&&B[t][e]},W=c,q=X("navigator","userAgent")||"",K=W.process,Y=W.Deno,J=K&&K.versions||Y&&Y.version,Q=J&&J.v8;Q&&(y=(v=Q.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!y&&q&&(!(v=q.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=q.match(/Chrome\/(\d+)/))&&(y=+v[1]);var Z=y,tt=Z,et=b,rt=!!Object.getOwnPropertySymbols&&!et((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&tt&&tt<41})),nt=rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ot=c,it=s.exports,ut=A,ct=I,st=rt,at=nt,ft=it("wks"),lt=ot.Symbol,pt=lt&&lt.for,ht=at?lt:lt&&lt.withoutSetter||ct,dt=function(t){if(!ut(ft,t)||!st&&"string"!=typeof ft[t]){var e="Symbol."+t;st&&ut(lt,t)?ft[t]=lt[t]:ft[t]=at&&pt?pt(e):ht(e)}return ft[t]},vt={};vt[dt("toStringTag")]="z";var yt="[object z]"===String(vt),bt={},mt=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gt=V,St=k.all,wt=k.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:gt(t)||t===St}:function(t){return"object"==typeof t?null!==t:gt(t)},Ot=wt,_t=c.document,Ct=Ot(_t)&&Ot(_t.createElement),Et=function(t){return Ct?_t.createElement(t):{}},jt=Et,xt=!mt&&!b((function(){return 7!=Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),Lt=mt&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tt=wt,$t=String,Pt=TypeError,Mt=function(t){if(Tt(t))return t;throw Pt($t(t)+" is not an object")},At=m,Rt=Function.prototype.call,Ft=At?Rt.bind(Rt):function(){return Rt.apply(Rt,arguments)},Nt=_({}.isPrototypeOf),Dt=X,It=V,zt=Nt,kt=Object,Gt=nt?function(t){return"symbol"==typeof t}:function(t){var e=Dt("Symbol");return It(e)&&zt(e.prototype,kt(t))},Vt=String,Bt=V,Ht=function(t){try{return Vt(t)}catch(t){return"Object"}},Ut=TypeError,Xt=function(t){if(Bt(t))return t;throw Ut(Ht(t)+" is not a function")},Wt=Xt,qt=C,Kt=Ft,Yt=V,Jt=wt,Qt=TypeError,Zt=Ft,te=wt,ee=Gt,re=function(t,e){var r=t[e];return qt(r)?void 0:Wt(r)},ne=function(t,e){var r,n;if("string"===e&&Yt(r=t.toString)&&!Jt(n=Kt(r,t)))return n;if(Yt(r=t.valueOf)&&!Jt(n=Kt(r,t)))return n;if("string"!==e&&Yt(r=t.toString)&&!Jt(n=Kt(r,t)))return n;throw Qt("Can't convert object to primitive value")},oe=TypeError,ie=dt("toPrimitive"),ue=function(t,e){if(!te(t)||ee(t))return t;var r,n=re(t,ie);if(n){if(void 0===e&&(e="default"),r=Zt(n,t,e),!te(r)||ee(r))return r;throw oe("Can't convert object to primitive value")}return void 0===e&&(e="number"),ne(t,e)},ce=Gt,se=function(t){var e=ue(t,"string");return ce(e)?e:e+""},ae=mt,fe=xt,le=Lt,pe=Mt,he=se,de=TypeError,ve=Object.defineProperty,ye=Object.getOwnPropertyDescriptor;bt.f=ae?le?function(t,e,r){if(pe(t),e=he(e),pe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=ye(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return ve(t,e,r)}:ve:function(t,e,r){if(pe(t),e=he(e),pe(r),fe)try{return ve(t,e,r)}catch(t){}if("get"in r||"set"in r)throw de("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var be={exports:{}},me=mt,ge=A,Se=Function.prototype,we=me&&Object.getOwnPropertyDescriptor,Oe=ge(Se,"name"),_e={EXISTS:Oe,PROPER:Oe&&"something"===function(){}.name,CONFIGURABLE:Oe&&(!me||me&&we(Se,"name").configurable)},Ce=V,Ee=h,je=_(Function.toString);Ce(Ee.inspectSource)||(Ee.inspectSource=function(t){return je(t)});var xe,Le,Te,$e=Ee.inspectSource,Pe=V,Me=c.WeakMap,Ae=Pe(Me)&&/native code/.test(String(Me)),Re=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Fe=bt,Ne=Re,De=mt?function(t,e,r){return Fe.f(t,e,Ne(1,r))}:function(t,e,r){return t[e]=r,t},Ie=s.exports,ze=I,ke=Ie("keys"),Ge={},Ve=Ae,Be=c,He=wt,Ue=De,Xe=A,We=h,qe=function(t){return ke[t]||(ke[t]=ze(t))},Ke=Ge,Ye=Be.TypeError,Je=Be.WeakMap;if(Ve||We.state){var Qe=We.state||(We.state=new Je);Qe.get=Qe.get,Qe.has=Qe.has,Qe.set=Qe.set,xe=function(t,e){if(Qe.has(t))throw Ye("Object already initialized");return e.facade=t,Qe.set(t,e),e},Le=function(t){return Qe.get(t)||{}},Te=function(t){return Qe.has(t)}}else{var Ze=qe("state");Ke[Ze]=!0,xe=function(t,e){if(Xe(t,Ze))throw Ye("Object already initialized");return e.facade=t,Ue(t,Ze,e),e},Le=function(t){return Xe(t,Ze)?t[Ze]:{}},Te=function(t){return Xe(t,Ze)}}var tr={set:xe,get:Le,has:Te,enforce:function(t){return Te(t)?Le(t):xe(t,{})},getterFor:function(t){return function(e){var r;if(!He(e)||(r=Le(e)).type!==t)throw Ye("Incompatible receiver, "+t+" required");return r}}},er=b,rr=V,nr=A,or=mt,ir=_e.CONFIGURABLE,ur=$e,cr=tr.enforce,sr=tr.get,ar=Object.defineProperty,fr=or&&!er((function(){return 8!==ar((function(){}),"length",{value:8}).length})),lr=String(String).split("String"),pr=be.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!nr(t,"name")||ir&&t.name!==e)&&(or?ar(t,"name",{value:e,configurable:!0}):t.name=e),fr&&r&&nr(r,"arity")&&t.length!==r.arity&&ar(t,"length",{value:r.arity});try{r&&nr(r,"constructor")&&r.constructor?or&&ar(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=cr(t);return nr(n,"source")||(n.source=lr.join("string"==typeof e?e:"")),t};Function.prototype.toString=pr((function(){return rr(this)&&sr(this).source||ur(this)}),"toString");var hr=V,dr=bt,vr=be.exports,yr=l,br=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(hr(r)&&vr(r,i,n),n.global)o?t[e]=r:yr(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:dr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},mr=_,gr=mr({}.toString),Sr=mr("".slice),wr=function(t){return Sr(gr(t),8,-1)},Or=yt,_r=V,Cr=wr,Er=dt("toStringTag"),jr=Object,xr="Arguments"==Cr(function(){return arguments}()),Lr=Or?Cr:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=jr(t),Er))?r:xr?Cr(e):"Object"==(n=Cr(e))&&_r(e.callee)?"Arguments":n},Tr=Lr,$r=yt?{}.toString:function(){return"[object "+Tr(this)+"]"};yt||br(Object.prototype,"toString",$r,{unsafe:!0});var Pr=Et("span").classList,Mr=Pr&&Pr.constructor&&Pr.constructor.prototype,Ar=Mr===Object.prototype?void 0:Mr,Rr=wr,Fr=_,Nr=function(t){if("Function"===Rr(t))return Fr(t)},Dr=Xt,Ir=m,zr=Nr(Nr.bind),kr=b,Gr=wr,Vr=Object,Br=_("".split),Hr=kr((function(){return!Vr("z").propertyIsEnumerable(0)}))?function(t){return"String"==Gr(t)?Br(t,""):Vr(t)}:Vr,Ur=Math.ceil,Xr=Math.floor,Wr=Math.trunc||function(t){var e=+t;return(e>0?Xr:Ur)(e)},qr=function(t){var e=+t;return e!=e||0===e?0:Wr(e)},Kr=qr,Yr=Math.min,Jr=function(t){return t>0?Yr(Kr(t),9007199254740991):0},Qr=function(t){return Jr(t.length)},Zr=wr,tn=Array.isArray||function(t){return"Array"==Zr(t)},en=_,rn=b,nn=V,on=Lr,un=$e,cn=function(){},sn=[],an=X("Reflect","construct"),fn=/^\s*(?:class|function)\b/,ln=en(fn.exec),pn=!fn.exec(cn),hn=function(t){if(!nn(t))return!1;try{return an(cn,sn,t),!0}catch(t){return!1}},dn=function(t){if(!nn(t))return!1;switch(on(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pn||!!ln(fn,un(t))}catch(t){return!0}};dn.sham=!0;var vn=!an||rn((function(){var t;return hn(hn.call)||!hn(Object)||!hn((function(){t=!0}))||t}))?dn:hn,yn=tn,bn=vn,mn=wt,gn=dt("species"),Sn=Array,wn=function(t){var e;return yn(t)&&(e=t.constructor,(bn(e)&&(e===Sn||yn(e.prototype))||mn(e)&&null===(e=e[gn]))&&(e=void 0)),void 0===e?Sn:e},On=function(t,e){return new(wn(t))(0===e?0:e)},_n=function(t,e){return Dr(t),void 0===e?t:Ir?zr(t,e):function(){return t.apply(e,arguments)}},Cn=Hr,En=$,jn=Qr,xn=On,Ln=_([].push),Tn=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=7==t,c=5==t||i;return function(s,a,f,l){for(var p,h,d=En(s),v=Cn(d),y=_n(a,f),b=jn(v),m=0,g=l||xn,S=e?g(s,b):r||u?g(s,0):void 0;b>m;m++)if((c||m in v)&&(h=y(p=v[m],m,d),t))if(e)S[m]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:Ln(S,p)}else switch(t){case 4:return!1;case 7:Ln(S,p)}return i?-1:n||o?o:S}},$n={forEach:Tn(0),map:Tn(1),filter:Tn(2),some:Tn(3),every:Tn(4),find:Tn(5),findIndex:Tn(6),filterReject:Tn(7)},Pn=b,Mn=$n.forEach,An=c,Rn={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Fn=Ar,Nn=function(t,e){var r=[][t];return!!r&&Pn((function(){r.call(null,e||function(){return 1},1)}))}("forEach")?[].forEach:function(t){return Mn(this,t,arguments.length>1?arguments[1]:void 0)},Dn=De,In=function(t){if(t&&t.forEach!==Nn)try{Dn(t,"forEach",Nn)}catch(e){t.forEach=Nn}};for(var zn in Rn)Rn[zn]&&In(An[zn]&&An[zn].prototype);In(Fn);var kn=mt,Gn=_e.EXISTS,Vn=_,Bn=bt.f,Hn=Function.prototype,Un=Vn(Hn.toString),Xn=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Wn=Vn(Xn.exec);kn&&!Gn&&Bn(Hn,"name",{configurable:!0,get:function(){try{return Wn(Xn,Un(this))[1]}catch(t){return""}}});var qn={},Kn={},Yn={}.propertyIsEnumerable,Jn=Object.getOwnPropertyDescriptor,Qn=Jn&&!Yn.call({1:2},1);Kn.f=Qn?function(t){var e=Jn(this,t);return!!e&&e.enumerable}:Yn;var Zn=Hr,to=x,eo=function(t){return Zn(to(t))},ro=mt,no=Ft,oo=Kn,io=Re,uo=eo,co=se,so=A,ao=xt,fo=Object.getOwnPropertyDescriptor;qn.f=ro?fo:function(t,e){if(t=uo(t),e=co(e),ao)try{return fo(t,e)}catch(t){}if(so(t,e))return io(!no(oo.f,t,e),t[e])};var lo={},po=qr,ho=Math.max,vo=Math.min,yo=eo,bo=function(t,e){var r=po(t);return r<0?ho(r+e,0):vo(r,e)},mo=Qr,go=function(t){return function(e,r,n){var o,i=yo(e),u=mo(i),c=bo(n,u);if(t&&r!=r){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},So={includes:go(!0),indexOf:go(!1)},wo=A,Oo=eo,_o=So.indexOf,Co=Ge,Eo=_([].push),jo=function(t,e){var r,n=Oo(t),o=0,i=[];for(r in n)!wo(Co,r)&&wo(n,r)&&Eo(i,r);for(;e.length>o;)wo(n,r=e[o++])&&(~_o(i,r)||Eo(i,r));return i},xo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");lo.f=Object.getOwnPropertyNames||function(t){return jo(t,xo)};var Lo={};Lo.f=Object.getOwnPropertySymbols;var To=X,$o=lo,Po=Lo,Mo=Mt,Ao=_([].concat),Ro=To("Reflect","ownKeys")||function(t){var e=$o.f(Mo(t)),r=Po.f;return r?Ao(e,r(t)):e},Fo=A,No=Ro,Do=qn,Io=bt,zo=b,ko=V,Go=/#|\.prototype\./,Vo=function(t,e){var r=Ho[Bo(t)];return r==Xo||r!=Uo&&(ko(e)?zo(e):!!e)},Bo=Vo.normalize=function(t){return String(t).replace(Go,".").toLowerCase()},Ho=Vo.data={},Uo=Vo.NATIVE="N",Xo=Vo.POLYFILL="P",Wo=Vo,qo=c,Ko=qn.f,Yo=De,Jo=br,Qo=l,Zo=function(t,e,r){for(var n=No(e),o=Io.f,i=Do.f,u=0;u<n.length;u++){var c=n[u];Fo(t,c)||r&&Fo(r,c)||o(t,c,i(e,c))}},ti=Wo,ei=TypeError,ri=se,ni=bt,oi=Re,ii=b,ui=Z,ci=dt("species"),si=function(t,e){var r,n,o,i,u,c=t.target,s=t.global,a=t.stat;if(r=s?qo:a?qo[c]||Qo(c,{}):(qo[c]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=Ko(r,n))&&u.value:r[n],!ti(s?n:c+(a?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Zo(i,o)}(t.sham||o&&o.sham)&&Yo(i,"sham",!0),Jo(r,n,i,t)}},ai=b,fi=tn,li=wt,pi=$,hi=Qr,di=function(t){if(t>9007199254740991)throw ei("Maximum allowed index exceeded");return t},vi=function(t,e,r){var n=ri(e);n in t?ni.f(t,n,oi(0,r)):t[n]=r},yi=On,bi=function(t){return ui>=51||!ii((function(){var e=[];return(e.constructor={})[ci]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},mi=Z,gi=dt("isConcatSpreadable"),Si=mi>=51||!ai((function(){var t=[];return t[gi]=!1,t.concat()[0]!==t})),wi=bi("concat"),Oi=function(t){if(!li(t))return!1;var e=t[gi];return void 0!==e?!!e:fi(t)};function _i(t,e,r){this.$children.forEach((function(n){n.$options.name===t?n.$emit.apply(n,[e].concat(r)):_i.apply(n,[t,e].concat([r]))}))}si({target:"Array",proto:!0,arity:1,forced:!Si||!wi},{concat:function(t){var e,r,n,o,i,u=pi(this),c=yi(u,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Oi(i=-1===e?u:arguments[e]))for(o=hi(i),di(s+o),r=0;r<o;r++,s++)r in i&&vi(c,s,i[r]);else di(s+1),vi(c,s++,i);return c.length=s,c}});const Ci={name:"BaseCustomStep",mixins:[{methods:{dispatch:function(t,e,r){for(var n=this.$parent||this.$root,o=n.$options.name;n&&(!o||o!==t);)(n=n.$parent)&&(o=n.$options.name);n&&n.$emit.apply(n,[e].concat(r))},broadcast:function(t,e,r){_i.call(this,t,e,r)}}}],props:{status:{validator:e=>t(e,["wait","process","finish","error"])},title:{type:String,default:""},content:{type:String},icon:{type:String}},data:()=>({prefixCls:"ivu-steps",stepNumber:"",nextError:!1,total:1,currentStatus:""}),computed:{wrapClasses(){return["ivu-steps-item",`ivu-steps-status-${this.currentStatus}`,{"ivu-steps-custom":!!this.icon,"ivu-steps-next-error":this.nextError}]},iconClasses(){let t="";this.icon?t=this.icon:"finish"===this.currentStatus?t="ios-checkmark":"error"===this.currentStatus&&(t="ios-close");const e=["ivu-steps-icon","ivu-icon"];return this.icon?e.push({[t]:""!==t}):e.push({[`ivu-icon-${t}`]:""!==t}),e},styles(){return{width:1/this.total*100+"%"}}},watch:{status(t){this.currentStatus=t,"error"===this.currentStatus&&this.$parent.setNextError()}},created(){this.currentStatus=this.status},mounted(){this.dispatch("Steps","append")},beforeDestroy(){this.dispatch("Steps","remove")}};var Ei=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.wrapClasses,style:t.styles},[r("div",{class:[t.prefixCls+"-tail"]},[r("i")]),t._v(" "),r("div",{class:[t.prefixCls+"-head"]},[r("div",{class:[t.prefixCls+"-head-inner"]},[t.icon||"finish"==t.currentStatus||"error"==t.currentStatus?r("span",{class:t.iconClasses}):r("span",[t._v(t._s(t.stepNumber))])])]),t._v(" "),r("div",{class:[t.prefixCls+"-main"]},[r("div",{class:[t.prefixCls+"-title"]},[t.$slots.title?t._t("title"):[t._v(t._s(t.title))]],2),t._v(" "),t._t("default",(function(){return[t.content?r("div",{class:[t.prefixCls+"-content"]},[t._v("\n "+t._s(t.content)+"\n ")]):t._e()]}))],2)])};Ei._withStripped=!0;const ji=e({render:Ei,staticRenderFns:[]},undefined,Ci,undefined,false,undefined,!1,void 0,void 0,void 0);exports.BaseCustomStep=ji,exports.BaseCustomSteps=o;