# @firebug-wox/wox-admin-gtour-daterule

> basic react component

Latest version **1.0.9** (published 2019-06-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @firebug-wox/wox-admin-gtour-daterule
pnpm add @firebug-wox/wox-admin-gtour-daterule
yarn add @firebug-wox/wox-admin-gtour-daterule
bun add @firebug-wox/wox-admin-gtour-daterule
```

## 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 | 1.0.9 |
| Published | 2019-06-12 |
| First published | 2019-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 353.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | taichiyi |
| Maintainers | rnd-wx, taichiyi |
| Keywords | react, component |

## Links

- npm: https://www.npmjs.com/package/@firebug-wox/wox-admin-gtour-daterule
- Repository: https://github.com/firebug-wox/wox-admin-components
- Homepage: https://github.com/firebug-wox/wox-admin-components#readme
- Issues: https://github.com/firebug-wox/wox-admin-components/issues
- npm.io page: https://npm.io/package/@firebug-wox/wox-admin-gtour-daterule

## 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

- 1.0.9 (latest) — 2019-06-12
- 1.0.8 — 2019-05-06

## README

# Gtour Daterule [![image](https://img.shields.io/npm/v/wox-admin-gtour-daterule.svg)](https://www.npmjs.com/package/wox-admin-gtour-daterule)

> 团队游后台日期规则组件

## API

| 属性 | 说明 | 类型 | 默认值 |
| ---- | ---- | ---- | ---- |
| disabled | 是否禁用 | Boolean | false |
| total | 用于判断是否显示关闭按钮，当数据大于1条时显示 `必填` | number | 传入初始数据数组的长度即可 |
| num | 序号 `必填` | number | 用map遍历时传入index即可 |
| dateRule | 初始数据 `必填` | Object | 格式 `{endDate: String, startDate: String, excludeDates: Array, id: String, includeDates: Array, type: Number, weekDays: Array}` |
| dateExpressions | 初始数据数组 | Array | 格式 `[dateRule...]` |
| handleCallBack | 用户操作数据后回调函数 `必填` | Function(value) return 新的dateExpressions | |

## Usage

```javascript
import WoxDateRule from '@firebug-wox/wox-admin-gtour-daterule';

{
  this.state.dateExpressions && this.state.dateExpressions.length ? this.state.dateExpressions.map((value, index) => (
    <WoxDateRule
      total={this.state.dateExpressions && this.state.dateExpressions.length}
      key={index}
      num={index}
      dateRule={ value }
      dateExpressions={this.state.dateExpressions}
      handleCallBack={this.handleCallBack}
      disabled={true}
    />
  )) : <p style={{margin: '20px 20px 0'}}>无任何日期规则信息</p>
}
```

---
_Source: https://npm.io/package/@firebug-wox/wox-admin-gtour-daterule · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
