webpackJsonp([15],{MPaU:function(t,e){},TNmO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Dd8w"),a=n.n(i),o={name:"MonitorTitle",props:{bgImg:{type:String},hideDate:{type:Boolean,default:!1},hideTime:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},color:{type:String},size:{type:String,default:"2.8rem"}},data:function(){return{openDatePicker:!1,timer:null,time:null,style:{}}},mounted:function(){var t=this;this.hideTime||(this.timer=setInterval(function(){t.time=t.$moment().format("dddd")+" "+t.$moment().format("LTS")},1e3)),this.color&&(this.style={"text-shadow":"0 0.2rem 0.4rem "+this.color,color:this.color,"background-image":"linear-gradient(to bottom, #fff, "+this.color+")"}),this.style=a()({},this.style,{"font-size":this.size})},beforeDestroy:function(){clearInterval(this.timer),this.timer=null},computed:{curDate:function(){var t=this.$store.state.curDate;return t?this.$moment(t).format("LL"):this.$moment().format("LL")},options:function(){var t=this;return{disabledDate:function(e){return t.$moment(e).isAfter(t.$moment())}}}},methods:{handleDateChange:function(t){this.$store.commit("SET_CURDATE",t),this.openDatePicker=!1}}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"monitor-title"},[t.hideDate?t._e():n("span",{staticClass:"moment date",on:{mouseenter:function(e){t.returnopenDatePicker=!0},mouseleave:function(e){t.openDatePicker=!1}}},[n("DatePicker",{staticClass:"date-picker",attrs:{value:t.curDate,options:t.options,open:t.editable&&t.openDatePicker,type:"date"},on:{"on-change":t.handleDateChange}},[n("span",[t._v(t._s(t.curDate))])])],1),t._v(" "),t.hideTime?t._e():n("span",{staticClass:"moment time"},[t._v(t._s(t.time))]),t._v(" "),n("img",{attrs:{src:t.bgImg,draggable:"false"}}),t._v(" "),n("p",{style:t.style},[t._t("default")],2)])},staticRenderFns:[]};var s=n("VU/8")(o,r,!1,function(t){n("MPaU")},"data-v-308317a7",null);e.default=s.exports}});
//# sourceMappingURL=15.5a24d98fd4a88bf6fdfb.js.map