From 9ddad8662a68e40d28a8f3ca5ad45ea7ec5d2ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kiner-tang=28=E6=96=87=E8=BE=89=29?= <1127031143@qq.com> Date: Mon, 17 Jul 2023 12:18:41 +0800 Subject: [PATCH] feat: update demo about cell-render in date-picker (#43597) --- components/date-picker/demo/cell-render.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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';