!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["vue-element-ui-plus"]=e():t["vue-element-ui-plus"]=e()}(self,(()=>(()=>{"use strict";var t={1900:(t,e,s)=>{function i(t,e,s,i,n,r,a,c){var o,p="function"==typeof t?t.options:t;if(e&&(p.render=e,p.staticRenderFns=s,p._compiled=!0),i&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),a?(o=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__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},p._ssrRegister=o):n&&(o=c?function(){n.call(this,(p.functional?this.parent:this).$root.$options.shadowRoot)}:n),o)if(p.functional){p._injectStyles=o;var l=p.render;p.render=function(t,e){return o.call(e),l(t,e)}}else{var u=p.beforeCreate;p.beforeCreate=u?[].concat(u,o):[o]}return{exports:t,options:p}}s.d(e,{Z:()=>i})}},e={};function s(i){var n=e[i];if(void 0!==n)return n.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var i={};return(()=>{s.d(i,{default:()=>c});var t=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("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},[s("div",{staticClass:"el-step__head",class:"is-"+t.currentStatus},[s("div",{staticClass:"el-step__line",style:t.isLast?"":{marginRight:t.$parent.stepOffset+"px"}},[s("i",{staticClass:"el-step__line-inner",style:t.lineStyle})]),t._v(" "),s("div",{staticClass:"el-step__icon",class:"is-"+(t.icon?"icon":"text")},["success"!==t.currentStatus&&"error"!==t.currentStatus?t._t("icon",(function(){return[t.icon?s("i",{staticClass:"el-step__icon-inner",class:[t.icon]}):t._e(),t._v(" "),t.icon||t.isSimple?t._e():s("div",{staticClass:"el-step__icon-inner"},[t._v(t._s(t.index+1))])]})):s("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===t.currentStatus?"check":"close")]})],2)]),t._v(" "),s("div",{staticClass:"el-step__main"},[s("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?s("div",{staticClass:"el-step__arrow"}):s("div",{staticClass:"el-step__description",class:["is-"+t.currentStatus]},[t._t("description",(function(){return[t._v(t._s(t.description))]}))],2)])])};t._withStripped=!0;const e={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var t=this.$parent.steps,e=t.indexOf(this);e>=0&&t.splice(e,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var t=this.$parent.steps[this.index-1];return t?t.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var t=this.$parent;return t.steps[t.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var t=this.isSimple,e=this.$parent.space;return t?"":e},style:function(){var t={},e=this.$parent.steps.length,s="number"==typeof this.space?this.space+"px":this.space?this.space:100/(e-(this.isCenter?0:1))+"%";return t.flexBasis=s,this.isVertical||(this.isLast?t.maxWidth=100/this.stepsCount+"%":t.marginRight=-this.$parent.stepOffset+"px"),t}},methods:{updateStatus:function(t){var 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:function(t){var e=100,s={};s.transitionDelay=150*this.index+"ms",t===this.$parent.processStatus?(this.currentStatus,e=0):"wait"===t&&(e=0,s.transitionDelay=-150*this.index+"ms"),s.borderWidth=e&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?s.height=e+"%":s.width=e+"%",this.lineStyle=s}},mounted:function(){var t=this,e=this.$watch("index",(function(s){t.$watch("$parent.active",t.updateStatus,{immediate:!0}),t.$watch("$parent.processStatus",(function(){var e=t.$parent.active;t.updateStatus(e)}),{immediate:!0}),e()}))}},n=e;var r=(0,s(1900).Z)(n,t,[],!1,null,null,null);r.options.__file="packages/steps/src/step.vue";const a=r.exports;a.install=function(t){t.component(a.name,a)};const c=a})(),i.default})()));