Skip to content

react的cron表达式生成器,定时

License

Notifications You must be signed in to change notification settings

Walker-os/react-cron

 
 

Repository files navigation

react-crons

Usage

demo:https://chensongtao.github.io/react-cron/src-index

组件依赖
    "react": "16.x",
    "antd": "^3.20.1",
    "classnames": "^2.2.6",



style依赖
    less 引入 @import '~antd/dist/antd.less' 或者
    js 引入 import 'antd/dist/antd.less'



yarn add react-crons   npm install react-crons --save


import {Cron, InputCron} from 'react-crons'



Cron
    onChange
    value
    style // 内容的style
    className
    lang // 支持zh_CN/zh-CN/zh-Hans-CN/en_US/en-US
    type={['second', 'minute', 'hour', 'day', 'month', 'week']}


InputCron
    onChange
    value
    style // 内容的style
    width // input 的宽度
    lang // 支持zh_CN/zh-CN/zh-Hans-CN/en_US/en-US
    type={['second', 'minute', 'hour', 'day', 'month', 'week']}

1.带Input and Dropdown的cron表达式

<InputCron 
    onChange 
    value
    style={{ width: 576 }}
    lang='zh_CN'
    type={['second', 'minute', 'hour', 'day', 'month', 'week']}
/>

2.cron表达式

<Cron 
    onChange 
    value
    className
    style={{ width: 576 }}
    lang='zh_CN'
    type={['second', 'minute', 'hour', 'day', 'month', 'week']}
/>

LICENSE

MIT

About

react的cron表达式生成器,定时

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.5%
  • CSS 1.5%