"use strict";(self.webpackChunkmy_package_ext=self.webpackChunkmy_package_ext||[]).push([[8047],{38047:function(t,e,i){i.r(e),i.d(e,{default:function(){return n}}),e={name:"steps",mixins:[i(20168).Z],props:{value:{},mode:{default:"edit"},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},direction:"",isAlignCenter:{type:Boolean,default:!1},isSimple:{type:Boolean,default:!1},stepsdata:{type:Array,default:function(){return[]}},finishStatus:{}},computed:{active:{get:function(){var t,e=this;return this.value||0==this.value?-1<(t=this.options&&this.options.findIndex((function(t){return t.value==e.value})))?t+"":1<=this.value?this.value-1:void 0:-1},set:function(t){0<=t&&this.$emit("input",t+1)}}},data:function(){return{currentDataList:[],activeObject:{success:{color:"#67C23A",icon:"success"},process:{color:"#303133",icon:void 0},finish:{color:"#409EFF",icon:void 0},wait:{color:"#C0C4CC",icon:void 0},error:{color:"#F56C6C",icon:"cross"}}}},watch:{options:{immediate:!0,deep:!0,handler:function(t){t&&t.length&&(this.currentDataList=t.map((function(t){return{value:t.value,label:t.label}})))}}},methods:{clickFun:function(t,e){this.$emit("clickStep",t,e)}}};var n=(0,i(51900).Z)(e,(function(){var t=this,e=t._self._c;return e("div",{staticStyle:{width:"100%"}},[t.currentDataList&&0<t.currentDataList.length?["edit"===t.mode?e("van-steps",{attrs:{active:t.active,"active-icon":t.activeObject[t.finishStatus].icon,direction:t.direction,"active-color":t.activeObject[t.finishStatus].color}},t._l(t.currentDataList,(function(i,n){return e("van-step",{key:n,style:t.active>=n?t.activeObject[t.finishStatus]:null,nativeOn:{click:function(e){return t.clickFun(i,n)}}},[t._v("\n               "+t._s(i.label)+"\n            ")])})),1):e("div")]:e("van-steps",{attrs:{active:t.active,"active-icon":t.activeObject[t.finishStatus].icon,direction:t.direction,"active-color":t.activeObject[t.finishStatus].color}},[e("van-step",{style:t.activeObject[t.finishStatus]},[t._v("步骤1")]),t._v(" "),e("van-step",{style:t.activeObject[t.finishStatus]},[t._v("步骤2")]),t._v(" "),e("van-step",{style:t.activeObject[t.finishStatus]},[t._v("步骤3")])],1)],2)}),[],!1,null,"a7d8bc52",null).exports}}]);