element-plus,el-calendar日历组件使用#date-cell插槽无效、不生效

最近在升级项目的时候用到了el-calendar日历组件,需要使用插槽自定义内容。
使用elementplus的时候发现#date-cell不生效,插槽没有被检测到,打开官网的在线编辑器也是一样。
在这里插入图片描述

这时候只需要将#date-cell改成#dateCell就可以了,修改之后插槽就能用了。
在这里插入图片描述

我使用的element-plus版本是2.2.15,其他版本不知道有没有这个问题,期待官方修复吧!

猜你喜欢

转载自blog.csdn.net/m0_46496355/article/details/126763691