FullCalendar插件月视图正常显示周视图不正常显示问题解决方法

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

 renderCalendarView : function(){
	    	var height =  $(window).height() -54-10;
	    	$("#pm-task-calendar-view").fullCalendar("destroy");
	    	$("#pm-task-calendar-view").fullCalendar({
	    		header: {
					left: 'prev,next today',
					center: 'title',
					right: 'month,agendaWeek'
				},
				height: height,
				lang: "zh-cn",
				buttonIcons: true,
				weekNumbers: false,
				allDaySlot: false,
				allDayDefault:false, //默认为true改成false
				editable: true,
				eventLimit: 6,
				nextDayThreshold: "09:00:00",
				/**
				eventLimit: {
			        'agenda': 5, // adjust to 6 only for agendaWeek/agendaDay
			        'default': true // give the default value to other views
			    },
			    **/
				eventClick: function(event){
					
				},
				dayClick : function(date,jsEvent,view) {
		           
				},
				eventDrop :function( event, delta, revertFunc, jsEvent, ui, view ){
					
				},
				eventResize: function( event, delta, revertFunc, jsEvent, ui, view )  {
					
				},
				events: function(start, end, timezone, callback) {
					
				}
	    	});
	    },

只需要将allDayDefault:true改成false即可。

转载于:https://my.oschina.net/u/2242194/blog/968523

你可能感兴趣的:(FullCalendar插件月视图正常显示周视图不正常显示问题解决方法)