(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["tuniao-ui/components/tn-row-notice/tn-row-notice"],{"026b":function(t,n,e){"use strict";e.r(n);var i=e("cb4a"),o=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"]=o.a},"19dd":function(t,n,e){"use strict";e.r(n);var i=e("3da7"),o=e("026b");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("2a52");var c=e("f0c5"),l=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"62a60900",null,!1,i["a"],void 0);n["default"]=l.exports},"2a52":function(t,n,e){"use strict";var i=e("cac1"),o=e.n(i);o.a},"3da7":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.show?t.__get_style([t.noticeStyle]):null),i=t.show&&t.leftIcon?t.__get_style([t.fontStyle("leftIcon")]):null,o=t.show?t.__get_style([t.fontStyle()]):null,a=t.show&&t.rightIcon?t.__get_style([t.fontStyle("rightIcon")]):null,c=t.show&&t.closeBtn?t.__get_style([t.fontStyle("close")]):null;t.$mp.data=Object.assign({},{$root:{s0:e,s1:i,s2:o,s3:a,s4:c}})},o=[]},cac1:function(t,n,e){},cb4a:function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("16ca")),a={name:"tn-row-notice",mixins:[o.default],props:{list:{type:Array,default:function(){return[]}},show:{type:Boolean,default:!0},playStatus:{type:String,default:"play"},leftIcon:{type:Boolean,default:!0},leftIconName:{type:String,default:"sound"},leftIconSize:{type:Number,default:34},rightIcon:{type:Boolean,default:!1},rightIconName:{type:String,default:"right"},rightIconSize:{type:Number,default:26},closeBtn:{type:Boolean,default:!1},radius:{type:Number,default:0},padding:{type:String,default:"18rpx 24rpx"},autoplay:{type:Boolean,default:!0},speed:{type:Number,default:160}},computed:{fontStyle:function(){var t=this;return function(n){var e={};return e.color=t.fontColorStyle?t.fontColorStyle:"",e.fontSize=t.fontSizeStyle?t.fontSizeStyle:"","leftIcon"===n&&t.leftIconSize&&(e.fontSize=t.leftIconSize+"rpx"),"rightIcon"===n&&t.rightIconSize&&(e.fontSize=t.rightIconSize+"rpx"),"close"===n&&(e.fontSize="24rpx"),e}},noticeStyle:function(){var t={};return t.backgroundColor=this.backgroundColorStyle?this.backgroundColorStyle:"transparent",this.padding&&(t.padding=this.padding),t}},data:function(){return{textWidth:0,textBoxWidth:0,animationDuration:"10s",animationPlayState:"paused",showText:""}},watch:{list:{handler:function(t){var n=this;this.showText=t.join("，"),this.$nextTick((function(){n.initNotice()}))},immediate:!0},playStatus:function(t){this.animationPlayState="play"===t?"running":"paused"},speed:function(t){this.initNotice()}},methods:{initNotice:function(){var n=this,e=[],i=new Promise((function(e,i){t.createSelectorQuery().in(n).select("#tn-row-notice__content").boundingClientRect().exec((function(t){n.textWidth=t[0].width,e()}))}));e.push(i),Promise.all(e).then((function(){n.animationDuration="".concat(n.textWidth/t.upx2px(n.speed),"s"),n.animationPlayState="paused",setTimeout((function(){n.autoplay&&"play"===n.playStatus&&(n.animationPlayState="running")}),10)}))},click:function(){this.$emit("click")},close:function(){this.$emit("close")},clickLeftIcon:function(){this.$emit("clickLeft")},clickRightIcon:function(){this.$emit("clickRight")}}};n.default=a}).call(this,e("543d")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'tuniao-ui/components/tn-row-notice/tn-row-notice-create-component',
    {
        'tuniao-ui/components/tn-row-notice/tn-row-notice-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("19dd"))
        })
    },
    [['tuniao-ui/components/tn-row-notice/tn-row-notice-create-component']]
]);
