1.0.7 • Published 6 years ago

wox-admin-gtour-daterule v1.0.7

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

Gtour Daterule image

团队游后台日期规则组件

API

属性说明类型默认值
disabled是否禁用Booleanfalse
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

import WoxDateRule from '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>
}
1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago