webpackJsonp([18],{"9BkU":function(t,e){},CsfL:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"MonitorStep",props:{steps:{type:Array,required:!0},current:{type:[String,Number,Array],default:function(){return[0,!1]}},info:{type:Object},msg:{type:Array,default:function(){return[]}}},data:function(){return{setTop:null}},mounted:function(){var t=this;this.$nextTick(function(){t.setTop={top:"calc("+t.$refs.icon[0].offsetTop+"px + 0.035rem)"}})},computed:{linePercent:function(){var t=this.steps.length;return t>2?100/(t-1):100},doneWidth:function(){return Math.round(this.linePercent*Number(this.current))},notWidth:function(){return 100-this.doneWidth}},methods:{getInfo:function(t){var e=this.info;switch(t){case 0:return e.create_note||"暂无";case 2:return e.receive_note||"暂无";case 3:return e.done_note||"暂无";default:return"系统自动推送"}}}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"monitor-step"},[s("div",{staticClass:"lines",style:t.setTop},[s("div",{staticClass:"line done",style:"width:"+t.doneWidth+"%"}),t._v(" "),s("div",{staticClass:"line",style:"width:"+t.notWidth+"%"})]),t._v(" "),t._l(t.steps,function(e,r){return s("div",{key:r,class:"item "+(r==t.current?"on":"")},[s("p",{attrs:{title:e.name}},[t._v(t._s(e.name))]),t._v(" "),r<=t.current?s("div",{ref:"icon",refInFor:!0,staticClass:"icon",style:"background-image:url("+n("RGwW")+")"}):s("div",{staticClass:"none"}),t._v(" "),s("span",{staticClass:"msg",attrs:{title:e.msg}},[t._v(t._s(t.msg[r]))]),t._v(" "),t.info?s("span",{staticClass:"msg info",attrs:{title:t.getInfo(r)}},[t._v(t._s(t.getInfo(r)))]):t._e()])})],2)},staticRenderFns:[]};var i=n("VU/8")(s,r,!1,function(t){n("9BkU")},"data-v-119a9a0e",null);e.default=i.exports}});
//# sourceMappingURL=18.c4d6f4db971fd6a53de5.js.map