element-plus, el-calendar calendar components use #date-cell slot is invalid, does not take effect

Recently, the el-calendar calendar component was used when upgrading the project, and the content needs to be customized using slots.
When using elementplus, it is found that #date-cell does not take effect, the slot is not detected, and the online editor on the official website is the same.
insert image description here

At this time, you only need to change #date-cell to #dateCell, and the slot can be used after modification.
insert image description here

The element-plus version I am using is 2.2.15. I don’t know if other versions have this problem. Look forward to the official fix!

Guess you like

Origin blog.csdn.net/m0_46496355/article/details/126763691