/* REM算法 */ var sw = window.innerWidth document.documentElement.style.fontSize = (sw / 750) * 100 + 'px' window.onresize = function () { var sw = window.innerWidth document.documentElement.style.fontSize = (sw / 750) * 100 + 'px' } Vue.component('mycalendarDay',{ props:['data'], mounted() { console.log('mycalendarDay',this.data) }, methods:{ selectDate:function(v){ this.$emit('selectDate',v) }, addClass:function(v){ return v.disabled + " "+ v.disabled2 + " " +v.start_date + "" + v.end_date +" " + v.active_date } }, template:'