1.0.4 • Published 2 months ago
cron-for-element-plus v1.0.4
cron-for-element-plus
a project using vue,element-plus to generate cron expression
Use(Example)
npm install cron-for-element-plus
<template>
<CronInput v-model="state.cron" btn-text='设置' size="small" @error="error" @change="change" />
</template>
<script lang="ts" setup >
import { reactive } from 'vue'
import CronInput from "cron-for-element-plus";
const state = reactive({
cron: DEFAULT_CRON_EXPRESSION,
})
const change = (cron: string) => {
state.cron = cron
}
</script>
1.0.4
2 months ago