Skip to content

xiaochong44/vue3-cron-antv

Repository files navigation

vue3-cron-antv

基于vue-cron-generator修改而来的Cron表达式生成

安装

# 安装ant-design-vue
npm install ant-design-vue@next

# 安装vue3-cron-antv
npm install vue3-cron-antv

使用(例子代码)

main.ts

import { createApp } from 'vue'
import App from './App.vue'
import 'ant-design-vue/dist/antd.css'
import  Vue3Cron  from 'vue3-cron-antv'
import 'vue3-cron-antv/dist/index.css'

createApp(App).use(Vue3Cron).mount('#app')

Vue文件

<script setup lang="ts">
import { ref } from 'vue';
let cronstr=ref('3-7 0 12 * * ? *')

</script>

<template>
  <vue-cron v-model:value="cronstr"/>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

</style>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published