(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["tuniao-ui/components/tn-tag/tn-tag"],{321:function(t,n,e){"use strict";e.r(n);var i=e(322),r=e(324);for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(a);e(326);var o,d=e(36),u=Object(d["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"2cefb3dc",null,!1,i["components"],o);u.options.__file="tuniao-ui/components/tn-tag/tn-tag.vue",n["default"]=u.exports},322:function(t,n,e){"use strict";e.r(n);var i=e(323);e.d(n,"render",(function(){return i["render"]})),e.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(n,"components",(function(){return i["components"]}))},323:function(t,n,e){"use strict";var i;e.r(n),e.d(n,"render",(function(){return r})),e.d(n,"staticRenderFns",(function(){return o})),e.d(n,"recyclableRender",(function(){return a})),e.d(n,"components",(function(){return i}));var r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__get_style([t.tagStyle]));t.$mp.data=Object.assign({},{$root:{s0:e}})},a=!1,o=[];r._withStripped=!0},324:function(t,n,e){"use strict";e.r(n);var i=e(325),r=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=r.a},325:function(t,n,e){"use strict";var i=e(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e(257)),a={mixins:[r.default],options:{virtualHost:!0},name:"tn-tag",props:{index:{type:[Number,String],default:"0"},shape:{type:String,default:""},size:{type:String,default:""},width:{type:String,default:""},height:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:"0"},plain:{type:Boolean,default:!1},originLeft:{type:Boolean,default:!1},originRight:{type:Boolean,default:!1}},computed:{tagClass:function(){var t="";switch(this.shape){case"radius":t+=" tn-radius";break;case"circle":t+=" tn-round-tag";break;case"circleLeft":t+=" tn-tag--fillet-left";break;case"circleRight":t+=" tn-tag--fillet-right";break}if(this.plain&&(t+=" tn-tag--plain tn-border-solid",""!==this.backgroundColor&&this.backgroundColor.includes("tn-bg"))){var n=this.backgroundColor.slice(this.backgroundColor.lastIndexOf("-")+1);t+=" tn-border-".concat(n)}return this.originLeft&&(t+=" tn-tag--origin-left"),this.originRight&&(t+=" tn-tag--origin-right"),t},tagStyle:function(){var t={};switch(this.size){case"sm":t.padding="0 12rpx",t.fontSize="20rpx",t.height="32rpx";break;case"lg":t.padding="0 20rpx",t.fontSize="28rpx",t.height="62rpx";break;default:t.padding="0 16rpx",t.fontSize="24rpx",t.height="48rpx";break}return t.width=this.width||"auto",t.height=this.height||t.height,t.padding=this.padding||t.padding,this.margin&&(t.margin=this.margin),this.fontColorStyle&&(t.color=this.fontColorStyle),0!==this.fontSize&&(t.fontSize=this.fontSize+this.fontUnit),this.backgroundColorClass||(t.backgroundColor=this.plain?"":this.backgroundColorStyle||"#FFFFFF",this.plain&&(t.borderColor=this.backgroundColorStyle||"#080808")),t}},data:function(){return{}},methods:{handleClick:function(){this.$emit("click",{index:Number(this.index)}),this.$emit("tap",{index:Number(this.index)})}}};n.default=a},326:function(t,n,e){"use strict";e.r(n);var i=e(327),r=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=r.a},327:function(t,n,e){}}]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/tuniao-ui/components/tn-tag/tn-tag.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'tuniao-ui/components/tn-tag/tn-tag-create-component',
    {
        'tuniao-ui/components/tn-tag/tn-tag-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('2')['createComponent'](__webpack_require__(321))
        })
    },
    [['tuniao-ui/components/tn-tag/tn-tag-create-component']]
]);
