cron-hooks
v1.0.1
Published
cron-hooks 定时表达式
Downloads
4
Maintainers
Readme
cron-hooks
Usage
demo:https://chensongtao.github.io/react-cron/src-index
组件依赖
"react": "16.x",
"antd": "^4.x",
yarn add cron-hooks npm install cron-hooks --save
import CronHooks, { InputCron } from 'cron-hooks'
Cron
onChange
value
style // 内容的style
type={['second', 'minute', 'hour', 'day', 'month', 'week', 'year']}
InputCron
onChange
value
style // 内容的style
width // input 的宽度
type={['second', 'minute', 'hour', 'day', 'month', 'week', 'year']}
1.带Input and Dropdown的cron表达式
<InputCron
onChange
value
type={['second', 'minute', 'hour', 'day', 'month', 'week', 'year']}
/>
2.cron表达式
<CronHooks
onChange
value
className
type={['second', 'minute', 'hour', 'day', 'month', 'week', 'year']}
/>
3. TODO
- [ ] 增加年支持
LICENSE
MIT