# e2-calendar

> 日历

Latest version **0.0.4** (published 2019-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install e2-calendar
pnpm add e2-calendar
yarn add e2-calendar
bun add e2-calendar
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2019-09-05 |
| First published | 2019-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 159.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kangning1206 |
| Maintainers | kangning1206 |

## Links

- npm: https://www.npmjs.com/package/e2-calendar
- npm.io page: https://npm.io/package/e2-calendar

## Dependencies (1)

- [ant-design-vue](https://npm.io/package/ant-design-vue.md) ^1.3.10

## Recent versions

- 0.0.4 (latest) — 2019-09-05
- 0.0.3 — 2019-07-22
- 0.0.2 — 2019-06-18
- 0.0.1 — 2019-06-17

## README

# e2-calendar

> 日历

<div style="text-align:center">
  <img src="https://user-images.githubusercontent.com/6220088/64321952-29b1d180-cff4-11e9-931a-cb57e12e3015.png" alt="calendar" title="calendar"/>
</div>

> 安装

```bash
$npm install e2-calendar
```

### Development Setup

```bash
# install dependencies
$ npm install

# dev mode
$ npm run dev

# test
$ npm run test

# build
$ npm run build
```

**This project was generated with [yeoman](http://yeoman.io/) and [generator-vue-component](https://github.com/ianaya89/generator-vue-component) :heart:**

## doc

### props

- columnheader

列头文字数组

- cellHeight
  单元格高度，string 类型，默认 44px

- defaultDate
  默认选择日期 ，string 类型，默认 ``

- formatWeek
  格式化周文本函数，默认
  ```js
  (weekNum) => {
    return `第${weekNum}周`;
  };
  ```

### slot

- headerExt

头部扩展区域，可以显示说明文字

- week

显示周单元格额外内容

- day

显示日单元格额外内容

### demo

```html
<e2-calendar defaultDate="2019-05-06">
  <template #headerExt>
    计划日期：2019-08-08~2019-12-08
  </template>
  <template #week="date">
    <div class="demo-week">{{date.weekNum}}</div>
  </template>
  <template #day="date">
    <div class="demo-day">12<em>.</em></div>
  </template>
</e2-calendar>
```

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