https://github.com/k186/vue-component-pc-datepicker
vue v2.0 , a PC datePicker
https://github.com/k186/vue-component-pc-datepicker
datepicker datepicker-component props vue
Last synced: 2 months ago
JSON representation
vue v2.0 , a PC datePicker
- Host: GitHub
- URL: https://github.com/k186/vue-component-pc-datepicker
- Owner: k186
- License: mit
- Created: 2017-03-07T05:56:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T08:20:35.000Z (over 8 years ago)
- Last Synced: 2025-01-16T22:25:59.053Z (over 1 year ago)
- Topics: datepicker, datepicker-component, props, vue
- Language: JavaScript
- Homepage: http://k186studio.com/demos/vue/pcPicker/
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# don't use this in your production env
### vue deatePicker for pc component
###[result](http://k186studio.com/demos/vue/pcPicker/)
###result

###Build Setup
```$xslt
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
```
### props config
```$xslt
valueStr: {
type: String,
default: ''
},
visible: {
type: Boolean,
default: false,
required: true
},
inputId: {
type: String,
required: true
},
options: {
type: Object,
}
```
>`valueStr`: the init date value like 2017-3-7 14:50
>`inputId`: the input tag or else id, to set the picker to the right place it will auto calculate position
>`visible`: without use vuex ,so you need control picker visible by yourself
>`selectDay`:callback function