vue-mobile-calendar
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Calendar",[],e):"object"==typeof exports?exports.Calendar=e():t.Calendar=e()}(this,function(){return function(t){function e(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var a={};return e.m=t,e.c=a,e.i=function(t){return t},e.d=function(t,a,n){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,a){function n(t){a(7)}var i=a(5)(a(1),a(6),n,"data-v-e895ea78",null);t.exports=i.exports},function(t,e,a){"use strict";function n(t,e){var a=new Array,n=new Date;n.setFullYear(t,e-1,1);var i=0==n.getDay()?7:n.getDay();n.setFullYear(t,e,0);for(var r=n.getDate(),s=i-1,o=i+r-2,l=0;l<r;l++)a[i+l-1]=l+1;n.setFullYear(t,e-1,0);for(var d=n.getDate(),c=i-1;c>0;c--)a[c-1]=d-(i-(c+1));for(var h=r+i;h<43;h++)a[h-1]=h-(r+i)+1;for(var u=new Array,p=0;p<6;p++){for(var f=new Array,g=0;g<7;g++)f[g]={value:a[7*p+g],selected:!1};u.push(f)}return{allDay_list:u,start:s,end:o,year:t,month:e}}function i(t,e){var a={"M+":t.getMonth()+1,"d+":t.getDate()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));for(var n in a)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?a[n]:("00"+a[n]).substr((""+a[n]).length)));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"calendar",props:{value:{type:Boolean,default:!1},closeByClickmask:{type:Boolean,default:!0},format:{type:String,default:"yyyy-MM-dd"},defaultDate:{type:Date,default:null},maxDate:{type:Date,default:null},minDate:{type:Date,default:null},month:{type:Array,default:function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]}},week:{type:Array,default:function(){return["周一","周二","周三","周四","周五","周六","周日"]}}},data:function(){return{open:!1,dateObj:{pre:{},current:{},next:{}},translateX:0,translateX_parent:0,translateTime:0,currentViewMonth:{year:2017,month:6,day:1},selectedDate:{year:null,month:null,day:null},touch:{startX:null,startY:null}}},watch:{open:function(t){this.$emit("input",t)},value:function(t){this.open=t}},created:function(){this.init()},mounted:function(){this.value&&(this.open=!0),this.$refs["calendar-touch"].addEventListener("touchstart",this.handleTouchStart),this.$refs["calendar-touch"].addEventListener("touchend",this.handleTouchEnd)},beforeDestroy:function(){this.$refs["calendar-touch"].removeEventListener("touchstart",this.handleTouchStart),this.$refs["calendar-touch"].removeEventListener("touchend",this.handleTouchEnd)},methods:{init:function(){if(this.defaultDate)if(this.defaultDate instanceof Date){var t=i(this.defaultDate,"yyyy-MM-dd").split("-");this.selectedDate={year:parseInt(t[0]),month:parseInt(t[1]),day:parseInt(t[2])},this.currentViewMonth={year:parseInt(t[0]),month:parseInt(t[1]),day:parseInt(t[2])}}else console.error("error parameter of defaultDate!");else{var e=i(new Date,"yyyy-MM-dd").split("-");this.currentViewMonth={year:parseInt(e[0]),month:parseInt(e[1]),day:parseInt(e[2])}}(!this.month instanceof Array||!this.week instanceof Array||12!=this.month.length||7!=this.week.length)&&console.error("error parameter of month or week!"),this.createdDate()},handleTouchStart:function(t){this.touch.startX=t.touches[0].clientX,this.touch.startY=t.touches[0].clientY},handleTouchEnd:function(t){var e=t.changedTouches[0].pageX,a=t.changedTouches[0].pageY,n=e-this.touch.startX,i=a-this.touch.startY;Math.abs(n)>Math.abs(i)&&n>0&&Math.abs(n)>50?this.handelMonthClick("pre",!0):Math.abs(n)>Math.abs(i)&&n<0&&Math.abs(n)>50&&this.handelMonthClick("next",!0)},handelModalClick:function(t){this.closeByClickmask&&!this.$refs.calendar.contains(t.target)&&(this.open=!1)},createdDate:function(){var t=this.currentViewMonth.year,e=this.currentViewMonth.month;this.dateObj.pre=n(1==e?t-1:t,1==e?12:e-1),this.dateObj.current=n(t,e),this.dateObj.next=n(12==e?t+1:t,12==e?1:e+1),this.assignSelectedDate()},isTranslateEnd:function(){if(0!=this.translateTime){if(new Date-this.translateTime<450)return!1}return!0},handelMonthClick:function(t,e){var a=this;e&&!this.isTranslateEnd()||(this.translateTime=new Date,"pre"==t&&(this.translateX+=100,1==this.currentViewMonth.month?(this.currentViewMonth.year--,this.currentViewMonth.month=12):this.currentViewMonth.month--,setTimeout(function(){a.translateX_parent-=100,a.createdDate()},450)),"next"==t&&(this.translateX-=100,12==this.currentViewMonth.month?(this.currentViewMonth.year++,this.currentViewMonth.month=1):this.currentViewMonth.month++,setTimeout(function(){a.translateX_parent+=100,a.createdDate()},450)))},handelYearClick:function(t){var e=this;this.translateTime=new Date,"pre"==t&&(this.translateX+=100,this.currentViewMonth.year--,setTimeout(function(){e.translateX_parent-=100,e.createdDate()},430)),"next"==t&&(this.translateX-=100,this.currentViewMonth.year++,setTimeout(function(){e.translateX_parent+=100,e.createdDate()},430))},handelDayClick:function(t,e,a,n){if(this.isTranslateEnd()&&!t.invalid&&(this.translateTime=new Date,this.open=!1,!t.selected)){this.removeSelectedDate(),t.selected=!0,this.selectedDate.day=t.value,e+1<=a?(this.selectedDate.month=1==this.currentViewMonth.month?12:this.currentViewMonth.month-1,this.selectedDate.year=1==this.currentViewMonth.month?this.currentViewMonth.year-1:this.currentViewMonth.year,this.handelMonthClick("pre",!1)):e>n?(this.selectedDate.month=12==this.currentViewMonth.month?1:this.currentViewMonth.month+1,this.selectedDate.year=12==this.currentViewMonth.month?this.currentViewMonth.year+1:this.currentViewMonth.year,this.handelMonthClick("next",!1)):(this.selectedDate.month=this.currentViewMonth.month,this.selectedDate.year=this.currentViewMonth.year);var r=new Date(this.selectedDate.year,this.selectedDate.month-1,this.selectedDate.day);this.$emit("change",r,i(r,this.format))}},removeSelectedDate:function(){for(var t in this.dateObj)for(var e in this.dateObj[t].allDay_list)for(var a in this.dateObj[t].allDay_list[e])this.dateObj[t].allDay_list[e][a].selected&&(this.dateObj[t].allDay_list[e][a].selected=!1)},assignSelectedDate:function(){for(var t in this.dateObj)for(var e in this.dateObj[t].allDay_list)for(var a in this.dateObj[t].allDay_list[e]){var n=this.dateObj[t].year,i=this.dateObj[t].month,r=this.dateObj[t].allDay_list[e][a].value,s=7*e+parseInt(a);s<this.dateObj[t].start?(n=1==i?n-1:n,i=1==i?12:i-1):s>this.dateObj[t].end&&(n=12==i?n+1:n,i=12==i?1:i+1);var o=new Date(n,i-1,r),l=new Date;this.selectedDate.year==n&&this.selectedDate.month==i&&this.selectedDate.day==r&&(this.dateObj[t].allDay_list[e][a].selected=!0),0<=l-o&&l-o<864e5&&(this.dateObj[t].allDay_list[e][a].isToday=!0),this.minDate&&o-new Date(this.minDate.getFullYear(),this.minDate.getMonth(),this.minDate.getUTCDate())<0&&(this.dateObj[t].allDay_list[e][a].invalid=!0),this.maxDate&&o-new Date(this.maxDate.getFullYear(),this.maxDate.getMonth(),this.maxDate.getUTCDate()+1)>0&&(this.dateObj[t].allDay_list[e][a].invalid=!0)}}}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(0),i=a.n(n),r=function(t){t.component(i.a.name,i.a)};"undefined"!=typeof window&&window.Vue&&r(window.Vue),e.default=r},function(t,e,a){e=t.exports=a(4)(),e.push([t.i,'.modal[data-v-e895ea78]{position:absolute;left:0;top:0;background:rgba(0,0,0,.4);z-index:9999;opacity:0;transition:opacity .3s;-webkit-transition:opacity .3s}.modal.show[data-v-e895ea78]{width:100%;height:100%;opacity:1}.calendar[data-v-e895ea78]{position:fixed;bottom:0;left:0;right:0;height:300px;background-color:#fff;z-index:10000;transform:translateY(0);-webkit-transform:translateY(0);transition-duration:.2s;-webkit-transition-duration:.2s;transition-timing-function:linear;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none}.popup-slide-bottom-enter[data-v-e895ea78],.popup-slide-bottom-leave-active[data-v-e895ea78]{transform:translateY(300px)}.fade-enter-active[data-v-e895ea78]{transition:opacity .5s}.fade-enter[data-v-e895ea78],.fade-leave[data-v-e895ea78]{opacity:0}.toolbar[data-v-e895ea78]{position:relative}.toolbar-inner[data-v-e895ea78]{display:-ms-flexbox;display:flex;height:40px;line-height:40px;text-align:center}.calendar-month-picker[data-v-e895ea78],.calendar-year-picker[data-v-e895ea78]{display:-ms-flexbox;display:flex;min-width:120px}.current-month-value[data-v-e895ea78],.current-year-value[data-v-e895ea78]{width:70px;-webkit-flex-shrink:1;-ms-flex:0 1 auto;flex-shrink:1;position:relative;overflow:hidden;text-overflow:ellipsis}.calendar-next[data-v-e895ea78],.calendar-prev[data-v-e895ea78]{padding:10px}.next-img[data-v-e895ea78],.pre-img[data-v-e895ea78]{background-size:100% 100%;width:20px;height:20px}.pre-img[data-v-e895ea78]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAKFUlEQVR4Xu2bQXJbRRBAeyIFvMOuEmuUEyTcIDkBPgIsqZginIDkBAkFVJZwA5wTwA0wJ8CsSZWdnYQlDyVjJyEVy/P/n+6Z3/Oypad7+nW/GtkWQfgHAQhcSyDABgIQuJ4AgrAdENhCAEFYDwggCDsAgX4EeEH6ceNUIwQQpJFB02Y/AgjSjxunGiGAII0Mmjb7EUCQftw41QgBBGlk0LTZjwCC9OPm/9TTk92d2+vPYpT9EOSeiMwvmz6OUY5CkMPF2eSFfLN36hkGgniebp/eNmJ8cP51PI+PQpDdbSlilNNwKzxb/HPrO6+iIEifJXJ6Zuf5yTyuV78ECZsXI/lflHi0PJs+8CgJgiSvge/A2z+e3Lt1vv71plfjOgqb12S5mtzxJgmC+N77pO6GynFVxONLgiBJK+Q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FIXcIZBBAkAx4bPVPAEH8Z8wNMwggSAY8tvongCD+M+aGGQQQJAMeW/0TQBD/GXPDDAIIkgGPrf4JIIj/jLlhBgEEyYDHVv8EEMR/xtwwg8D/AJo3EzIUZzHNAAAAAElFTkSuQmCC)}.calendar-inner[data-v-e895ea78]{box-sizing:border-box}.calendar-week[data-v-e895ea78]{position:relative;display:-ms-flexbox;display:flex;height:20px;box-sizing:border-box;font-size:11px;background:#f7f7f8}.calendar-week[data-v-e895ea78]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background-color:#c4c4c4;transform:translateY(-.5px);transform:scaleY(.5)}.calendar-week-day[data-v-e895ea78]{flex-grow:1;text-align:center;width:14.28571429%;width:14.28571%;line-height:20px;-webkit-flex-shrink:1;-ms-flex:0 1 auto;flex-shrink:1;position:relative;overflow:hidden;text-overflow:ellipsis;padding:0 5px}.calendar-month[data-v-e895ea78]{position:relative;width:100%;height:240px;overflow:hidden}.calendar-month-wrapper[data-v-e895ea78]{position:absolute;top:0;left:0;right:0;bottom:0}.calendar-month-current[data-v-e895ea78],.calendar-month-next[data-v-e895ea78],.calendar-month-pre[data-v-e895ea78]{position:absolute;top:0;left:0;width:100%;height:100%;transition-duration:.4s;transition-timing-function:ease-in-out}.calendar-month-row[data-v-e895ea78]{position:relative;display:-ms-flexbox;display:flex;width:100%;-webkit-flex-shrink:1;-ms-flex:0 1 auto;-ms-flex-negative:1;flex-shrink:1;height:40px}.calendar-month-row[data-v-e895ea78]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background-color:#ccc;transform:translateY(-.5px);transform:scaleY(.5);-webkit-transform:scaleY(.5)}.calendar-day[data-v-e895ea78]{box-sizing:border-box;font-size:15px;color:#3d4145;text-align:center;cursor:pointer;flex-grow:1;line-height:40px;width:14.28571429%;width:14.28571%;color:#000}.calendar-day.grey[data-v-e895ea78]{color:#757575}.calendar-day span[data-v-e895ea78]{display:inline-block;width:30px;height:30px;line-height:30px;border-radius:100%}.calendar-day span.invalid[data-v-e895ea78]{color:#e0e0e0;cursor:not-allowed}.calendar-day span.today[data-v-e895ea78]{background-color:#eee}.calendar-day.selected span[data-v-e895ea78]{color:#fff;background:#0894ec}',""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var a=this[e];a[2]?t.push("@media "+a[2]+"{"+a[1]+"}"):t.push(a[1])}return t.join("")},t.i=function(e,a){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(n[r]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&n[s[0]]||(a&&!s[2]?s[2]=a:a&&(s[2]="("+s[2]+") and ("+a+")"),t.push(s))}},t}},function(t,e){t.exports=function(t,e,a,n,i){var r,s=t=t||{},o=typeof t.default;"object"!==o&&"function"!==o||(r=t,s=t.default);var l="function"==typeof s?s.options:s;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns),n&&(l._scopeId=n);var d;if(i?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=d):a&&(d=a),d){var c=l.functional,h=c?l.render:l.beforeCreate;c?l.render=function(t,e){return d.call(e),h(t,e)}:l.beforeCreate=h?[].concat(h,d):[d]}return{esModule:r,exports:s,options:l}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal",class:{show:t.open},on:{click:t.handelModalClick}},[a("transition",{attrs:{name:"popup-slide-bottom"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],ref:"calendar",staticClass:"calendar"},[a("div",{staticClass:"toolbar"},[a("div",{staticClass:"toolbar-inner"},[a("div",{staticClass:"calendar-month-picker"},[a("a",{staticClass:"calendar-prev",on:{click:function(e){t.handelMonthClick("pre")}}},[a("div",{staticClass:"pre-img"})]),t._v(" "),a("div",{staticClass:"current-month-value"},[t._v(t._s(t.month[t.currentViewMonth.month-1]))]),t._v(" "),a("a",{staticClass:"calendar-next",on:{click:function(e){t.handelMonthClick("next")}}},[a("div",{staticClass:"next-img"})])]),t._v(" "),a("div",{staticClass:"calendar-year-picker"},[a("a",{staticClass:"calendar-prev",on:{click:function(e){t.handelYearClick("pre")}}},[a("div",{staticClass:"pre-img"})]),t._v(" "),a("div",{staticClass:"current-year-value"},[t._v(t._s(t.currentViewMonth.year))]),t._v(" "),a("a",{staticClass:"calendar-next",on:{click:function(e){t.handelYearClick("next")}}},[a("div",{staticClass:"next-img"})])])])]),t._v(" "),a("div",{staticClass:"calendar-inner"},[a("div",{staticClass:"calendar-week"},t._l(t.week,function(e,n){return a("div",{key:n,staticClass:"calendar-week-day"},[t._v(t._s(e))])})),t._v(" "),a("div",{ref:"calendar-touch",staticClass:"calendar-month"},[a("div",{staticClass:"calendar-month-wrapper",style:{transform:"translate3d("+t.translateX_parent+"%, 0, 0)"}},[a("div",{staticClass:"calendar-month-pre",style:{transform:"translate3d("+(t.translateX-100)+"%, 0, 0)"}},t._l(t.dateObj.pre.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+7*n+i<t.dateObj.pre.start||7*n+i>t.dateObj.pre.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,i,t.dateObj.pre.start,t.dateObj.pre.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))})),t._v(" "),a("div",{staticClass:"calendar-month-current",style:{transform:"translate3d("+t.translateX+"%, 0, 0)"}},t._l(t.dateObj.current.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+i<t.dateObj.current.start||7*n+i>t.dateObj.current.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,7*n+i,t.dateObj.current.start,t.dateObj.current.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))})),t._v(" "),a("div",{staticClass:"calendar-month-next",style:{transform:"translate3d("+(t.translateX+100)+"%, 0, 0)"}},t._l(t.dateObj.next.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+i<t.dateObj.next.start||7*n+i>t.dateObj.next.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,7*n+i,t.dateObj.next.start,t.dateObj.next.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))}))])])])])])],1)},staticRenderFns:[]}},function(t,e,a){var n=a(3);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a(8)("3398262e",n,!0,{})},function(t,e,a){function n(t){for(var e=0;e<t.length;e++){var a=t[e],n=c[a.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](a.parts[i]);for(;i<a.parts.length;i++)n.parts.push(r(a.parts[i]));n.parts.length>a.parts.length&&(n.parts.length=a.parts.length)}else{for(var s=[],i=0;i<a.parts.length;i++)s.push(r(a.parts[i]));c[a.id]={id:a.id,refs:1,parts:s}}}}function i(){var t=document.createElement("style");return t.type="text/css",h.appendChild(t),t}function r(t){var e,a,n=document.querySelector("style["+v+'~="'+t.id+'"]');if(n){if(f)return g;n.parentNode.removeChild(n)}if(m){var r=p++;n=u||(u=i()),e=s.bind(null,n,r,!1),a=s.bind(null,n,r,!0)}else n=i(),e=o.bind(null,n),a=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else a()}}function s(t,e,a,n){var i=a?"":n.css;if(t.styleSheet)t.styleSheet.cssText=C(e,i);else{var r=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function o(t,e){var a=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),y.ssrId&&t.setAttribute(v,e.id),i&&(a+="\n/*# sourceURL="+i.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=a(9),c={},h=l&&(document.head||document.getElementsByTagName("head")[0]),u=null,p=0,f=!1,g=function(){},y=null,v="data-vue-ssr-id",m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,a,i){f=a,y=i||{};var r=d(t,e);return n(r),function(e){for(var a=[],i=0;i<r.length;i++){var s=r[i],o=c[s.id];o.refs--,a.push(o)}e?(r=d(t,e),n(r)):r=[];for(var i=0;i<a.length;i++){var o=a[i];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete c[o.id]}}}};var C=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var a=[],n={},i=0;i<e.length;i++){var r=e[i],s=r[0],o=r[1],l=r[2],d=r[3],c={id:t+":"+i,css:o,media:l,sourceMap:d};n[s]?n[s].parts.push(c):a.push(n[s]={id:s,parts:[c]})}return a}}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Calendar",[],e):"object"==typeof exports?exports.Calendar=e():t.Calendar=e()}(this,function(){return function(t){function e(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var a={};return e.m=t,e.c=a,e.i=function(t){return t},e.d=function(t,a,n){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,a){function n(t){a(7)}var i=a(5)(a(1),a(6),n,"data-v-e895ea78",null);t.exports=i.exports},function(t,e,a){"use strict";function n(t,e){var a=new Array,n=new Date;n.setFullYear(t,e-1,1);var i=0==n.getDay()?7:n.getDay();n.setFullYear(t,e,0);for(var r=n.getDate(),s=i-1,o=i+r-2,l=0;l<r;l++)a[i+l-1]=l+1;n.setFullYear(t,e-1,0);for(var d=n.getDate(),c=i-1;c>0;c--)a[c-1]=d-(i-(c+1));for(var h=r+i;h<43;h++)a[h-1]=h-(r+i)+1;for(var u=new Array,p=0;p<6;p++){for(var f=new Array,g=0;g<7;g++)f[g]={value:a[7*p+g],selected:!1};u.push(f)}return{allDay_list:u,start:s,end:o,year:t,month:e}}function i(t,e){var a={"M+":t.getMonth()+1,"d+":t.getDate()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));for(var n in a)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?a[n]:("00"+a[n]).substr((""+a[n]).length)));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"calendar",props:{value:{type:Boolean,default:!1},closeByClickmask:{type:Boolean,default:!0},format:{type:String,default:"yyyy-MM-dd"},defaultDate:{type:Date,default:null},maxDate:{type:Date,default:null},minDate:{type:Date,default:null},month:{type:Array,default:function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]}},week:{type:Array,default:function(){return["周一","周二","周三","周四","周五","周六","周日"]}}},data:function(){return{open:!1,dateObj:{pre:{},current:{},next:{}},translateX:0,translateX_parent:0,translateTime:0,currentViewMonth:{year:2017,month:6,day:1},selectedDate:{year:null,month:null,day:null},touch:{startX:null,startY:null}}},watch:{open:function(t){this.$emit("input",t)},value:function(t){this.open=t},minDate:function(t){this.assignSelectedDate()},maxDate:function(t){this.assignSelectedDate()}},created:function(){this.init()},mounted:function(){this.value&&(this.open=!0),this.$refs["calendar-touch"].addEventListener("touchstart",this.handleTouchStart),this.$refs["calendar-touch"].addEventListener("touchend",this.handleTouchEnd)},beforeDestroy:function(){this.$refs["calendar-touch"].removeEventListener("touchstart",this.handleTouchStart),this.$refs["calendar-touch"].removeEventListener("touchend",this.handleTouchEnd)},methods:{init:function(){if(this.defaultDate)if(this.defaultDate instanceof Date){var t=i(this.defaultDate,"yyyy-MM-dd").split("-");this.selectedDate={year:parseInt(t[0]),month:parseInt(t[1]),day:parseInt(t[2])},this.currentViewMonth={year:parseInt(t[0]),month:parseInt(t[1]),day:parseInt(t[2])}}else console.error("error parameter of defaultDate!");else{var e=i(new Date,"yyyy-MM-dd").split("-");this.currentViewMonth={year:parseInt(e[0]),month:parseInt(e[1]),day:parseInt(e[2])}}(!this.month instanceof Array||!this.week instanceof Array||12!=this.month.length||7!=this.week.length)&&console.error("error parameter of month or week!"),this.createdDate()},handleTouchStart:function(t){this.touch.startX=t.touches[0].clientX,this.touch.startY=t.touches[0].clientY},handleTouchEnd:function(t){var e=t.changedTouches[0].pageX,a=t.changedTouches[0].pageY,n=e-this.touch.startX,i=a-this.touch.startY;Math.abs(n)>Math.abs(i)&&n>0&&Math.abs(n)>50?this.handelMonthClick("pre",!0):Math.abs(n)>Math.abs(i)&&n<0&&Math.abs(n)>50&&this.handelMonthClick("next",!0)},handelModalClick:function(t){this.closeByClickmask&&!this.$refs.calendar.contains(t.target)&&(this.open=!1)},createdDate:function(){var t=this.currentViewMonth.year,e=this.currentViewMonth.month;this.dateObj.pre=n(1==e?t-1:t,1==e?12:e-1),this.dateObj.current=n(t,e),this.dateObj.next=n(12==e?t+1:t,12==e?1:e+1),this.assignSelectedDate()},isTranslateEnd:function(){if(0!=this.translateTime){if(new Date-this.translateTime<450)return!1}return!0},handelMonthClick:function(t,e){var a=this;e&&!this.isTranslateEnd()||(this.translateTime=new Date,"pre"==t&&(this.translateX+=100,1==this.currentViewMonth.month?(this.currentViewMonth.year--,this.currentViewMonth.month=12):this.currentViewMonth.month--,setTimeout(function(){a.translateX_parent-=100,a.createdDate()},450)),"next"==t&&(this.translateX-=100,12==this.currentViewMonth.month?(this.currentViewMonth.year++,this.currentViewMonth.month=1):this.currentViewMonth.month++,setTimeout(function(){a.translateX_parent+=100,a.createdDate()},450)))},handelYearClick:function(t){var e=this;this.translateTime=new Date,"pre"==t&&(this.translateX+=100,this.currentViewMonth.year--,setTimeout(function(){e.translateX_parent-=100,e.createdDate()},430)),"next"==t&&(this.translateX-=100,this.currentViewMonth.year++,setTimeout(function(){e.translateX_parent+=100,e.createdDate()},430))},handelDayClick:function(t,e,a,n){if(this.isTranslateEnd()&&!t.invalid&&(this.translateTime=new Date,this.open=!1,!t.selected)){this.removeSelectedDate(),t.selected=!0,this.selectedDate.day=t.value,e+1<=a?(this.selectedDate.month=1==this.currentViewMonth.month?12:this.currentViewMonth.month-1,this.selectedDate.year=1==this.currentViewMonth.month?this.currentViewMonth.year-1:this.currentViewMonth.year,this.handelMonthClick("pre",!1)):e>n?(this.selectedDate.month=12==this.currentViewMonth.month?1:this.currentViewMonth.month+1,this.selectedDate.year=12==this.currentViewMonth.month?this.currentViewMonth.year+1:this.currentViewMonth.year,this.handelMonthClick("next",!1)):(this.selectedDate.month=this.currentViewMonth.month,this.selectedDate.year=this.currentViewMonth.year);var r=new Date(this.selectedDate.year,this.selectedDate.month-1,this.selectedDate.day);this.$emit("change",r,i(r,this.format))}},removeSelectedDate:function(){for(var t in this.dateObj)for(var e in this.dateObj[t].allDay_list)for(var a in this.dateObj[t].allDay_list[e])this.dateObj[t].allDay_list[e][a].selected&&(this.dateObj[t].allDay_list[e][a].selected=!1)},assignSelectedDate:function(){for(var t in this.dateObj)for(var e in this.dateObj[t].allDay_list)for(var a in this.dateObj[t].allDay_list[e]){var n=this.dateObj[t].year,i=this.dateObj[t].month,r=this.dateObj[t].allDay_list[e][a].value,s=7*e+parseInt(a);s<this.dateObj[t].start?(n=1==i?n-1:n,i=1==i?12:i-1):s>this.dateObj[t].end&&(n=12==i?n+1:n,i=12==i?1:i+1);var o=new Date(n,i-1,r),l=new Date;this.selectedDate.year==n&&this.selectedDate.month==i&&this.selectedDate.day==r&&(this.dateObj[t].allDay_list[e][a].selected=!0),0<=l-o&&l-o<864e5&&(this.dateObj[t].allDay_list[e][a].isToday=!0),this.minDate&&o-new Date(this.minDate.getFullYear(),this.minDate.getMonth(),this.minDate.getUTCDate())<0||this.maxDate&&o-new Date(this.maxDate.getFullYear(),this.maxDate.getMonth(),this.maxDate.getUTCDate()+1)>0?this.dateObj[t].allDay_list[e][a].invalid=!0:this.dateObj[t].allDay_list[e][a].invalid=!1}}}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(0),i=a.n(n),r=function(t){t.component(i.a.name,i.a)};"undefined"!=typeof window&&window.Vue&&r(window.Vue),e.default=r},function(t,e,a){e=t.exports=a(4)(),e.push([t.i,'.modal[data-v-e895ea78]{position:absolute;left:0;top:0;background:rgba(0,0,0,.4);z-index:9999;opacity:0;transition:opacity .3s;-webkit-transition:opacity .3s}.modal.show[data-v-e895ea78]{width:100%;height:100%;opacity:1}.calendar[data-v-e895ea78]{position:fixed;bottom:0;left:0;right:0;height:300px;background-color:#fff;z-index:10000;transform:translateY(0);-webkit-transform:translateY(0);transition-duration:.2s;-webkit-transition-duration:.2s;transition-timing-function:linear;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none}.popup-slide-bottom-enter[data-v-e895ea78],.popup-slide-bottom-leave-active[data-v-e895ea78]{transform:translateY(300px)}.fade-enter-active[data-v-e895ea78]{transition:opacity .5s}.fade-enter[data-v-e895ea78],.fade-leave[data-v-e895ea78]{opacity:0}.toolbar[data-v-e895ea78]{position:relative}.toolbar-inner[data-v-e895ea78]{display:-ms-flexbox;display:flex;height:40px;line-height:40px;text-align:center}.calendar-month-picker[data-v-e895ea78],.calendar-year-picker[data-v-e895ea78]{display:-ms-flexbox;display:flex;min-width:120px}.current-month-value[data-v-e895ea78],.current-year-value[data-v-e895ea78]{width:70px;-webkit-flex-shrink:1;-ms-flex:0 1 auto;flex-shrink:1;position:relative;overflow:hidden;text-overflow:ellipsis}.calendar-next[data-v-e895ea78],.calendar-prev[data-v-e895ea78]{padding:10px}.next-img[data-v-e895ea78],.pre-img[data-v-e895ea78]{background-size:100% 100%;width:20px;height:20px}.pre-img[data-v-e895ea78]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAKFUlEQVR4Xu2bQXJbRRBAeyIFvMOuEmuUEyTcIDkBPgIsqZginIDkBAkFVJZwA5wTwA0wJ8CsSZWdnYQlDyVjJyEVy/P/n+6Z3/Oypad7+nW/GtkWQfgHAQhcSyDABgIQuJ4AgrAdENhCAEFYDwggCDsAgX4EeEH6ceNUIwQQpJFB02Y/AgjSjxunGiGAII0Mmjb7EUCQftw41QgBBGlk0LTZjwCC9OPm/9TTk92d2+vPYpT9EOSeiMwvmz6OUY5CkMPF2eSFfLN36hkGgniebp/eNmJ8cP51PI+PQpDdbSlilNNwKzxb/HPrO6+iIEifJXJ6Zuf5yTyuV78ECZsXI/lflHi0PJs+8CgJgiSvge/A2z+e3Lt1vv71plfjOgqb12S5mtzxJgmC+N77pO6GynFVx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75BAxkOImAv4FIXcIZBBAkAx4bPVPAEH8Z8wNMwggSAY8tvongCD+M+aGGQQQJAMeW/0TQBD/GXPDDAIIkgGPrf4JIIj/jLlhBgEEyYDHVv8EEMR/xtwwg8D/AJo3EzIUZzHNAAAAAElFTkSuQmCC)}.calendar-inner[data-v-e895ea78]{box-sizing:border-box}.calendar-week[data-v-e895ea78]{position:relative;display:-ms-flexbox;display:flex;height:20px;box-sizing:border-box;font-size:11px;background:#f7f7f8}.calendar-week[data-v-e895ea78]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background-color:#c4c4c4;transform:translateY(-.5px);transform:scaleY(.5)}.calendar-week-day[data-v-e895ea78]{flex-grow:1;text-align:center;width:14.28571429%;width:14.28571%;line-height:20px;-webkit-flex-shrink:1;-ms-flex:0 1 auto;flex-shrink:1;position:relative;overflow:hidden;text-overflow:ellipsis;padding:0 5px}.calendar-month[data-v-e895ea78]{position:relative;width:100%;height:240px;overflow:hidden}.calendar-month-wrapper[data-v-e895ea78]{position:absolute;top:0;left:0;right:0;bottom:0}.calendar-month-current[data-v-e895ea78],.calendar-month-next[data-v-e895ea78],.calendar-month-pre[data-v-e895ea78]{position:absolute;top:0;left:0;width:100%;height:100%;transition-duration:.4s;transition-timing-function:ease-in-out}.calendar-month-row[data-v-e895ea78]{position:relative;display:-ms-flexbox;display:flex;width:100%;-webkit-flex-shrink:1;-ms-flex:0 1 auto;-ms-flex-negative:1;flex-shrink:1;height:40px}.calendar-month-row[data-v-e895ea78]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background-color:#ccc;transform:translateY(-.5px);transform:scaleY(.5);-webkit-transform:scaleY(.5)}.calendar-day[data-v-e895ea78]{box-sizing:border-box;font-size:15px;color:#3d4145;text-align:center;cursor:pointer;flex-grow:1;line-height:40px;width:14.28571429%;width:14.28571%;color:#000}.calendar-day.grey[data-v-e895ea78]{color:#757575}.calendar-day span[data-v-e895ea78]{display:inline-block;width:30px;height:30px;line-height:30px;border-radius:100%}.calendar-day span.invalid[data-v-e895ea78]{color:#e0e0e0;cursor:not-allowed}.calendar-day span.today[data-v-e895ea78]{background-color:#eee}.calendar-day.selected span[data-v-e895ea78]{color:#fff;background:#0894ec}',""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var a=this[e];a[2]?t.push("@media "+a[2]+"{"+a[1]+"}"):t.push(a[1])}return t.join("")},t.i=function(e,a){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(n[r]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&n[s[0]]||(a&&!s[2]?s[2]=a:a&&(s[2]="("+s[2]+") and ("+a+")"),t.push(s))}},t}},function(t,e){t.exports=function(t,e,a,n,i){var r,s=t=t||{},o=typeof t.default;"object"!==o&&"function"!==o||(r=t,s=t.default);var l="function"==typeof s?s.options:s;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns),n&&(l._scopeId=n);var d;if(i?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=d):a&&(d=a),d){var c=l.functional,h=c?l.render:l.beforeCreate;c?l.render=function(t,e){return d.call(e),h(t,e)}:l.beforeCreate=h?[].concat(h,d):[d]}return{esModule:r,exports:s,options:l}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal",class:{show:t.open},on:{click:t.handelModalClick}},[a("transition",{attrs:{name:"popup-slide-bottom"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],ref:"calendar",staticClass:"calendar"},[a("div",{staticClass:"toolbar"},[a("div",{staticClass:"toolbar-inner"},[a("div",{staticClass:"calendar-month-picker"},[a("a",{staticClass:"calendar-prev",on:{click:function(e){t.handelMonthClick("pre")}}},[a("div",{staticClass:"pre-img"})]),t._v(" "),a("div",{staticClass:"current-month-value"},[t._v(t._s(t.month[t.currentViewMonth.month-1]))]),t._v(" "),a("a",{staticClass:"calendar-next",on:{click:function(e){t.handelMonthClick("next")}}},[a("div",{staticClass:"next-img"})])]),t._v(" "),a("div",{staticClass:"calendar-year-picker"},[a("a",{staticClass:"calendar-prev",on:{click:function(e){t.handelYearClick("pre")}}},[a("div",{staticClass:"pre-img"})]),t._v(" "),a("div",{staticClass:"current-year-value"},[t._v(t._s(t.currentViewMonth.year))]),t._v(" "),a("a",{staticClass:"calendar-next",on:{click:function(e){t.handelYearClick("next")}}},[a("div",{staticClass:"next-img"})])])])]),t._v(" "),a("div",{staticClass:"calendar-inner"},[a("div",{staticClass:"calendar-week"},t._l(t.week,function(e,n){return a("div",{key:n,staticClass:"calendar-week-day"},[t._v(t._s(e))])})),t._v(" "),a("div",{ref:"calendar-touch",staticClass:"calendar-month"},[a("div",{staticClass:"calendar-month-wrapper",style:{transform:"translate3d("+t.translateX_parent+"%, 0, 0)"}},[a("div",{staticClass:"calendar-month-pre",style:{transform:"translate3d("+(t.translateX-100)+"%, 0, 0)"}},t._l(t.dateObj.pre.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+7*n+i<t.dateObj.pre.start||7*n+i>t.dateObj.pre.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,i,t.dateObj.pre.start,t.dateObj.pre.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))})),t._v(" "),a("div",{staticClass:"calendar-month-current",style:{transform:"translate3d("+t.translateX+"%, 0, 0)"}},t._l(t.dateObj.current.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+i<t.dateObj.current.start||7*n+i>t.dateObj.current.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,7*n+i,t.dateObj.current.start,t.dateObj.current.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))})),t._v(" "),a("div",{staticClass:"calendar-month-next",style:{transform:"translate3d("+(t.translateX+100)+"%, 0, 0)"}},t._l(t.dateObj.next.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+i<t.dateObj.next.start||7*n+i>t.dateObj.next.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,7*n+i,t.dateObj.next.start,t.dateObj.next.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))}))])])])])])],1)},staticRenderFns:[]}},function(t,e,a){var n=a(3);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a(8)("3398262e",n,!0,{})},function(t,e,a){function n(t){for(var e=0;e<t.length;e++){var a=t[e],n=c[a.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](a.parts[i]);for(;i<a.parts.length;i++)n.parts.push(r(a.parts[i]));n.parts.length>a.parts.length&&(n.parts.length=a.parts.length)}else{for(var s=[],i=0;i<a.parts.length;i++)s.push(r(a.parts[i]));c[a.id]={id:a.id,refs:1,parts:s}}}}function i(){var t=document.createElement("style");return t.type="text/css",h.appendChild(t),t}function r(t){var e,a,n=document.querySelector("style["+v+'~="'+t.id+'"]');if(n){if(f)return g;n.parentNode.removeChild(n)}if(m){var r=p++;n=u||(u=i()),e=s.bind(null,n,r,!1),a=s.bind(null,n,r,!0)}else n=i(),e=o.bind(null,n),a=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else a()}}function s(t,e,a,n){var i=a?"":n.css;if(t.styleSheet)t.styleSheet.cssText=C(e,i);else{var r=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function o(t,e){var a=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),y.ssrId&&t.setAttribute(v,e.id),i&&(a+="\n/*# sourceURL="+i.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=a(9),c={},h=l&&(document.head||document.getElementsByTagName("head")[0]),u=null,p=0,f=!1,g=function(){},y=null,v="data-vue-ssr-id",m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,a,i){f=a,y=i||{};var r=d(t,e);return n(r),function(e){for(var a=[],i=0;i<r.length;i++){var s=r[i],o=c[s.id];o.refs--,a.push(o)}e?(r=d(t,e),n(r)):r=[];for(var i=0;i<a.length;i++){var o=a[i];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete c[o.id]}}}};var C=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var a=[],n={},i=0;i<e.length;i++){var r=e[i],s=r[0],o=r[1],l=r[2],d=r[3],c={id:t+":"+i,css:o,media:l,sourceMap:d};n[s]?n[s].parts.push(c):a.push(n[s]={id:s,parts:[c]})}return a}}])}); | ||
//# sourceMappingURL=vue-mobile-calendar.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Calendar",[],e):"object"==typeof exports?exports.Calendar=e():t.Calendar=e()}(this,function(){return function(t){function e(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var a={};return e.m=t,e.c=a,e.i=function(t){return t},e.d=function(t,a,n){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,a){function n(t){a(7)}var i=a(5)(a(1),a(6),n,"data-v-e895ea78",null);t.exports=i.exports},function(t,e,a){"use strict";function n(t,e){var a=new Array,n=new Date;n.setFullYear(t,e-1,1);var i=0==n.getDay()?7:n.getDay();n.setFullYear(t,e,0);for(var r=n.getDate(),s=i-1,o=i+r-2,l=0;l<r;l++)a[i+l-1]=l+1;n.setFullYear(t,e-1,0);for(var d=n.getDate(),c=i-1;c>0;c--)a[c-1]=d-(i-(c+1));for(var h=r+i;h<43;h++)a[h-1]=h-(r+i)+1;for(var u=new Array,p=0;p<6;p++){for(var f=new Array,g=0;g<7;g++)f[g]={value:a[7*p+g],selected:!1};u.push(f)}return{allDay_list:u,start:s,end:o,year:t,month:e}}function i(t,e){var a={"M+":t.getMonth()+1,"d+":t.getDate()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));for(var n in a)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?a[n]:("00"+a[n]).substr((""+a[n]).length)));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"calendar",props:{value:{type:Boolean,default:!1},closeByClickmask:{type:Boolean,default:!0},format:{type:String,default:"yyyy-MM-dd"},defaultDate:{type:Date,default:null},maxDate:{type:Date,default:null},minDate:{type:Date,default:null},month:{type:Array,default:function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]}},week:{type:Array,default:function(){return["周一","周二","周三","周四","周五","周六","周日"]}}},data:function(){return{open:!1,dateObj:{pre:{},current:{},next:{}},translateX:0,translateX_parent:0,translateTime:0,currentViewMonth:{year:2017,month:6,day:1},selectedDate:{year:null,month:null,day:null},touch:{startX:null,startY:null}}},watch:{open:function(t){this.$emit("input",t)},value:function(t){this.open=t}},created:function(){this.init()},mounted:function(){this.value&&(this.open=!0),this.$refs["calendar-touch"].addEventListener("touchstart",this.handleTouchStart),this.$refs["calendar-touch"].addEventListener("touchend",this.handleTouchEnd)},beforeDestroy:function(){this.$refs["calendar-touch"].removeEventListener("touchstart",this.handleTouchStart),this.$refs["calendar-touch"].removeEventListener("touchend",this.handleTouchEnd)},methods:{init:function(){if(this.defaultDate)if(this.defaultDate instanceof Date){var t=i(this.defaultDate,"yyyy-MM-dd").split("-");this.selectedDate={year:parseInt(t[0]),month:parseInt(t[1]),day:parseInt(t[2])},this.currentViewMonth={year:parseInt(t[0]),month:parseInt(t[1]),day:parseInt(t[2])}}else console.error("error parameter of defaultDate!");else{var e=i(new Date,"yyyy-MM-dd").split("-");this.currentViewMonth={year:parseInt(e[0]),month:parseInt(e[1]),day:parseInt(e[2])}}(!this.month instanceof Array||!this.week instanceof Array||12!=this.month.length||7!=this.week.length)&&console.error("error parameter of month or week!"),this.createdDate()},handleTouchStart:function(t){this.touch.startX=t.touches[0].clientX,this.touch.startY=t.touches[0].clientY},handleTouchEnd:function(t){var e=t.changedTouches[0].pageX,a=t.changedTouches[0].pageY,n=e-this.touch.startX,i=a-this.touch.startY;Math.abs(n)>Math.abs(i)&&n>0&&Math.abs(n)>50?this.handelMonthClick("pre",!0):Math.abs(n)>Math.abs(i)&&n<0&&Math.abs(n)>50&&this.handelMonthClick("next",!0)},handelModalClick:function(t){this.closeByClickmask&&!this.$refs.calendar.contains(t.target)&&(this.open=!1)},createdDate:function(){var t=this.currentViewMonth.year,e=this.currentViewMonth.month;this.dateObj.pre=n(1==e?t-1:t,1==e?12:e-1),this.dateObj.current=n(t,e),this.dateObj.next=n(12==e?t+1:t,12==e?1:e+1),this.assignSelectedDate()},isTranslateEnd:function(){if(0!=this.translateTime){if(new Date-this.translateTime<450)return!1}return!0},handelMonthClick:function(t,e){var a=this;e&&!this.isTranslateEnd()||(this.translateTime=new Date,"pre"==t&&(this.translateX+=100,1==this.currentViewMonth.month?(this.currentViewMonth.year--,this.currentViewMonth.month=12):this.currentViewMonth.month--,setTimeout(function(){a.translateX_parent-=100,a.createdDate()},450)),"next"==t&&(this.translateX-=100,12==this.currentViewMonth.month?(this.currentViewMonth.year++,this.currentViewMonth.month=1):this.currentViewMonth.month++,setTimeout(function(){a.translateX_parent+=100,a.createdDate()},450)))},handelYearClick:function(t){var e=this;this.translateTime=new Date,"pre"==t&&(this.translateX+=100,this.currentViewMonth.year--,setTimeout(function(){e.translateX_parent-=100,e.createdDate()},430)),"next"==t&&(this.translateX-=100,this.currentViewMonth.year++,setTimeout(function(){e.translateX_parent+=100,e.createdDate()},430))},handelDayClick:function(t,e,a,n){if(this.isTranslateEnd()&&!t.invalid&&(this.translateTime=new Date,this.open=!1,!t.selected)){this.removeSelectedDate(),t.selected=!0,this.selectedDate.day=t.value,e+1<=a?(this.selectedDate.month=1==this.currentViewMonth.month?12:this.currentViewMonth.month-1,this.selectedDate.year=1==this.currentViewMonth.month?this.currentViewMonth.year-1:this.currentViewMonth.year,this.handelMonthClick("pre",!1)):e>n?(this.selectedDate.month=12==this.currentViewMonth.month?1:this.currentViewMonth.month+1,this.selectedDate.year=12==this.currentViewMonth.month?this.currentViewMonth.year+1:this.currentViewMonth.year,this.handelMonthClick("next",!1)):(this.selectedDate.month=this.currentViewMonth.month,this.selectedDate.year=this.currentViewMonth.year);var r=new Date(this.selectedDate.year,this.selectedDate.month-1,this.selectedDate.day);this.$emit("change",r,i(r,this.format))}},removeSelectedDate:function(){for(var t in this.dateObj)for(var e in this.dateObj[t].allDay_list)for(var a in this.dateObj[t].allDay_list[e])this.dateObj[t].allDay_list[e][a].selected&&(this.dateObj[t].allDay_list[e][a].selected=!1)},assignSelectedDate:function(){for(var t in this.dateObj)for(var e in this.dateObj[t].allDay_list)for(var a in this.dateObj[t].allDay_list[e]){var n=this.dateObj[t].year,i=this.dateObj[t].month,r=this.dateObj[t].allDay_list[e][a].value,s=7*e+parseInt(a);s<this.dateObj[t].start?(n=1==i?n-1:n,i=1==i?12:i-1):s>this.dateObj[t].end&&(n=12==i?n+1:n,i=12==i?1:i+1);var o=new Date(n,i-1,r),l=new Date;this.selectedDate.year==n&&this.selectedDate.month==i&&this.selectedDate.day==r&&(this.dateObj[t].allDay_list[e][a].selected=!0),0<=l-o&&l-o<864e5&&(this.dateObj[t].allDay_list[e][a].isToday=!0),this.minDate&&o-new Date(this.minDate.getFullYear(),this.minDate.getMonth(),this.minDate.getUTCDate())<0&&(this.dateObj[t].allDay_list[e][a].invalid=!0),this.maxDate&&o-new Date(this.maxDate.getFullYear(),this.maxDate.getMonth(),this.maxDate.getUTCDate()+1)>0&&(this.dateObj[t].allDay_list[e][a].invalid=!0)}}}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(0),i=a.n(n),r=function(t){t.component(i.a.name,i.a)};"undefined"!=typeof window&&window.Vue&&r(window.Vue),e.default=r},function(t,e,a){e=t.exports=a(4)(),e.push([t.i,'.modal[data-v-e895ea78]{position:absolute;left:0;top:0;background:rgba(0,0,0,.4);z-index:9999;opacity:0;transition:opacity .3s;-webkit-transition:opacity .3s}.modal.show[data-v-e895ea78]{width:100%;height:100%;opacity:1}.calendar[data-v-e895ea78]{position:fixed;bottom:0;left:0;right:0;height:300px;background-color:#fff;z-index:10000;transform:translateY(0);-webkit-transform:translateY(0);transition-duration:.2s;-webkit-transition-duration:.2s;transition-timing-function:linear;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none}.popup-slide-bottom-enter[data-v-e895ea78],.popup-slide-bottom-leave-active[data-v-e895ea78]{transform:translateY(300px)}.fade-enter-active[data-v-e895ea78]{transition:opacity .5s}.fade-enter[data-v-e895ea78],.fade-leave[data-v-e895ea78]{opacity:0}.toolbar[data-v-e895ea78]{position:relative}.toolbar-inner[data-v-e895ea78]{display:-ms-flexbox;display:flex;height:40px;line-height:40px;text-align:center}.calendar-month-picker[data-v-e895ea78],.calendar-year-picker[data-v-e895ea78]{display:-ms-flexbox;display:flex;min-width:120px}.current-month-value[data-v-e895ea78],.current-year-value[data-v-e895ea78]{width:70px;-webkit-flex-shrink:1;-ms-flex:0 1 auto;flex-shrink:1;position:relative;overflow:hidden;text-overflow:ellipsis}.calendar-next[data-v-e895ea78],.calendar-prev[data-v-e895ea78]{padding:10px}.next-img[data-v-e895ea78],.pre-img[data-v-e895ea78]{background-size:100% 100%;width:20px;height:20px}.pre-img[data-v-e895ea78]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAKFUlEQVR4Xu2bQXJbRRBAeyIFvMOuEmuUEyTcIDkBPgIsqZginIDkBAkFVJZwA5wTwA0wJ8CsSZWdnYQlDyVjJyEVy/P/n+6Z3/Oypad7+nW/GtkWQfgHAQhcSyDABgIQuJ4AgrAdENhCAEFYDwggCDsAgX4EeEH6ceNUIwQQpJFB02Y/AgjSjxunGiGAII0Mmjb7EUCQftw41QgBBGlk0LTZjwCC9OPm/9TTk92d2+vPYpT9EOSeiMwvmz6OUY5CkMPF2eSFfLN36hkGgniebp/eNmJ8cP51PI+PQpDdbSlilNNwKzxb/HPrO6+iIEifJXJ6Zuf5yTyuV78ECZsXI/lflHi0PJs+8CgJgiSvge/A2z+e3Lt1vv71plfjOgqb12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yGlHY++Hzy3xTCUYzhcPH75BAxkOImAv4FIXcIZBBAkAx4bPVPAEH8Z8wNMwggSAY8tvongCD+M+aGGQQQJAMeW/0TQBD/GXPDDAIIkgGPrf4JIIj/jLlhBgEEyYDHVv8EEMR/xtwwg8D/AJo3EzIUZzHNAAAAAElFTkSuQmCC)}.calendar-inner[data-v-e895ea78]{box-sizing:border-box}.calendar-week[data-v-e895ea78]{position:relative;display:-ms-flexbox;display:flex;height:20px;box-sizing:border-box;font-size:11px;background:#f7f7f8}.calendar-week[data-v-e895ea78]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background-color:#c4c4c4;transform:translateY(-.5px);transform:scaleY(.5)}.calendar-week-day[data-v-e895ea78]{flex-grow:1;text-align:center;width:14.28571429%;width:14.28571%;line-height:20px;-webkit-flex-shrink:1;-ms-flex:0 1 auto;flex-shrink:1;position:relative;overflow:hidden;text-overflow:ellipsis;padding:0 5px}.calendar-month[data-v-e895ea78]{position:relative;width:100%;height:240px;overflow:hidden}.calendar-month-wrapper[data-v-e895ea78]{position:absolute;top:0;left:0;right:0;bottom:0}.calendar-month-current[data-v-e895ea78],.calendar-month-next[data-v-e895ea78],.calendar-month-pre[data-v-e895ea78]{position:absolute;top:0;left:0;width:100%;height:100%;transition-duration:.4s;transition-timing-function:ease-in-out}.calendar-month-row[data-v-e895ea78]{position:relative;display:-ms-flexbox;display:flex;width:100%;-webkit-flex-shrink:1;-ms-flex:0 1 auto;-ms-flex-negative:1;flex-shrink:1;height:40px}.calendar-month-row[data-v-e895ea78]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background-color:#ccc;transform:translateY(-.5px);transform:scaleY(.5);-webkit-transform:scaleY(.5)}.calendar-day[data-v-e895ea78]{box-sizing:border-box;font-size:15px;color:#3d4145;text-align:center;cursor:pointer;flex-grow:1;line-height:40px;width:14.28571429%;width:14.28571%;color:#000}.calendar-day.grey[data-v-e895ea78]{color:#757575}.calendar-day span[data-v-e895ea78]{display:inline-block;width:30px;height:30px;line-height:30px;border-radius:100%}.calendar-day span.invalid[data-v-e895ea78]{color:#e0e0e0;cursor:not-allowed}.calendar-day span.today[data-v-e895ea78]{background-color:#eee}.calendar-day.selected span[data-v-e895ea78]{color:#fff;background:#0894ec}',""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var a=this[e];a[2]?t.push("@media "+a[2]+"{"+a[1]+"}"):t.push(a[1])}return t.join("")},t.i=function(e,a){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(n[r]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&n[s[0]]||(a&&!s[2]?s[2]=a:a&&(s[2]="("+s[2]+") and ("+a+")"),t.push(s))}},t}},function(t,e){t.exports=function(t,e,a,n,i){var r,s=t=t||{},o=typeof t.default;"object"!==o&&"function"!==o||(r=t,s=t.default);var l="function"==typeof s?s.options:s;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns),n&&(l._scopeId=n);var d;if(i?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=d):a&&(d=a),d){var c=l.functional,h=c?l.render:l.beforeCreate;c?l.render=function(t,e){return d.call(e),h(t,e)}:l.beforeCreate=h?[].concat(h,d):[d]}return{esModule:r,exports:s,options:l}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal",class:{show:t.open},on:{click:t.handelModalClick}},[a("transition",{attrs:{name:"popup-slide-bottom"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],ref:"calendar",staticClass:"calendar"},[a("div",{staticClass:"toolbar"},[a("div",{staticClass:"toolbar-inner"},[a("div",{staticClass:"calendar-month-picker"},[a("a",{staticClass:"calendar-prev",on:{click:function(e){t.handelMonthClick("pre")}}},[a("div",{staticClass:"pre-img"})]),t._v(" "),a("div",{staticClass:"current-month-value"},[t._v(t._s(t.month[t.currentViewMonth.month-1]))]),t._v(" "),a("a",{staticClass:"calendar-next",on:{click:function(e){t.handelMonthClick("next")}}},[a("div",{staticClass:"next-img"})])]),t._v(" "),a("div",{staticClass:"calendar-year-picker"},[a("a",{staticClass:"calendar-prev",on:{click:function(e){t.handelYearClick("pre")}}},[a("div",{staticClass:"pre-img"})]),t._v(" "),a("div",{staticClass:"current-year-value"},[t._v(t._s(t.currentViewMonth.year))]),t._v(" "),a("a",{staticClass:"calendar-next",on:{click:function(e){t.handelYearClick("next")}}},[a("div",{staticClass:"next-img"})])])])]),t._v(" "),a("div",{staticClass:"calendar-inner"},[a("div",{staticClass:"calendar-week"},t._l(t.week,function(e,n){return a("div",{key:n,staticClass:"calendar-week-day"},[t._v(t._s(e))])})),t._v(" "),a("div",{ref:"calendar-touch",staticClass:"calendar-month"},[a("div",{staticClass:"calendar-month-wrapper",style:{transform:"translate3d("+t.translateX_parent+"%, 0, 0)"}},[a("div",{staticClass:"calendar-month-pre",style:{transform:"translate3d("+(t.translateX-100)+"%, 0, 0)"}},t._l(t.dateObj.pre.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+7*n+i<t.dateObj.pre.start||7*n+i>t.dateObj.pre.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,i,t.dateObj.pre.start,t.dateObj.pre.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))})),t._v(" "),a("div",{staticClass:"calendar-month-current",style:{transform:"translate3d("+t.translateX+"%, 0, 0)"}},t._l(t.dateObj.current.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+i<t.dateObj.current.start||7*n+i>t.dateObj.current.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,7*n+i,t.dateObj.current.start,t.dateObj.current.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))})),t._v(" "),a("div",{staticClass:"calendar-month-next",style:{transform:"translate3d("+(t.translateX+100)+"%, 0, 0)"}},t._l(t.dateObj.next.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+i<t.dateObj.next.start||7*n+i>t.dateObj.next.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,7*n+i,t.dateObj.next.start,t.dateObj.next.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))}))])])])])])],1)},staticRenderFns:[]}},function(t,e,a){var n=a(3);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a(8)("3398262e",n,!0,{})},function(t,e,a){function n(t){for(var e=0;e<t.length;e++){var a=t[e],n=c[a.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](a.parts[i]);for(;i<a.parts.length;i++)n.parts.push(r(a.parts[i]));n.parts.length>a.parts.length&&(n.parts.length=a.parts.length)}else{for(var s=[],i=0;i<a.parts.length;i++)s.push(r(a.parts[i]));c[a.id]={id:a.id,refs:1,parts:s}}}}function i(){var t=document.createElement("style");return t.type="text/css",h.appendChild(t),t}function r(t){var e,a,n=document.querySelector("style["+v+'~="'+t.id+'"]');if(n){if(f)return g;n.parentNode.removeChild(n)}if(m){var r=p++;n=u||(u=i()),e=s.bind(null,n,r,!1),a=s.bind(null,n,r,!0)}else n=i(),e=o.bind(null,n),a=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else a()}}function s(t,e,a,n){var i=a?"":n.css;if(t.styleSheet)t.styleSheet.cssText=C(e,i);else{var r=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function o(t,e){var a=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),y.ssrId&&t.setAttribute(v,e.id),i&&(a+="\n/*# sourceURL="+i.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=a(9),c={},h=l&&(document.head||document.getElementsByTagName("head")[0]),u=null,p=0,f=!1,g=function(){},y=null,v="data-vue-ssr-id",m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,a,i){f=a,y=i||{};var r=d(t,e);return n(r),function(e){for(var a=[],i=0;i<r.length;i++){var s=r[i],o=c[s.id];o.refs--,a.push(o)}e?(r=d(t,e),n(r)):r=[];for(var i=0;i<a.length;i++){var o=a[i];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete c[o.id]}}}};var C=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var a=[],n={},i=0;i<e.length;i++){var r=e[i],s=r[0],o=r[1],l=r[2],d=r[3],c={id:t+":"+i,css:o,media:l,sourceMap:d};n[s]?n[s].parts.push(c):a.push(n[s]={id:s,parts:[c]})}return a}}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Calendar",[],e):"object"==typeof exports?exports.Calendar=e():t.Calendar=e()}(this,function(){return function(t){function e(n){if(a[n])return a[n].exports;var i=a[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var a={};return e.m=t,e.c=a,e.i=function(t){return t},e.d=function(t,a,n){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,a){function n(t){a(7)}var i=a(5)(a(1),a(6),n,"data-v-e895ea78",null);t.exports=i.exports},function(t,e,a){"use strict";function n(t,e){var a=new Array,n=new Date;n.setFullYear(t,e-1,1);var i=0==n.getDay()?7:n.getDay();n.setFullYear(t,e,0);for(var r=n.getDate(),s=i-1,o=i+r-2,l=0;l<r;l++)a[i+l-1]=l+1;n.setFullYear(t,e-1,0);for(var d=n.getDate(),c=i-1;c>0;c--)a[c-1]=d-(i-(c+1));for(var h=r+i;h<43;h++)a[h-1]=h-(r+i)+1;for(var u=new Array,p=0;p<6;p++){for(var f=new Array,g=0;g<7;g++)f[g]={value:a[7*p+g],selected:!1};u.push(f)}return{allDay_list:u,start:s,end:o,year:t,month:e}}function i(t,e){var a={"M+":t.getMonth()+1,"d+":t.getDate()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));for(var n in a)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?a[n]:("00"+a[n]).substr((""+a[n]).length)));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"calendar",props:{value:{type:Boolean,default:!1},closeByClickmask:{type:Boolean,default:!0},format:{type:String,default:"yyyy-MM-dd"},defaultDate:{type:Date,default:null},maxDate:{type:Date,default:null},minDate:{type:Date,default:null},month:{type:Array,default:function(){return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]}},week:{type:Array,default:function(){return["周一","周二","周三","周四","周五","周六","周日"]}}},data:function(){return{open:!1,dateObj:{pre:{},current:{},next:{}},translateX:0,translateX_parent:0,translateTime:0,currentViewMonth:{year:2017,month:6,day:1},selectedDate:{year:null,month:null,day:null},touch:{startX:null,startY:null}}},watch:{open:function(t){this.$emit("input",t)},value:function(t){this.open=t},minDate:function(t){this.assignSelectedDate()},maxDate:function(t){this.assignSelectedDate()}},created:function(){this.init()},mounted:function(){this.value&&(this.open=!0),this.$refs["calendar-touch"].addEventListener("touchstart",this.handleTouchStart),this.$refs["calendar-touch"].addEventListener("touchend",this.handleTouchEnd)},beforeDestroy:function(){this.$refs["calendar-touch"].removeEventListener("touchstart",this.handleTouchStart),this.$refs["calendar-touch"].removeEventListener("touchend",this.handleTouchEnd)},methods:{init:function(){if(this.defaultDate)if(this.defaultDate instanceof Date){var t=i(this.defaultDate,"yyyy-MM-dd").split("-");this.selectedDate={year:parseInt(t[0]),month:parseInt(t[1]),day:parseInt(t[2])},this.currentViewMonth={year:parseInt(t[0]),month:parseInt(t[1]),day:parseInt(t[2])}}else console.error("error parameter of defaultDate!");else{var e=i(new Date,"yyyy-MM-dd").split("-");this.currentViewMonth={year:parseInt(e[0]),month:parseInt(e[1]),day:parseInt(e[2])}}(!this.month instanceof Array||!this.week instanceof Array||12!=this.month.length||7!=this.week.length)&&console.error("error parameter of month or week!"),this.createdDate()},handleTouchStart:function(t){this.touch.startX=t.touches[0].clientX,this.touch.startY=t.touches[0].clientY},handleTouchEnd:function(t){var e=t.changedTouches[0].pageX,a=t.changedTouches[0].pageY,n=e-this.touch.startX,i=a-this.touch.startY;Math.abs(n)>Math.abs(i)&&n>0&&Math.abs(n)>50?this.handelMonthClick("pre",!0):Math.abs(n)>Math.abs(i)&&n<0&&Math.abs(n)>50&&this.handelMonthClick("next",!0)},handelModalClick:function(t){this.closeByClickmask&&!this.$refs.calendar.contains(t.target)&&(this.open=!1)},createdDate:function(){var t=this.currentViewMonth.year,e=this.currentViewMonth.month;this.dateObj.pre=n(1==e?t-1:t,1==e?12:e-1),this.dateObj.current=n(t,e),this.dateObj.next=n(12==e?t+1:t,12==e?1:e+1),this.assignSelectedDate()},isTranslateEnd:function(){if(0!=this.translateTime){if(new Date-this.translateTime<450)return!1}return!0},handelMonthClick:function(t,e){var a=this;e&&!this.isTranslateEnd()||(this.translateTime=new Date,"pre"==t&&(this.translateX+=100,1==this.currentViewMonth.month?(this.currentViewMonth.year--,this.currentViewMonth.month=12):this.currentViewMonth.month--,setTimeout(function(){a.translateX_parent-=100,a.createdDate()},450)),"next"==t&&(this.translateX-=100,12==this.currentViewMonth.month?(this.currentViewMonth.year++,this.currentViewMonth.month=1):this.currentViewMonth.month++,setTimeout(function(){a.translateX_parent+=100,a.createdDate()},450)))},handelYearClick:function(t){var e=this;this.translateTime=new Date,"pre"==t&&(this.translateX+=100,this.currentViewMonth.year--,setTimeout(function(){e.translateX_parent-=100,e.createdDate()},430)),"next"==t&&(this.translateX-=100,this.currentViewMonth.year++,setTimeout(function(){e.translateX_parent+=100,e.createdDate()},430))},handelDayClick:function(t,e,a,n){if(this.isTranslateEnd()&&!t.invalid&&(this.translateTime=new Date,this.open=!1,!t.selected)){this.removeSelectedDate(),t.selected=!0,this.selectedDate.day=t.value,e+1<=a?(this.selectedDate.month=1==this.currentViewMonth.month?12:this.currentViewMonth.month-1,this.selectedDate.year=1==this.currentViewMonth.month?this.currentViewMonth.year-1:this.currentViewMonth.year,this.handelMonthClick("pre",!1)):e>n?(this.selectedDate.month=12==this.currentViewMonth.month?1:this.currentViewMonth.month+1,this.selectedDate.year=12==this.currentViewMonth.month?this.currentViewMonth.year+1:this.currentViewMonth.year,this.handelMonthClick("next",!1)):(this.selectedDate.month=this.currentViewMonth.month,this.selectedDate.year=this.currentViewMonth.year);var r=new Date(this.selectedDate.year,this.selectedDate.month-1,this.selectedDate.day);this.$emit("change",r,i(r,this.format))}},removeSelectedDate:function(){for(var t in this.dateObj)for(var e in this.dateObj[t].allDay_list)for(var a in this.dateObj[t].allDay_list[e])this.dateObj[t].allDay_list[e][a].selected&&(this.dateObj[t].allDay_list[e][a].selected=!1)},assignSelectedDate:function(){for(var t in this.dateObj)for(var e in this.dateObj[t].allDay_list)for(var a in this.dateObj[t].allDay_list[e]){var n=this.dateObj[t].year,i=this.dateObj[t].month,r=this.dateObj[t].allDay_list[e][a].value,s=7*e+parseInt(a);s<this.dateObj[t].start?(n=1==i?n-1:n,i=1==i?12:i-1):s>this.dateObj[t].end&&(n=12==i?n+1:n,i=12==i?1:i+1);var o=new Date(n,i-1,r),l=new Date;this.selectedDate.year==n&&this.selectedDate.month==i&&this.selectedDate.day==r&&(this.dateObj[t].allDay_list[e][a].selected=!0),0<=l-o&&l-o<864e5&&(this.dateObj[t].allDay_list[e][a].isToday=!0),this.minDate&&o-new Date(this.minDate.getFullYear(),this.minDate.getMonth(),this.minDate.getUTCDate())<0||this.maxDate&&o-new Date(this.maxDate.getFullYear(),this.maxDate.getMonth(),this.maxDate.getUTCDate()+1)>0?this.dateObj[t].allDay_list[e][a].invalid=!0:this.dateObj[t].allDay_list[e][a].invalid=!1}}}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(0),i=a.n(n),r=function(t){t.component(i.a.name,i.a)};"undefined"!=typeof window&&window.Vue&&r(window.Vue),e.default=r},function(t,e,a){e=t.exports=a(4)(),e.push([t.i,'.modal[data-v-e895ea78]{position:absolute;left:0;top:0;background:rgba(0,0,0,.4);z-index:9999;opacity:0;transition:opacity .3s;-webkit-transition:opacity .3s}.modal.show[data-v-e895ea78]{width:100%;height:100%;opacity:1}.calendar[data-v-e895ea78]{position:fixed;bottom:0;left:0;right:0;height:300px;background-color:#fff;z-index:10000;transform:translateY(0);-webkit-transform:translateY(0);transition-duration:.2s;-webkit-transition-duration:.2s;transition-timing-function:linear;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none}.popup-slide-bottom-enter[data-v-e895ea78],.popup-slide-bottom-leave-active[data-v-e895ea78]{transform:translateY(300px)}.fade-enter-active[data-v-e895ea78]{transition:opacity .5s}.fade-enter[data-v-e895ea78],.fade-leave[data-v-e895ea78]{opacity:0}.toolbar[data-v-e895ea78]{position:relative}.toolbar-inner[data-v-e895ea78]{display:-ms-flexbox;display:flex;height:40px;line-height:40px;text-align:center}.calendar-month-picker[data-v-e895ea78],.calendar-year-picker[data-v-e895ea78]{display:-ms-flexbox;display:flex;min-width:120px}.current-month-value[data-v-e895ea78],.current-year-value[data-v-e895ea78]{width:70px;-webkit-flex-shrink:1;-ms-flex:0 1 auto;flex-shrink:1;position:relative;overflow:hidden;text-overflow:ellipsis}.calendar-next[data-v-e895ea78],.calendar-prev[data-v-e895ea78]{padding:10px}.next-img[data-v-e895ea78],.pre-img[data-v-e895ea78]{background-size:100% 100%;width:20px;height:20px}.pre-img[data-v-e895ea78]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAKFUlEQVR4Xu2bQXJbRRBAeyIFvMOuEmuUEyTcIDkBPgIsqZginIDkBAkFVJZwA5wTwA0wJ8CsSZWdnYQlDyVjJyEVy/P/n+6Z3/Oypad7+nW/GtkWQfgHAQhcSyDABgIQuJ4AgrAdENhCAEFYDwggCDsAgX4EeEH6ceNUIwQQpJFB02Y/AgjSjxunGiGAII0Mmjb7EUCQftw41QgBBGlk0LTZjwCC9OPm/9TTk92d2+vPYpT9EOSeiMwvmz6OUY5CkMPF2eSFfLN36hkGgniebp/eNmJ8cP51PI+PQpDdbSlilNNwKzxb/HPrO6+iIEifJXJ6Zuf5yTyuV78ECZsXI/lflHi0PJs+8CgJgiSvge/A2z+e3Lt1v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/3Z59stpNKeyGlHY++Hzy3xTCUYzhcPH75BAxkOImAv4FIXcIZBBAkAx4bPVPAEH8Z8wNMwggSAY8tvongCD+M+aGGQQQJAMeW/0TQBD/GXPDDAIIkgGPrf4JIIj/jLlhBgEEyYDHVv8EEMR/xtwwg8D/AJo3EzIUZzHNAAAAAElFTkSuQmCC)}.calendar-inner[data-v-e895ea78]{box-sizing:border-box}.calendar-week[data-v-e895ea78]{position:relative;display:-ms-flexbox;display:flex;height:20px;box-sizing:border-box;font-size:11px;background:#f7f7f8}.calendar-week[data-v-e895ea78]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background-color:#c4c4c4;transform:translateY(-.5px);transform:scaleY(.5)}.calendar-week-day[data-v-e895ea78]{flex-grow:1;text-align:center;width:14.28571429%;width:14.28571%;line-height:20px;-webkit-flex-shrink:1;-ms-flex:0 1 auto;flex-shrink:1;position:relative;overflow:hidden;text-overflow:ellipsis;padding:0 5px}.calendar-month[data-v-e895ea78]{position:relative;width:100%;height:240px;overflow:hidden}.calendar-month-wrapper[data-v-e895ea78]{position:absolute;top:0;left:0;right:0;bottom:0}.calendar-month-current[data-v-e895ea78],.calendar-month-next[data-v-e895ea78],.calendar-month-pre[data-v-e895ea78]{position:absolute;top:0;left:0;width:100%;height:100%;transition-duration:.4s;transition-timing-function:ease-in-out}.calendar-month-row[data-v-e895ea78]{position:relative;display:-ms-flexbox;display:flex;width:100%;-webkit-flex-shrink:1;-ms-flex:0 1 auto;-ms-flex-negative:1;flex-shrink:1;height:40px}.calendar-month-row[data-v-e895ea78]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background-color:#ccc;transform:translateY(-.5px);transform:scaleY(.5);-webkit-transform:scaleY(.5)}.calendar-day[data-v-e895ea78]{box-sizing:border-box;font-size:15px;color:#3d4145;text-align:center;cursor:pointer;flex-grow:1;line-height:40px;width:14.28571429%;width:14.28571%;color:#000}.calendar-day.grey[data-v-e895ea78]{color:#757575}.calendar-day span[data-v-e895ea78]{display:inline-block;width:30px;height:30px;line-height:30px;border-radius:100%}.calendar-day span.invalid[data-v-e895ea78]{color:#e0e0e0;cursor:not-allowed}.calendar-day span.today[data-v-e895ea78]{background-color:#eee}.calendar-day.selected span[data-v-e895ea78]{color:#fff;background:#0894ec}',""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var a=this[e];a[2]?t.push("@media "+a[2]+"{"+a[1]+"}"):t.push(a[1])}return t.join("")},t.i=function(e,a){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(n[r]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&n[s[0]]||(a&&!s[2]?s[2]=a:a&&(s[2]="("+s[2]+") and ("+a+")"),t.push(s))}},t}},function(t,e){t.exports=function(t,e,a,n,i){var r,s=t=t||{},o=typeof t.default;"object"!==o&&"function"!==o||(r=t,s=t.default);var l="function"==typeof s?s.options:s;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns),n&&(l._scopeId=n);var d;if(i?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=d):a&&(d=a),d){var c=l.functional,h=c?l.render:l.beforeCreate;c?l.render=function(t,e){return d.call(e),h(t,e)}:l.beforeCreate=h?[].concat(h,d):[d]}return{esModule:r,exports:s,options:l}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modal",class:{show:t.open},on:{click:t.handelModalClick}},[a("transition",{attrs:{name:"popup-slide-bottom"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],ref:"calendar",staticClass:"calendar"},[a("div",{staticClass:"toolbar"},[a("div",{staticClass:"toolbar-inner"},[a("div",{staticClass:"calendar-month-picker"},[a("a",{staticClass:"calendar-prev",on:{click:function(e){t.handelMonthClick("pre")}}},[a("div",{staticClass:"pre-img"})]),t._v(" "),a("div",{staticClass:"current-month-value"},[t._v(t._s(t.month[t.currentViewMonth.month-1]))]),t._v(" "),a("a",{staticClass:"calendar-next",on:{click:function(e){t.handelMonthClick("next")}}},[a("div",{staticClass:"next-img"})])]),t._v(" "),a("div",{staticClass:"calendar-year-picker"},[a("a",{staticClass:"calendar-prev",on:{click:function(e){t.handelYearClick("pre")}}},[a("div",{staticClass:"pre-img"})]),t._v(" "),a("div",{staticClass:"current-year-value"},[t._v(t._s(t.currentViewMonth.year))]),t._v(" "),a("a",{staticClass:"calendar-next",on:{click:function(e){t.handelYearClick("next")}}},[a("div",{staticClass:"next-img"})])])])]),t._v(" "),a("div",{staticClass:"calendar-inner"},[a("div",{staticClass:"calendar-week"},t._l(t.week,function(e,n){return a("div",{key:n,staticClass:"calendar-week-day"},[t._v(t._s(e))])})),t._v(" "),a("div",{ref:"calendar-touch",staticClass:"calendar-month"},[a("div",{staticClass:"calendar-month-wrapper",style:{transform:"translate3d("+t.translateX_parent+"%, 0, 0)"}},[a("div",{staticClass:"calendar-month-pre",style:{transform:"translate3d("+(t.translateX-100)+"%, 0, 0)"}},t._l(t.dateObj.pre.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+7*n+i<t.dateObj.pre.start||7*n+i>t.dateObj.pre.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,i,t.dateObj.pre.start,t.dateObj.pre.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))})),t._v(" "),a("div",{staticClass:"calendar-month-current",style:{transform:"translate3d("+t.translateX+"%, 0, 0)"}},t._l(t.dateObj.current.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+i<t.dateObj.current.start||7*n+i>t.dateObj.current.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,7*n+i,t.dateObj.current.start,t.dateObj.current.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))})),t._v(" "),a("div",{staticClass:"calendar-month-next",style:{transform:"translate3d("+(t.translateX+100)+"%, 0, 0)"}},t._l(t.dateObj.next.allDay_list,function(e,n){return a("div",{key:n,staticClass:"calendar-month-row"},t._l(e,function(e,i){return a("div",{key:i,staticClass:"calendar-day",class:{grey:7*n+i<t.dateObj.next.start||7*n+i>t.dateObj.next.end,selected:e.selected},on:{click:function(a){t.handelDayClick(e,7*n+i,t.dateObj.next.start,t.dateObj.next.end)}}},[a("span",{class:{today:e.isToday,invalid:e.invalid}},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t"+t._s(e.value)+"\n\t\t\t\t\t\t\t\t\t\t")])])}))}))])])])])])],1)},staticRenderFns:[]}},function(t,e,a){var n=a(3);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a(8)("3398262e",n,!0,{})},function(t,e,a){function n(t){for(var e=0;e<t.length;e++){var a=t[e],n=c[a.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](a.parts[i]);for(;i<a.parts.length;i++)n.parts.push(r(a.parts[i]));n.parts.length>a.parts.length&&(n.parts.length=a.parts.length)}else{for(var s=[],i=0;i<a.parts.length;i++)s.push(r(a.parts[i]));c[a.id]={id:a.id,refs:1,parts:s}}}}function i(){var t=document.createElement("style");return t.type="text/css",h.appendChild(t),t}function r(t){var e,a,n=document.querySelector("style["+v+'~="'+t.id+'"]');if(n){if(f)return g;n.parentNode.removeChild(n)}if(m){var r=p++;n=u||(u=i()),e=s.bind(null,n,r,!1),a=s.bind(null,n,r,!0)}else n=i(),e=o.bind(null,n),a=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else a()}}function s(t,e,a,n){var i=a?"":n.css;if(t.styleSheet)t.styleSheet.cssText=C(e,i);else{var r=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function o(t,e){var a=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),y.ssrId&&t.setAttribute(v,e.id),i&&(a+="\n/*# sourceURL="+i.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=a(9),c={},h=l&&(document.head||document.getElementsByTagName("head")[0]),u=null,p=0,f=!1,g=function(){},y=null,v="data-vue-ssr-id",m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,a,i){f=a,y=i||{};var r=d(t,e);return n(r),function(e){for(var a=[],i=0;i<r.length;i++){var s=r[i],o=c[s.id];o.refs--,a.push(o)}e?(r=d(t,e),n(r)):r=[];for(var i=0;i<a.length;i++){var o=a[i];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete c[o.id]}}}};var C=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var a=[],n={},i=0;i<e.length;i++){var r=e[i],s=r[0],o=r[1],l=r[2],d=r[3],c={id:t+":"+i,css:o,media:l,sourceMap:d};n[s]?n[s].parts.push(c):a.push(n[s]={id:s,parts:[c]})}return a}}])}); | ||
//# sourceMappingURL=vue-mobile-calendar.js.map |
{ | ||
"name": "vue-mobile-calendar", | ||
"description": "a vue component of calendar for mobile", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"author": "lixin", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/lx544690189", |
@@ -19,2 +19,6 @@ # vue-mobile-calendar | ||
## update log | ||
##### v2.2.0(2018-7-23) | ||
bug fixed:minDate maxDate 等参数动态改变视图不能实时更新问题 | ||
## update log | ||
##### v2.1.0(2018-6-5) | ||
@@ -21,0 +25,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
681368
86