0.8.6 • Published 6 years ago

vue-birthday-input v0.8.6

Weekly downloads
139
License
MIT
Repository
github
Last release
6 years ago

vue-birthday-input

vue 生日输入组件

npm install vue-birthday-input --save

npm npm npm Build Status Codecov npm

加入模块

import Vue from 'vue'
import birthdayInput from 'vue-birthday-input'

export default {
  name: 'App',

  components: {
    birthdayInput
  }
}

快速开始

<template>
  <birthday-input v-model="birthday"></birthday-input>
</template>

<script>
import birthdayInput from 'vue-birthday-input'

export default {
  name: 'App',

  components: {
    birthdayInput
  },

  data: () => ({
    birthday: ''
  }),
}
</script>

Props

参数说明必须类型可选值默认值
placeholder占位符String出生日期
formatView显示格式Stringyyyy/mm/dd / yyyy-mm-dd / mm/dd/yyyyyyyy年mm月dd日
format输出格式String符合moment.format即可YYYYMMDD

License

Vue-birthday-input is open-sourced software licensed under the MIT license

0.8.6

6 years ago

0.8.5

6 years ago

0.7.9

6 years ago

0.7.7

6 years ago

0.7.5

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.5.0

6 years ago

0.2.0

6 years ago

0.0.1

6 years ago