1.0.19 • Published 6 years ago

iview-datepicker-monthrange v1.0.19

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

iview-datepicker-monthrange

Install

Using npm:

npm install --save iview-datepicker-monthrange

Use it:

import MonthRangeDatePicker from 'iview-datepicker-monthrange'
Vue.use(MonthRangeDatePicker);
<month-range-date-picker type="daterange" placeholder="Select date"></month-range-date-picker>

!You should use type="daterange"

And you need add:

<link rel="stylesheet" href="//unpkg.com/iview/dist/styles/iview.css">

Want to get the input date:

<MonthRangeDatePicker type="daterange" placeholder="Select date" @on-change="daterange"></MonthRangeDatePicker>

methods: {
  daterange(data) {
    console.log(data);
  }
}

Disabled Date:

<MonthRangeDatePicker type="daterange" :options="options1" placeholder="Select date" @on-change="daterange"></MonthRangeDatePicker>

data() {
  return {
    options1: {
      disabledDate (year, month) {
        let disabledDate = (month < 10) ? year + '-0' + month : year + '-' + month;
        return disabledDate < '2017-11' || disabledDate > '2018-05';                     
      }
    }
  }
}
1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago