0.2.5 • Published 3 years ago

month-picker-drag v0.2.5

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

month-picker-drag

  • Author: Tony Hoang
  • Email: chienhd@sudobo.com, hoangchien2712tv@gmail.com
  • Contributors: khaitm@sudobo.com

A Vue.js MonthPickerDrag component with vue dependencies.

Version 0.2.2

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

Release Notes

https://github.com/tonyhoang2712/month-picker-drag

Usage

Install

npm

npm install month-picker-drag

yarn

yarn add month-picker-drag

Sample code

<template>
  <div>
    <month-picker-drag
      @fiscal-month="getFiscalMonth"
      :propsMonth="propsMonth"
    ></month-picker-drag>
  </div>
</template>

<script>
import MonthPickerDrag from 'month-picker-drag'

export default {
  name: 'HelloWorld',
  components: {
    MonthPickerDrag
  },
  computed: {
    propsMonth() {
      return {
        startFiscalMonth: 1,
        startMonth: 1,
        endMonth: 12,
        quarterOfYear: false,
        language: 'en'
      }
    }
  },
  methods: {
    getFiscalMonth(payload) {
      console.log(payload)
    }
  }
}
</script>

Props

Component: MonthPickerDrag

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
languageStringvi or endetermines that it is either Vietnamese or English
:fiscal-monthFunctionreturn Objectit returns an object

See Configuration Reference.

0.2.5

3 years ago

0.2.4

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.1.8

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago