1.1.1 • Published 3 months ago

vue-year-picker v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

vue-year-picker

仿ant风格年份选择器

image

使用方法

1. 安装

npm install --save vue-year-picker
import Vue from 'vue';
import yearPicker from 'vue-year-picker'

Vue.use(yearPicker);

2. 组件中使用

<year-picker
             dark 
             v-model="year" 
             :year-disable="'no'"
             @input="handlerInput" 
             />
export default {
  name: 'demo',
  data() {
    return {
      year: ''
    }
  },
  methods: {
    handlerInput(v) {
      console.log('选中的年份',v)
    }
  }
}

3.Attributes

参数类型描述
darkBoolean默认false,设置为true时开启深色模式
year-disableString'after'=禁用今年以后,'before'=禁用今年以前

4.Events

事件名说明参数
input当用户选中年份时触发value
1.1.1

3 months ago

1.1.0

3 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