大加士兰事件未在自定义视图中加载

发布于 2025-01-26 06:57:26 字数 324 浏览 3 评论 0原文

我混合了几个示例(CustomView,Moment JS本地化),以创建仅显示每个星期三和周四的视图。但是,事件未显示。

事件从父级转移到子女组件(包括日历组件)。但是,简单的硬编码事件也无效。

我觉得这是自定义视图中的问题,但是我找不到确切的问题。

参见 codesandbox

I've mixed a couple of examples (CustomView, Moment JS localization) in order to create a view that only shows each Wednesday and Thursday. However, the events are not displayed.

The events are transferred from the parent to the child component (including the Calendar component). However, simply hardcoding events also does not work.

I feel like it's a problem within the custom view, but I cannot find what exactly.

See codesandbox.

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

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

发布评论

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

评论(1

栀子花开つ 2025-02-02 06:57:26

我注意到的第一件事是查看您的代码和框,是您忘记了包括样式表。这在入门文档的部分。您的minmax prop被传递时刻对象,而不是真JS date对象。您包含的硬编码事件日期不在显示的日期范围内。

The first thing I notice, looking at your codesandbox, is that you forgot to include the stylesheet. This is mentioned in the Getting Started section of the documentation. Your min and max props are being passed moment objects, rather than true js Date objects. And the hardcoded event date you included wasn't in the displayed date range.

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