1

我正在使用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
}               
]
4

1 回答 1

0

v1.6.4 中引入了一个 AgendaView选项。从文档

slotEventOverlap 1.6.4

确定议程视图中的定时事件是否应在视觉上重叠。

Boolean, default: true

当设置为 true(默认值)时,事件将相互重叠。每个事件最多有一半会被遮挡。

当设置为 false 时,绝对不会有重叠。

于 2013-09-19T19:20:29.937 回答