dateRender={(current) => {// 你不用自己for循环, const ui = [1, 2, 3]; const style = {}; ui.map((i, index) => { if (current.date() === ui[index] && current.month() === 8) { style.border = "1px solid #1890ff"; style.borderRadius = "50%"; } }); return ( <div className="ant-calendar-date" style={style}> {current.date()} </div> ); }} 效果:
dateRender={(current) => {
效果:
