0.0.9 • Published 10 months ago

cron-plus v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

cron表达式生成插件

目的

  • vue3的cron表达式生成插件

vue3-cron

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

前提

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

使用

1. 安装

npm i cron-plus

2. 引入

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

3. 使用

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

4. 参数

  • i18n

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

    国际化支持

  • max-height

    • 参数 {String} height

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

2. 事件

  • change(cronText)

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

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

  • close()

    • 参数:无

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

5. 查看例子

联系方式

邮箱 : sun_vip19@163.com, Github: https://github.com/sunpec1994/CronPlugs.git

如果对您有帮助, 欢迎 star

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

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago