1.0.9 • Published 1 year ago

antv-cron v1.0.9

Weekly downloads
-
License
Apache-2.0 Licen...
Repository
github
Last release
1 year ago

Start Fork GitHub open issues npm download npm download per month npm version MIT License

A Cron expression editor of easy-to-use, based on Vue@2.6.14 image

Example

Demo https://zyqwst.github.io/antv-cron/dist/index.html

npm install antv-cron
import CronInput from 'antv-cron'
import 'antv-cron/lib/antv-cron.css'

Vue.use(CronInput)
<template>
  <div id="app">
    ...
    <a-popover trigger="click">
      <template slot="content">
        <cron-input  v-model="cron"/>
      </template>
      <a-input v-model="cron" placeholder="* * * * * ?"/>
    </a-popover>
    ...
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      cron: null
    }
  }
}
</script>

antv-cron属性说明如下:

属性说明类型是否必须默认值
value(v-model)cron变量string
item可配置的项'second','minute','hour','day','month','week','year'array['second','minute','hour','day','month','week']
weekByNum星期(周)是否是用数字,默认false,使用英文简写,如SUN、MONBooleanfalse
sundayIndex星期(周)使用数字时,星期天的值,一般是0或1int0
yearStart年的默认开始日期,如2023当年
lang国际化(可选cn和en)Stringcn

Don't forget to star if it helped! 如果对您有帮助,别忘记给个星哦

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago