0.1.5 • Published 8 years ago

vue-calendar v0.1.5

Weekly downloads
106
License
MIT
Repository
github
Last release
8 years ago

vue-calendar

A style-uninstallable datepicker component for Vue.js

Demo Image

Requirement

  • "vue": "^1.0.12"
  • "moment": "^2.11.2"

Usage

<calendar :date.sync="dateString" format="YYYY/MM/DD"></calendar>

You can uninstall the preset style by pass a object which overrided the class name of each block to classNames.

<calendar :date.sync="dateString" :class-names="{panel: 'custom-panel'}"></calendar>

Then define your own style with new class name

.custom-panel {
  // blablabla
}

The default class names (all of them can be overrided):

  • root: 'calendar',
  • input: 'calendar-input',
  • panel: 'panel',
  • box: 'box',
  • bar: 'bar',
  • day: 'day',
  • month: 'month',
  • year: 'year'

License

The MIT License

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago