Package Exports
- v2-datepicker
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (v2-datepicker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
v2-datepicker
A simple datepicker component based Vue 2.x.
Installation
Install the pkg with npm:
npm i --save v2-datepicker
or yarn
yarn add v2-datepicker
## Usage
import Vue from 'vue'; import V2Datepicker from 'v2-datepicker';
Vue.use(V2Datepicker)
// basic
//setting
More demo to visit [here](https://dwqs.github.io/v2-datepicker).
## Available Props
| Attribute | Type | Accepted Values | Default | Description |
| :--: | :--: | :--: | :--: | :--: |
| value | Date | anything accepted by new Date | - | default date of the date-picker |
| lang | String | cn(chinese)/en(english) | cn | set locals of the date-picker |
| format | String | year `yyyy`, month `MM`, day `dd` | yyyy/MM/dd | format of the displayed value in the span box |
| placeholder | String | - | 选择日期/Choosing date... | placeholder text |
## Event
| Event Name | Description | Parameters |
| :--: | :--: | :--: |
| change | triggers when the selected value changes | component's binding value |
## LICENSE
MIT