0.1.9 • Published 1 year ago

vue3-cron-plus v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 或者邮箱联系我-.- 谢谢!

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago