1.0.9 • Published 1 year ago

cron-editor-vue2 v1.0.9

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

Description

The component library is built with Vue 2 allowing for easier editing of cron expressions that are built using a basic cron syntax (classic GNU version, 5 digits).

Installation

npm i cron-editor-vue2

Setup

Globally

import Vue from "vue";
import VueCronEditor from 'cron-editor-vue2'
import ElementUI from "element-ui";
import locale from "element-ui/lib/locale/lang/en";
import "element-ui/lib/theme-chalk/index.css";

Vue.use(VueCronEditor);
Vue.use(ElementUI, { locale });

Locally

import VueCronEditor from 'cron-editor-vue2';
export default {
  components: {
    VueCronEditor
  }
}

Usage

<template>
  <div id="app">
    <el-input v-model="cronExpression" class="cron-input" />
    <vue-cron-editor v-model="cronExpression" />
  </div>
</template>

<script>
import VueCronEditor from 'cron-editor-vue2';

export default {
  name: "ServeDev",
  components: {
    "vue-cron-editor": VueCronEditor,
  },
  data() {
    return {
      cronExpression: "* * * * *",
    };
  },
};
</script>

<style scoped>
.cron-input {
  margin-bottom: 10px;
}
</style>

Packages

This monorepo includes the following packages:

  • Vue 2.0.0+
  • element-ui 2.0.0+

Development

Install dependencies

npm install

Run development server

npm run serve

Build

npm run build

About the Author

This package was created by Gregory Tsyapa, a software developer at OSKI solutions

Attribution

This component is inspired by vue-cron and vue-cron-editor-buefy

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago