项目作者: k186

项目描述 :
vue v2.0 , a PC datePicker
高级语言: JavaScript
项目地址: git://github.com/k186/vue-component-PC-datePicker.git
创建时间: 2017-03-07T05:56:44Z
项目社区:https://github.com/k186/vue-component-PC-datePicker

开源协议:Other

下载


don’t use this in your production env

vue deatePicker for pc component

result

result

open

Build Setup

  1. # install dependencies
  2. npm install
  3. # serve with hot reload at localhost:8080
  4. npm run dev
  5. # build for production with minification
  6. npm run build

props config

  1. valueStr: {
  2. type: String,
  3. default: ''
  4. },
  5. visible: {
  6. type: Boolean,
  7. default: false,
  8. required: true
  9. },
  10. inputId: {
  11. type: String,
  12. required: true
  13. },
  14. options: {
  15. type: Object,
  16. }

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