eventDidMount={function (info) {
if (info.event._def.groupId === "2") {
info.el.getElementsByClassName('fc-list-event-dot')[0].style.background = "green"
info.el.getElementsByClassName('fc-list-event-graphic')[0].style.background = "green"
info.el.getElementsByClassName('fc-list-event-title')[0].style.color = "yellow"
info.el.style.backgroundColor = 'red'
}
}}
我在 fullCalendar 中使用列表视图。
我无法覆盖 fc-list-event-dot
的样式,但其他元素可以正常工作。
我该怎么做?