我正在使用FullCalendar
插件来显示很多事件。似乎有时这些事件会像下图一样相互叠加......有人知道如何预防它吗?
http://imageshack.us/photo/f/707/bugqp.png/
提要:
events: [
{
title: 'One event',
start: new Date(y, m, d, 0, 30),
end: new Date(y, m, d, 2, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 0, 30),
end: new Date(y, m, d, 2, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 30),
end: new Date(y, m, d, 4, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 30),
end: new Date(y, m, d, 4, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 30),
end: new Date(y, m, d, 4, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 1, 00),
end: new Date(y, m, d, 3, 00),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 1, 30),
end: new Date(y, m, d, 3, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 50),
end: new Date(y, m, d, 4, 50),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 4, 30),
end: new Date(y, m, d, 6, 30),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 00),
end: new Date(y, m, d, 4, 00),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 50),
end: new Date(y, m, d, 4, 50),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 2, 50),
end: new Date(y, m, d, 4, 50),
allDay: false
},
{
title: 'One event',
start: new Date(y, m, d, 4, 00),
end: new Date(y, m, d, 6, 00),
allDay: false
}
]
v1.6.4 中引入了一个 AgendaView 选项。从文档中:
插槽事件重叠 1.6.4
确定议程视图中的定时事件是否应在视觉上重叠。
Boolean, default: true
设置为 true(默认值)时,事件将相互重叠。每个事件最多有一半会被遮盖。
设置为 false 时,绝对不会有重叠。