diff --git a/components/date-picker/demo/cell-render.tsx b/components/date-picker/demo/cell-render.tsx index 968b0c9082..7142a89e0f 100644 --- a/components/date-picker/demo/cell-render.tsx +++ b/components/date-picker/demo/cell-render.tsx @@ -6,7 +6,8 @@ const { RangePicker } = DatePicker; const App: React.FC = () => ( { + cellRender={(current, info) => { + if (info.type !== 'date') return info.originNode; const style: React.CSSProperties = {}; if (current.date() === 1) { style.border = '1px solid #1677ff'; @@ -20,7 +21,8 @@ const App: React.FC = () => ( }} /> { + cellRender={(current, info) => { + if (info.type !== 'date') return info.originNode; const style: React.CSSProperties = {}; if (current.date() === 1) { style.border = '1px solid #1677ff';