1.1.0 • Published 2 years ago

month-days-element v1.1.0

Weekly downloads
5
License
ISC
Repository
-
Last release
2 years ago

month-days-element

A vue component that selects the month and day based on element

Install

npm install month-days-element

Usage

<template>
	<MonthDays v-model="monthDaysValue" :monthDaysOptions="monthDaysOptions" @getValue="getValue" />
</template>
<script>
import MonthDays from 'month-days-element'
export default {
	components: {
	  MonthDays
	},
	data () {
		return {
			monthDaysValue: '',
			monthDaysOptions: {
				placeholder: '请选择', // 占位内容,默认为选择日期
				size: 'small', // 输入框尺寸 large, small, mini 默认large
				clearable: true, // 是否显示清除按钮,默认true
				disabled: false, // 禁用,默认false
				readonly: false, // 只读,默认false
				popperClass: '', // 弹出框类名
			}
		}
	},
	methods:{
		getValue (val) {
			this.monthDaysValue = val
		}
	}
}
</script>
1.1.0

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago