We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
日历对于周六周日加入自定义样式,需要周标题栏和日期都可以自定义,并且自定义样式只能在当前面板月份的周六周日有效。
下面有个通过样式表实现的方案: (https://codesandbox.io/s/antd-reproduction-template-forked-etndm?file=/index.js)
原dateRender函数加入currentMonth(当前面板主月份)参数: dateRender = (currentDate: moment, today: moment, currentMonth) =>{}
dateRender
currentMonth
dateRender = (currentDate: moment, today: moment, currentMonth) =>{}
期望有日期标题的自定义函数如: dateTitleRender = (current) => {}
dateTitleRender = (current) => {}
The text was updated successfully, but these errors were encountered:
https://codesandbox.io/s/customized-date-rendering-antd490-forked-9emk7?file=/index.js
好像确实没办法改周标题栏,@zombieJ
Sorry, something went wrong.
其实,dateRender函数最好能暴露出当前面板的月份参数,这样就可以做到只是当前面板月的周六周日自定义样式。 如下:currentMonth:为当前面板的主月份
dateRender = (currentDate: moment, today: moment, currentMonth) => {} 我使用样式表实现的效果
dateRender = (currentDate: moment, today: moment, currentMonth) => {}
已经有 today 了,你可以算出 currentMonth 的。
No branches or pull requests
What problem does this feature solve?
日历对于周六周日加入自定义样式,需要周标题栏和日期都可以自定义,并且自定义样式只能在当前面板月份的周六周日有效。
下面有个通过样式表实现的方案:
(https://codesandbox.io/s/antd-reproduction-template-forked-etndm?file=/index.js)
What does the proposed API look like?
原
dateRender
函数加入currentMonth
(当前面板主月份)参数:dateRender = (currentDate: moment, today: moment, currentMonth) =>{}
期望有日期标题的自定义函数如:
dateTitleRender = (current) => {}
The text was updated successfully, but these errors were encountered: