0.2.4 • Published 3 years ago

vue-spring-calendar v0.2.4

Weekly downloads
17
License
MIT
Repository
github
Last release
3 years ago

Vue Spring Calendar

It's a Vue based component which provides the functionality of a full-calendar that shows daily events.

Installation

npm install vue-spring-calendar --save

For React.js developer please check this repository

Usage

App.vue :

<template>
  <div id="app">
    <SpringCalendar year="2020" color="#41b883" :events="events" locale="en"/>
  </div>
</template>

<script>
import SpringCalendar from "vue-spring-calendar";
export default {
  name: "App",
  data: () => ({
    events:[
    {
        title:'Event 1',
        startDate:'2020-04-09 08:00',
        endDate:'2020-04-09 12:00',
    },
    {
        title:'Event 2',
        startDate:'2020-04-09 09:00',
        endDate:'2020-04-09 12:00',
    },
    {
        title:'Event 3',
        startDate:'2020-04-09 12:00',
        endDate:'2020-04-09 16:00',
    },
    ]

  }),
  components: {
    SpringCalendar
  }
};
</script>

main.js

import Vue from 'vue'
import App from './App.vue'

//import the new composition api in order to make it work in Vue@2.x
import VueComp from '@vue/composition-api'
Vue.config.productionTip = false
//use the vue-composition-api plugin
Vue.use(VueComp)

new Vue({
  render: h => h(App),
}).$mount('#app')

Demo

Vue Spring Calendar demo

React Spring Calendar demo

0.2.4

3 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.10

4 years ago

0.1.2

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.1

4 years ago