# vue-calendar-mobile

> A calendar component for vue.js

Latest version **0.1.9** (published 2017-03-08) · 0 weekly downloads

## Install

```sh
npm install vue-calendar-mobile
pnpm add vue-calendar-mobile
yarn add vue-calendar-mobile
bun add vue-calendar-mobile
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.9 |
| Published | 2017-03-08 |
| First published | 2016-08-11 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | GilbertSun |
| Maintainers | gilbertsun |

## Links

- npm: https://www.npmjs.com/package/vue-calendar-mobile
- Repository: https://github.com/GilbertSun/vue-calendar
- Homepage: https://github.com/GilbertSun/vue-calendar#readme
- Issues: https://github.com/GilbertSun/vue-calendar/issues
- npm.io page: https://npm.io/package/vue-calendar-mobile

## Recent versions

- 0.1.9 (latest) — 2017-03-08
- 0.1.7 — 2017-03-08
- 0.1.6 — 2016-12-22
- 0.1.5 — 2016-12-22
- 0.1.4 — 2016-11-17
- 0.1.3 — 2016-11-17
- 0.1.2 — 2016-11-11
- 0.1.1 — 2016-11-09
- 0.0.7 — 2016-10-26
- 0.0.6 — 2016-10-20
- 0.0.5 — 2016-10-11
- 0.0.4 — 2016-09-18
- 0.0.3 — 2016-09-05
- 0.0.2 — 2016-08-12
- 0.0.1 — 2016-08-11

## README

vue-calendar
===
A calendar component for vue.js **compitable with vue 2.x**

## examples

website: [GilbertSun/vue-calendar](http://gilbertsun.github.io/vue-calendar)

## install & use

```bash
npm install vue-calendar-mobile

# for 1.x
npm install vue-calendar-mobile@1
```

use in a vue component

```html
<template>
<calendar :view="'month'"></calendar>
</template>

<script>
import Calendar from 'vue-calendar-mobile'

export default {
  components: {
    Calendar
  }
}
</script>

```

## Develope

you want to change the source and see what's you change

```bash
$ make dev
```

it will server a locale demo page in http://localhost:8080

then you change change the source code in `src` directory

**refresh the demo page**

```bash
$ make deploy
```

**publish to npm**

```bash
$ make pub
```

## API

| prop                  | type    | description | example | default value |
|:----------------------|:--------|:-------------: |:-------- |:-------- |
| currentView           | Object  | cureent shown view | {}, simple pass a clean object | `{start: Object, end: Object}` |
| decorate              | Object  | control the date to have a dot docorate | `{'2016-08-09': true}` | {} |
| sub                   | Object  | control the date sub decorate | `{'2016-08-09': {content: '休', color: '班'}}}` | {} |
| i18n                  | String  | control week name language | `'zh-cn', 'en'` | `'zh-cn'` |
| indicator             | Object  | control the header indicator default the year and month| `{title: ..., main: ...}` | `{}` |
| selected              | Date    | current select date | new Date(2016, 11, 6) | new Date() |
| startMonday           | Boolean | is the week start from monday, true for monday and false for sunday | true | false |
| startDate             | Date    | this start Date to control the first view to show startDate | new Date(2016, 11, 6) | new Date() |
| view                  | String  | show to month view of week view | 'month', 'week' | 'month' |
| centerHeader          | Boolean | control the calendar header position | true | false |

---
_Source: https://npm.io/package/vue-calendar-mobile · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
