tabs-view.js 1.7 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/tabs-view/tabs-view"],{"0cc1":function(t,n,e){},"5b18":function(t,n,e){"use strict";var u=e("0cc1"),r=e.n(u);r.a},"8f2f":function(t,n,e){"use strict";e.r(n);var u=e("d3ab"),r=e("c815");for(var c in r)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(c);e("5b18");var i=e("f0c5"),a=Object(i["a"])(r["default"],u["b"],u["c"],!1,null,"0b33d2f5",null,!1,u["a"],void 0);n["default"]=a.exports},c118:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u={name:"tabs-view",data:function(){return{currentIndex:0}},props:{items:{type:Array,default:function(){return[]}},current:{type:Number,default:function(){return 0}}},watch:{current:function(t){this.currentIndex=t}},computed:{itemWidth:function(){return 1/this.items.length*100+"%"}},methods:{itemClick:function(t){this.currentIndex!=t&&this.$emit("change",t),this.currentIndex=t}}};n.default=u},c815:function(t,n,e){"use strict";e.r(n);var u=e("c118"),r=e.n(u);for(var c in u)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(c);n["default"]=r.a},d3ab:function(t,n,e){"use strict";e.d(n,"b",(function(){return u})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){}));var u=function(){var t=this.$createElement;this._self._c},r=[]}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/tabs-view/tabs-view-create-component',
  4. {
  5. 'components/tabs-view/tabs-view-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("8f2f"))
  7. })
  8. },
  9. [['components/tabs-view/tabs-view-create-component']]
  10. ]);