Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump rc-picker #44845

Merged
merged 3 commits into from Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 12 additions & 10 deletions components/date-picker/demo/cell-render.tsx
Expand Up @@ -8,13 +8,14 @@ const App: React.FC = () => (
<DatePicker
cellRender={(current, info) => {
if (info.type !== 'date') return info.originNode;
const style: React.CSSProperties = {};
if (current.date() === 1) {
style.border = '1px solid #1677ff';
style.borderRadius = '50%';
if (typeof current === 'number') {
return <div className="ant-picker-cell-inner">{current}</div>;
}
return (
<div className="ant-picker-cell-inner" style={style}>
<div
className="ant-picker-cell-inner"
style={current.date() === 1 ? { border: '1px solid #1677ff', borderRadius: '50%' } : {}}
>
{current.date()}
</div>
);
Expand All @@ -23,13 +24,14 @@ const App: React.FC = () => (
<RangePicker
cellRender={(current, info) => {
if (info.type !== 'date') return info.originNode;
const style: React.CSSProperties = {};
if (current.date() === 1) {
style.border = '1px solid #1677ff';
style.borderRadius = '50%';
if (typeof current === 'number') {
return <div className="ant-picker-cell-inner">{current}</div>;
}
return (
<div className="ant-picker-cell-inner" style={style}>
<div
li-jia-nan marked this conversation as resolved.
Show resolved Hide resolved
className="ant-picker-cell-inner"
style={current.date() === 1 ? { border: '1px solid #1677ff', borderRadius: '50%' } : {}}
>
{current.date()}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -139,7 +139,7 @@
"rc-motion": "^2.9.0",
"rc-notification": "~5.1.1",
"rc-pagination": "~3.6.1",
"rc-picker": "~3.13.2",
"rc-picker": "~3.14.1",
"rc-progress": "~3.5.1",
"rc-rate": "~2.12.0",
"rc-resize-observer": "^1.3.1",
Expand Down