Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

one-cron

Package Overview
Dependencies
Maintainers
4
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

one-cron

A Cron Expression Component Based React and Ant Design

  • 0.4.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

One-Cron

一款以 Cron Expressions 为桥梁的定时调度组件,支持国际化等功能。

image npm version npm downloads

Cron Expressions

下表简单介绍了一下 Cron Expressions 的  语法,详情请看官方介绍

ExpressionMeans
0 0 12 * * ?Fire at 12:00 PM (noon) every day
0 15 10 ? * *Fire at 10:15 AM every day
0 0/5 14,18 * * ?Fire every 5 minutes starting at 2:00 PM and ending at 2:55 PM, AND fire every 5 minutes starting at 6:00 PM and ending at 6:55 PM, every day

Documentation

NameTypeDefaultDescription
langenum'en_US'选项:'zh_CN','en_US','zh_TW'
onChangeFunction默认传来一个参数,为对象类型,提供 format 方法,可以拿到对应的 cron expression
cronExpressionString'0 0 0 * * ?'通过 cronExpression 的规则显示初始值
showRecentTimebooleanfalse显示最近 5 次生成时间
optionsArray全部数组值选项:'day', 'week', 'month', 'hour', 'minute'
disabledbooleanfalse不可操作
beginTimenumber0可选择的起始时间
endTimenumber24可选择的结束时间
multiplebooleantrue支持多选和单选,默认多选
onValidateFunction校验选择“周”,“月”,“小时”时,是否未填写。 该回调函数返回布尔值,True表示未填写。
errorMessagestring校验错误的提示语

License

MIT

Keywords

FAQs

Package last updated on 13 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc