最近在升级项目的时候用到了el-calendar
日历组件,需要使用插槽自定义内容。
使用elementplus的时候发现#date-cell
不生效,插槽没有被检测到,打开官网的在线编辑器也是一样。
这时候只需要将#date-cell改成#dateCell就可以了,修改之后插槽就能用了。
转载:https://blog.csdn.net/m0_46496355/article/details/126763691
element-plus,el-calendar日历组件使用#date-cell插槽无效、不生效
最新推荐文章于 2024-04-03 17:36:49 发布