vue3-cron-plus

Corn expression plugin based on vue3+elementPlus(基于vue3+elementplus+vue3-cron的corn表达式插件)
12,939 6
Install
npm install vue3-cron-plus
Latest Version:0.1.9
Vue:3
License:MIT
Last Updated:Mar 23, 2023
Links: GitHub  ·  npm
Maintainer: elvasgao

vue3 cron plus表达式生成插件

目的

  • vue3的cron表达式生成插件

vue3-cron

  • 参考vue3-cron实现,修改了部分功能,修改了语法,加入了cron回显,修改了图标等

前提

  • Vue 3.0.0+
  • element-plus
  • @element-plus/icons-vue

使用

1. 安装

npm  install vue3-cron-plus @element-plus/icons-vue

2. 引入

    1. 先引入element-plus和@element-plus/icons-vue相关样式,具体参考element-plus官网
    1. 全局引入
import vue3CronPlus from 'vue3-cron-plus'
import 'vue3-cron-plus/dist/index.css' // 引入样式
const app = createApp(App)
app.use(vue3CronPlus)
    1. 局部引入
import { vue3CronPlus } from 'vue3-cron-plus'
import 'vue3-cron-plus/dist/index.css' // 引入样式
export default {
  template: '<vue3CronPlus/>',
  components: { vue3CronPlus },
}

3. 使用

<vue3CronPlus
  @change="changeCron"
  @close="togglePopover(false)"
  max-height="400px"
  i18n="cn">
</vue3CronPlus>

4. 参数

  • i18n

    • 参数 {String} language 目前仅支持en|cn

    国际化支持

  • max-height

    • 参数 {String} height

    设定 vue3-cron-plus 的 max-height, 默认没有该属性

2. 事件
  • change(cronText)

    • 参数:{String} cronText cron 表达式的值

    当 corn 表达式的值发生变化变化时触发

  • close()

    • 参数:无

    当点击 corn 表达式选择框取消按钮时触发

5. 查看例子

联系方式

邮箱 : elvasgao@126.com, Github: https://github.com/ElvaGao/vue3-cron-plus.git

如果对您有帮助, 欢迎 star

有任何问题请发 Issues 或者邮箱联系我-.- 谢谢!

Related Packages

vue3-cron-plus-picker

Corn expression plugin based on vue3+elementPlus(基于vue3+elementplus+vue3的cor...

4,288
vue3-cron-ep

Vue3 + Element Plus 实现的 Cron 表达式生成器组件

2,195
@element-plus/nuxt

Element Plus module for Nuxt

830,141 176
earthsdk-ui

基于 vue3、element-plus、earthsdk3 构建的 EarthSDK UI 组件库,提供丰富的 UI 组件...

11,530
monose-component-vue

Vue3 ElementPlus 二次封装组件库

3,327

Version History

Version Released License
0.1.9 MIT
0.1.8 MIT