# rc-calendar-tbtime

> React Calendar

Latest version **9.3.114** (published 2018-03-23) · 0 weekly downloads

## Install

```sh
npm install rc-calendar-tbtime
pnpm add rc-calendar-tbtime
yarn add rc-calendar-tbtime
bun add rc-calendar-tbtime
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 9.3.114 |
| Published | 2018-03-23 |
| First published | 2017-12-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 1.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1702 |
| Author | yiminghe@gmail.com |
| Maintainers | crissii |
| Keywords | react, react-calendar, react-component, calendar, ui component, ui, component |

## Links

- npm: https://www.npmjs.com/package/rc-calendar-tbtime
- Repository: https://github.com/react-component/calendar
- Homepage: http://github.com/react-component/calendar
- Issues: http://github.com/react-component/calendar/issues
- npm.io page: https://npm.io/package/rc-calendar-tbtime

## Dependencies (7)

- [moment](https://npm.io/package/moment.md) 2.x
- [rc-util](https://npm.io/package/rc-util.md) ^4.1.1
- [classnames](https://npm.io/package/classnames.md) 2.x
- [prop-types](https://npm.io/package/prop-types.md) ^15.5.8
- [rc-trigger](https://npm.io/package/rc-trigger.md) ^2.2.0
- [babel-runtime](https://npm.io/package/babel-runtime.md) 6.x
- [create-react-class](https://npm.io/package/create-react-class.md) ^15.5.2

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 9.3.114 (latest) — 2018-03-23
- 9.3.1-tbtime-1.0.24 (beta) — 2017-12-14
- 9.3.113 — 2018-02-11
- 9.3.112 — 2018-02-08
- 9.3.111 — 2018-02-07
- 9.3.110 — 2018-02-07
- 9.3.109 — 2018-02-07
- 9.3.108 — 2018-02-07
- 9.3.107 — 2018-02-07
- 9.3.106 — 2018-01-05
- 9.3.105 — 2018-01-01
- 9.3.104 — 2017-12-15
- 9.3.103 — 2017-12-15
- 9.3.102 — 2017-12-15
- 9.3.101 — 2017-12-15
- … 25 more at https://npm.io/package/rc-calendar-tbtime/versions

## README

# rc-calendar
---

React Calendar(增加淘宝时间选择)


## Screenshots

<img src="https://user-images.githubusercontent.com/4486590/33889909-98cd281c-df8c-11e7-8769-17a770dc14d5.png" width="262"/>

## Feature

* support ie9,ie9+,chrome,firefox,safari
* support date, month, year, decade select panel
* support week number
* support en_US and zh_CN locale(UI), use moment.utcOffset to set timezone
* support aria and keyboard accessibility

### Keyboard

* Previous month (PageUp)
* Next month (PageDown)
* tab into hour input: Last hour(Up), Next hour(Down)
* tab into hour input: Last minute(Up), Next minute(Down)
* tab into hour input: Last second(Up), Next second(Down)
* Last year (Control + left)
* Next year (Control + right)

## install

```
npm install --save rc-calendar-tbtime
```

## Usage

```js
import React from 'react';
import ReactDOM from 'react-dom';
import TbCalendar from "rc-calendar-tbtime/dist/rc-calendar";
import "rc-calendar-tbtime/dist/rc-calendar.css";

class Demo extends React.Component{
  constructor()
  {
    super();
    this.state = {value:"2017-12"}
  }
  handleChange(v) { this.setState({ value: v }) }

  render(){
    return ( <TbCalendar disabled={false}
                         onChange={(v)=>{this.handleChange(v)}}
                         value={this.state.value}
                         format="YYYY-MM"/>

    );
  }

}


ReactDOM.render(<Demo />, document.getElementById('__react-content'));
```
## 属性说明


<table class="table table-bordered table-striped">
    <thead>
    <tr>
        <th style="width: 100px;">name</th>
        <th style="width: 50px;">type</th>
        <th>description</th>
    </tr>
    </thead>
    <tbody>
        <tr>
          <td>value</td>
          <td>String</td>
          <td>【必填】只支持受控组件，value要跟状态值绑定</td>
        </tr>
        <tr>
          <td>format</td>
          <td>String</td>
          <td>【可选】日期格式，如果为空默认格式为：YYYY-MM-DD HH:mm:ss</td>
         </tr>
         <tr>
          <td>onChange</td>
          <td>function</td>
          <td>【必填】变更函数，入参为format格式日期字符串</td>
         </tr>
         <tr>
          <td>disabled</td>
          <td>boolean</td>
          <td>【可选】是否只读，默认false</td>
         </tr>
    </tbody>
</table>

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