dropdownClassName datepicker 用于禁用动画或过渡

发布于 2025-01-16 03:26:36 字数 521 浏览 2 评论 0原文

有没有办法在 antd 中禁用 RangePicker 或 DatePicker 的对话框动画?

https://codesandbox.io /s/antd-datepicker-forked-129d43?file=/src/App.js:581-615

<RangePicker open={open} />

我希望打开对话框 我立即

尝试添加

<RangePicker open={open} dropdownClassName="something" />

并应用 transition: none;animation: 0; 它不起作用

is there a way to disable dialog animation of RangePicker or DatePicker in antd?

https://codesandbox.io/s/antd-datepicker-forked-129d43?file=/src/App.js:581-615

<RangePicker open={open} />

I would like the dialog to open instantly

I tried to add

<RangePicker open={open} dropdownClassName="something" />

and apply transition: none; and animation: 0; it doesn't work

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心房的律动 2025-01-23 03:26:36

只需应用此

.ant-calendar-picker-container {
       animation:none !important;
} 

https://codesandbox.io/s/antd-datepicker-forked-n6vtsv

just apply this

.ant-calendar-picker-container {
       animation:none !important;
} 

https://codesandbox.io/s/antd-datepicker-forked-n6vtsv

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文