1.2.0 • Published 3 years ago

vue-cli-plugin-month-picker v1.2.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

vue-month-picker

  • Author: Tony Hoang
  • Email: chienhd@sudobo.com

A Vue.js search select component with NO dependencies.

Version 0.3.7

  • Support Vue.js from version 2.x and later

There are two files.

  • VueMonthPicker.common.js
    • common js bundle for consuming via bundlers(webpack)
  • VueMonthPicker.umd.js
    • umd bundle for browser

Release Notes

https://github.com/chienhd/vue-month-picker

Demo

https://github.com/chienhd/vue-month-picker

Usage

Install

npm

npm install --save vue-month-picker

yarn

yarn add vue-month-picker

Sample code

<template>
     <div>
        <month-picker 
            @fiscal-month="getFiscalMonth"
            :propsMonth="{
              startFiscalMonth: startFiscalMonth,
              startMonth: startMonth,
              endMonth: endMonth,
              quarterOfYear: quarterOfYear
            }">
        </month-picker>
    </div>
</template>

<script>
  import MonthPicker from 'vue-month-picker'

  export default {
    data () {
      return {
        startFiscalMonth: 1,
        startMonth: 1,
        endMonth: 3,
        quarterOfYear: false
      }
    },
    methods: {
      getFiscalMonth(payload) {
        console.log(payload)
      }
    },
    components: {
      MonthPicker
    }
  }
</script>

Props

Component: MonthPicker

NameTypeDefaultDescription
startFiscalMonthNumber1the starting month of the fiscal year
startMonthNumber1the starting month of the fiscal year that is currently viewed or active
endMonthNumber12the ending month of the fiscal year that is currently viewed or active
quarterOfYearBooleanfalsedetermines that it is either the quarters of the year or the months of the year
:fiscal-monthFunctionreturn Objectit returns an object

See Configuration Reference.

1.2.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago