https://github.com/xanke/vue-birthday-input
Vue 生日输入组件,适用于PC端快速输入
https://github.com/xanke/vue-birthday-input
birthday date form input javascript vuejs2
Last synced: about 2 months ago
JSON representation
Vue 生日输入组件,适用于PC端快速输入
- Host: GitHub
- URL: https://github.com/xanke/vue-birthday-input
- Owner: xanke
- License: mit
- Created: 2017-11-24T23:52:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-10T23:59:50.000Z (about 2 years ago)
- Last Synced: 2025-07-21T01:28:15.053Z (3 months ago)
- Topics: birthday, date, form, input, javascript, vuejs2
- Language: Vue
- Homepage:
- Size: 1.5 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-birthday-input
vue 生日输入组件npm install vue-birthday-input --save
[](https://www.npmjs.com/package/vue-birthday-input)
[](https://www.npmjs.com/package/vue-birthday-input)
[](https://www.npmjs.com/package/vue-birthday-input)
[](https://travis-ci.org/xanke/vue-birthday-input)
[](https://codecov.io/gh/xanke/vue-birthday-input)
[](http://opensource.org/licenses/MIT)#### 加入模块
```js
import Vue from 'vue'
import birthdayInput from 'vue-birthday-input'export default {
name: 'App',components: {
birthdayInput
}
}
```### 快速开始
```vue
import birthdayInput from 'vue-birthday-input'
export default {
name: 'App',components: {
birthdayInput
},data: () => ({
birthday: ''
}),
}```
## Props
|参数|说明|必须|类型|可选值|默认值|
|-----|-----------|--------|----|----|-------|
|placeholder|占位符|否|String|—|出生日期|
|formatView|显示格式|否|String|yyyy/mm/dd / yyyy-mm-dd / mm/dd/yyyy|yyyy年mm月dd日|
|format|输出格式|否|String|符合moment.format即可|YYYYMMDD|## License
Vue-birthday-input is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)