ElinaLuo / vue-calendar-custom

vue calendar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-calendar-custom

参考了vue-calendar,在此基础上做了小改动

#vue-calendar

  • 日历组件
  • 可自定义日期下面展示文案,例如价钱
npm install

npm start

API 参数

参数 格式 默认值 是否必写 描述
value array [] 日历选中的值,例如[2017,8,3]
begin array [] 日历限制的开始日期,格式同value
end array [] 日历限制的结束日期,格式同value
range Bool false 是否展示日历区间
separator string - 日期分隔符,默认为-,为事件select的返回值所用
lunar Bool false 是否显示农历
weeks array [] 自定义周展示文案,从周日到周六
months array [] 自定义月份展示文案,从一月到十二月
events Object {} 自定义某天的展示文案,例如{'2017-08-14':'$408','2017-08-15':'$460','2017-08-16':'$500'}

事件

事件 描述
select 选中某天,返回YYYY-mm-dd,分隔符默认为-,可以修改属性separator,返回你想要的格式
changeMonth 切换月份,返回object,{year: xxx, month: xx},year为4位,month从0~11

About

vue calendar

License:Other


Languages

Language:Vue 50.1%Language:JavaScript 48.8%Language:HTML 1.0%Language:CSS 0.1%