<template>
    <div class="pt-2">
        <cron-light
            v-model="value"
            @error="error=$event"
        />
        <div class="text-lightest pt-2">{{ $t('cron') }}: {{ value }}</div>
    </div>
</template>

<script lang="ts" name="infoCron"></script>
<script lang="ts">
import { defineComponent, ref } from 'vue'
import './light/light.css'
import CronLightPlugin from './core/index.ts'

export default defineComponent({
    components: {
        'cron-light': CronLightPlugin
    },
    setup (props, { emit }) {
        let value = ref('* * * * *')
        let error = ref('')
        return { error, value }
    }
})
</script>
