weiyun-ui
Version:
UI library For Vue
2 lines • 5.91 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("wy-flow-steps",[],e):"object"==typeof exports?exports["wy-flow-steps"]=e():t["wy-flow-steps"]=e()}(window,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=591)}({2:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},24:function(t,e,n){var o=n(6);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},27:function(t,e,n){"use strict";function o(t,e,n,o,r,i,s,c){var f,a="function"==typeof t?t.options:t;if(e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),o&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),s?(f=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},a._ssrRegister=f):r&&(f=c?function(){r.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:r),f)if(a.functional){a._injectStyles=f;var u=a.render;a.render=function(t,e){return f.call(e),u(t,e)}}else{var l=a.beforeCreate;a.beforeCreate=l?[].concat(l,f):[f]}return{exports:t,options:a}}n.d(e,"a",(function(){return o}))},31:function(t,e,n){var o=n(7).f,r=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in r||n(4)&&o(r,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},33:function(t,e,n){var o=n(6),r=n(2).document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},387:function(t,e,n){},4:function(t,e,n){t.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},41:function(t,e,n){t.exports=!n(4)&&!n(8)((function(){return 7!=Object.defineProperty(n(33)("div"),"a",{get:function(){return 7}}).a}))},456:function(t,e,n){"use strict";n(387)},5:function(t,e,n){var o=n(6);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},591:function(t,e,n){"use strict";n.r(e);n(31);var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wy-flow-steps"},[e("div",{staticClass:"wy-flow-steps__name"},[t._v(t._s(t.flowName))]),e("div",{staticClass:"wy-flow-steps__container"},[t._m(0),t._l(t.flowList,(function(n,o){return e("div",{key:o,staticClass:"wy-flow-steps__node-item",class:n.status},[e("div",{staticClass:"wy-flow-steps__node-content"},[e("div",{staticClass:"wy-flow-steps__node-text"},[t._v(t._s(n.title))]),e("div",{staticClass:"wy-flow-steps__node-desc"},[t._v("\n "+t._s(n.desc)+"\n "),"done"===n.status?e("i",{staticClass:"el-icon-check"}):t._e(),"doing"===n.status?e("i",{staticClass:"el-icon-time"}):t._e()]),e("el-tag",{attrs:{type:"info"}},[t._v(t._s(n.tag))]),e("div",{staticClass:"wy-flow-steps__node-time"},[t._v("\n "+t._s(n.time)+"\n ")])],1),t._m(1,!0)])})),t.flowList.length&&"done"===t.flowList[t.flowList.length-1].status?[t._m(2)]:[t._m(3)]],2)])};o._withStripped=!0;var r={name:"wy-flow-steps",props:{flowName:{type:String,default:function(){return""}},flowList:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{},watch:{},created:function(){},mounted:function(){},computed:{},beforeDestroy:function(){}},i=(n(456),n(27)),s=Object(i.a)(r,o,[function(){var t=this._self._c;return t("div",{staticClass:"wy-flow-steps__point done"},[t("div",{staticClass:"wy-flow-steps__circle"}),t("div",{staticClass:"wy-flow-steps__arrow"},[t("div",{staticClass:"wy-flow-steps__line"}),t("i",{staticClass:"el-icon-caret-right"})])])},function(){var t=this._self._c;return t("div",{staticClass:"wy-flow-steps__arrow"},[t("div",{staticClass:"wy-flow-steps__line"}),t("i",{staticClass:"el-icon-caret-right"})])},function(){var t=this._self._c;return t("div",{staticClass:"wy-flow-steps__point done"},[t("i",{staticClass:"el-icon-success"})])},function(){var t=this._self._c;return t("div",{staticClass:"wy-flow-steps__point undo"},[t("div",{staticClass:"wy-flow-steps__circle"})])}],!1,null,"5b5013da",null).exports;s.install=function(t){t.component(s.name,s)};e.default=s},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},7:function(t,e,n){var o=n(5),r=n(41),i=n(24),s=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},8:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}}}).default}));
//# sourceMappingURL=index.js.map