antd 的DatePicker,设置每月几日可选

294 阅读1分钟

disabledDate: (current) => { // 设置只能选择每月1号或15号 const allowDay = [1, 15] return !allowDay.includes(current.date()) }

image.png

image.png