# bee-calendar

> Calendar ui component for react

Latest version **2.1.3** (published 2020-04-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2020-04-24 |
| First published | 2017-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 6 |
| Unpacked size | 101.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yonyou FED |
| Maintainers | banyudu, bjyxszd, guoyongfeng, huayingjie, jonyw, kvkens, liushaozhen, liuyk, npm_yx, tinper-bot, whizbz, yangchch, yonyoufed, zhaoyuchief |
| Keywords | react, react-component, bee-calendar, iuap-design, tinper-bee, Calendar |

## Links

- npm: https://www.npmjs.com/package/bee-calendar
- Repository: https://github.com/tinper-bee/bee-calendar
- Homepage: https://github.com/tinper-bee/bee-calendar.git
- Issues: https://github.com/tinper-bee/bee-calendar.git/issues
- npm.io page: https://npm.io/package/bee-calendar

## Dependencies (6)

- [moment](https://npm.io/package/moment.md) ^2.18.1
- [rc-select](https://npm.io/package/rc-select.md) ^6.8.6
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [rc-calendar](https://npm.io/package/rc-calendar.md) ^9.15.5
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.23.0
- [tinper-bee-core](https://npm.io/package/tinper-bee-core.md) latest

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.1.3 (latest) — 2020-04-24
- 2.1.2-alpha.0 (alpha) — 2019-11-25
- 2.1.2 — 2019-11-25
- 2.1.1 — 2019-11-19
- 2.1.1-alpha.0 — 2019-11-19
- 2.1.0 — 2019-09-10
- 2.0.4 — 2019-03-19
- 2.0.3 — 2019-03-07
- 2.0.2 — 2019-02-28
- 2.0.1 — 2019-02-25
- 2.0.0 — 2019-02-13
- 1.0.0 — 2017-10-19
- 0.1.4 — 2017-09-04
- 0.1.3 — 2017-07-11
- 0.1.2 — 2017-07-11
- … 3 more at https://npm.io/package/bee-calendar/versions

## README

# bee-calendar

[![npm version](https://img.shields.io/npm/v/bee-calendar.svg)](https://www.npmjs.com/package/bee-calendar)
[![Build Status](https://img.shields.io/travis/tinper-bee/bee-calendar/master.svg)](https://travis-ci.org/tinper-bee/bee-calendar)
[![Coverage Status](https://coveralls.io/repos/github/tinper-bee/bee-calendar/badge.svg?branch=master)](https://coveralls.io/github/tinper-bee/bee-calendar?branch=master)
[![devDependency Status](https://img.shields.io/david/dev/tinper-bee/bee-calendar.svg)](https://david-dm.org/tinper-bee/bee-calendar#info=devDependencies)
[![NPM downloads](http://img.shields.io/npm/dm/bee-calendar.svg?style=flat)](https://npmjs.org/package/bee-calendar)
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/tinper-bee/bee-calendar.svg)](http://isitmaintained.com/project/tinper-bee/bee-calendar "Average time to resolve an issue")
[![Percentage of issues still open](http://isitmaintained.com/badge/open/tinper-bee/bee-calendar.svg)](http://isitmaintained.com/project/tinper-bee/bee-calendar "Percentage of issues still open")


react bee-calendar component for tinper-bee

some description...

## 使用方法

### 使用单独的calendar包
#### 组件引入
先进行下载bee-calendar包
```
npm install --save bee-calendar
```
组件调用
```js
import Calendar from 'bee-calendar';
ReactDOM.render(
        <Calendar></Calendar>
        , document.getElementById('target'));
```
#### 样式引入
- 可以使用link引入build目录下Calendar.css
```
<link rel="stylesheet" href="./node_modules/bee-calendar/build/Calendar.css">
```
- 可以在js中import样式
```js
import "./node_modules/bee-calendar/src/Calendar.scss"
//或是
import "./node_modules/bee-calendar/build/Calendar.css"
```



## API

|参数|说明|类型|默认值|
|:--|:---|:--|:---|
|prefixCls|prefixCls of this component|String|
|value|输入框当前的值|moment||
|defaultValue|输入框默认的值|moment||
|defaultType|默认渲染类型：日期／月份|string|date|
|type|面板的类型：日期／月份|string||
|onTypeChange|面板切换的回调函数|function(type)||
|fullscreen|铺满显示|bool|false|
|monthCellRender|月份显示回调函数|function||
|dateCellRender|日期显示回调函数|function||
|monthCellContentRender|月份内容渲染回调函数|function||
|dateCellContentRender|日期内容渲染回调函数|function||
|onSelect|日期选中回调函数|Function(date: moment)||


#### 开发调试

```sh
$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-calendar
$ cd bee-calendar
$ npm install
$ npm run dev
```

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