2.2.1 • Published 5 years ago

vue-super-calendar v2.2.1

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

vue-super-calendar

点击查看DEMO(建议使用开发者手机模式)

或者扫描二维码

image

Install

npm install vue-super-calendar --save

How To Use

//main.js
import Vue from 'vue'
import vueCalendar from 'vue-super-calendar'

Vue.use(vueCalendar)

Some sample pictures

单选-翻页模式

image

多选-翻页模式

image

单选-滑动模式

image

多选-滑动模式

image

options

props

NameTypeDefaultDescription
typeStringsinglesingle: 单选 multi: 复选
startDayString""设置选定日期(仅针对type = single有效) e.g."2019/3/3"
multiTxtArray"入住", "离店"复选文本(建议不超过两个字)
multiBeforeBooleanfalse多选(是否允许选择当前日期之前的日期, 同时也会禁用往当前日期前翻页&滑动的功能)
singleBeforeBooleanfalse单选(仅针对mode = scroll有效)(是否允许选择当前日期之前的日期, 同时也会禁用往当前日期前翻页&滑动的功能)
holidayBooleanfalse开启假日高亮颜色模式
festivalArray[]特殊节日数组 e.g. "2019/3/3"
yearBeginNumber1加载当前年份前N年(仅针对mode = scroll有效)
yearEndNumber1加载当前年份后N年(仅针对mode = scroll有效)

functions

NameTypeDefaultDescription
showFunctionthis.$refs.xxx.show()打开日历
hideFunctionthis.$refs.xxx.hide()关闭日历
on-single-clickFunctionval返回单选选中日期
on-multi-clickFunctionstartVal, endVal返回多选日期
on-warningFunction禁止选择当前日期时翻到首页

babel problem

npm install @babel/preset-env --save-dev

presets: ['@babel/preset-env']
2.2.1

5 years ago

2.2.0

5 years ago

2.1.9

5 years ago

2.1.8

5 years ago

2.1.7

5 years ago

2.1.6

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago