背景:业务需要对日历组件进行自定义
调研:参考element-ui源码,ant design展现形式
目标:用vue2实现(当前业务需要)
扩展:实现几种常见的日历展现形式
愿景:源码放到github开源,感兴趣的朋友可以修改优化
https://github.com/scrollHeart/calendar
一、基础使用
1.选择指定年月
calendar-1.png
2.邻近月份切换
calendar-2.png
3.12月份平铺
calendar-3.png
二、插槽使用
calender-5.png
网友评论