!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("VueElementUiPlus",[],e):"object"==typeof exports?exports.VueElementUiPlus=e():t.VueElementUiPlus=e()}(self,()=>(()=>{"use strict";var s={1900:(t,e,s)=>{s.d(e,{Z:()=>function(t,e,s,i,n,r,a,c){var o,l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=s,l._compiled=!0);i&&(l.functional=!0);r&&(l._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)},l._ssrRegister=o):n&&(o=c?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n);{var p;o&&(l.functional?(l._injectStyles=o,p=l.render,l.render=function(t,e){return o.call(e),p(t,e)}):(e=l.beforeCreate,l.beforeCreate=e?[].concat(e,o):[o]))}return{exports:t,options:l}}})}},i={};function n(t){var e=i[t];return void 0!==e||(e=i[t]={exports:{}},s[t](e,e.exports,n)),e.exports}n.d=(t,e)=>{for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var t={};{function e(){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)])])}n.d(t,{default:()=>c}),e._withStripped=!0;var r={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);0<=e&&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,e="number"==typeof this.space?this.space+"px":this.space||100/(e-(this.isCenter?0:1))+"%";return t.flexBasis=e,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 e=this,s=this.$watch("index",function(t){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",function(){var t=e.$parent.active;e.updateStatus(t)},{immediate:!0}),s()})}},r;(r=(0,n(1900).Z)(r,e,[],!1,null,null,null)).options.__file="packages/steps/src/step.vue";const a=r.exports,c=(a.install=function(t){t.component(a.name,a)},a)}return t.default})());