📜  react-big-calendar 样式 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:04.030000             🧑  作者: Mango

代码示例1
eventStyleGetter: function(event, start, end, isSelected) {
    console.log(event);
    var backgroundColor = '#' + event.hexColor;
    var style = {
        backgroundColor: backgroundColor,
        borderRadius: '0px',
        opacity: 0.8,
        color: 'black',
        border: '0px',
        display: 'block'
    };
    return {
        style: style
    };
},

render: function () {

    return (
        
            
); }