vue-datepicker
datepicker component for Vue.js, already support Vue.js 2.x, the Vue.js 1.x version is on branch
vue-1.x
(not maintain).
Live Demo is here
Installation
npm install vue-date --save
Usage
.vue
file:
use with single
use in browser:
//index.html
Props
language
String
Type: en
Default: en(English)
, zh-cn(Chinese)
, uk(Ukrainsk)
, es(Spanish)
Optional: The language type. Support en
(English), zh-cn
(Chinese), uk
(Ukrainsk) and es
(Spanish) now.
min
String
Type: 1970-01-01
Default: The minimum date.
//pass string//or pass variable
max
String
Type: 3016-01-01
Default: The maximum date. Usage is same of min
.
range
Boolean
Type: false
Default: Use range mode or not. If pass true
, the binding value should be an Array containg the range start and range end. eg. ['1970-01-01', '3016-01-01']
Licence
MIT