{"id":27834546,"url":"https://github.com/CroudSupport/vue-fullcalendar","last_synced_at":"2025-05-02T13:01:10.162Z","repository":{"id":57150364,"uuid":"64202317","full_name":"CroudTech/vue-fullcalendar","owner":"CroudTech","description":"FullCalendar Wrapper for vue ","archived":true,"fork":false,"pushed_at":"2020-10-17T23:11:40.000Z","size":1179,"stargazers_count":481,"open_issues_count":54,"forks_count":100,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-28T18:02:06.374Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CroudTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-26T08:03:37.000Z","updated_at":"2025-02-21T07:36:37.000Z","dependencies_parsed_at":"2022-09-16T12:22:45.071Z","dependency_job_id":null,"html_url":"https://github.com/CroudTech/vue-fullcalendar","commit_stats":null,"previous_names":["croudsupport/vue-fullcalendar"],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CroudTech%2Fvue-fullcalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CroudTech%2Fvue-fullcalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CroudTech%2Fvue-fullcalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CroudTech%2Fvue-fullcalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CroudTech","download_url":"https://codeload.github.com/CroudTech/vue-fullcalendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252043563,"owners_count":21685464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-02T13:00:42.319Z","updated_at":"2025-05-02T13:01:10.132Z","avatar_url":"https://github.com/CroudTech.png","language":"Vue","funding_links":[],"categories":["UI组件","Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","Components \u0026 Libraries","UI Components [🔝](#readme)","Awesome Vue.js","UI Components"],"sub_categories":["Libraries \u0026 Plugins","日历","UI Components","Calendar"],"readme":"# vue-fullcalendar\n[![npm version](https://badge.fury.io/js/vue-full-calendar.svg)](https://badge.fury.io/js/vue-full-calendar)\n[![Build Status](https://travis-ci.org/CroudSupport/vue-fullcalendar.svg?branch=master)](https://travis-ci.org/CroudSupport/vue-fullcalendar)\n\n\n## Installation\n```\nnpm install --save vue-full-calendar\n```\nOr for Vue 1.x users\n```\nnpm install --save vue-full-calendar@0.0.3\n```\n\nInstalling the plugin will globally add the `full-calendar` component to your project.\n\n```js\n//main.js\nimport FullCalendar from 'vue-full-calendar'\nVue.use(FullCalendar)\n```\n\nBut you can also import the standalone component to add locally or for more complex installations.\n\n```js\n// foo.vue\nimport { FullCalendar } from 'vue-full-calendar'\nexport default {\n  components: {\n    FullCalendar,\n  },\n}\n```\n\n### jQuery\n\nPlease note that fullcalendar depends on jQuery, but you won't need to add it to your project manually, fullcalendar will handle this for you automatically if jQuery is not detected.\n\n### CSS\nAs of version 2.0, we have removed the automatic import of the fullcalendar.css, you will need to explicitly import this css file in your project.\n```js\nimport 'fullcalendar/dist/fullcalendar.css'\n```\n\n## Example App\nI have created a simple Vue 2 webpack application as an example/playground\nhttps://github.com/BrockReece/vue-fullcalendar-example\n\nor try out this [Code Sandbox](https://codesandbox.io/s/5xlp873rkl)\n\n### Scheduler\nFor those wanting to use the scheduler plugin, this [Code Sandbox](https://codesandbox.io/s/qlp8jvko3j) shows you a full working example. \n\n## Basic Usage\n\nYou can pass an array of fullclendar objects through the props\n\n```html\n\u003cfull-calendar :events=\"events\"\u003e\u003c/full-calendar\u003e\n...\n\u003cscript\u003e\n...\n  data() {\n    return {\n      events: [\n        {\n            title  : 'event1',\n            start  : '2010-01-01',\n        },\n        {\n            title  : 'event2',\n            start  : '2010-01-05',\n            end    : '2010-01-07',\n        },\n        {\n            title  : 'event3',\n            start  : '2010-01-09T12:30:00',\n            allDay : false,\n        },\n      ]\n    }\n  }\n...\n\u003c/script\u003e\n```\nMore event options can be found at http://fullcalendar.io/docs/event_data/Event_Object/\n\n## Using a JSON Feed\n\n```html\n\u003cfull-calendar :event-sources=\"eventSources\"\u003e\u003c/full-calendar\u003e\n...\n\u003cscript\u003e\n...\n  data() {\n    return {\n      eventSources: [\n        {\n          events(start, end, timezone, callback) {\n            self.$http.get(`/myFeed`, {timezone: timezone}).then(response =\u003e {\n              callback(response.data.data)\n            })\n          },\n          color: 'yellow',\n          textColor: 'black',\n        },\n        {\n          events(start, end, timezone, callback) {\n            self.$http.get(`/anotherFeed`, {timezone: self.timezone}).then(response =\u003e {\n              callback(response.data.data)\n            })\n          },\n          color: 'red',\n        },\n      ]\n    }\n  }\n...\n\u003c/script\u003e\n```\n\n## Custom Config\nYou can pass any custom [options](https://fullcalendar.io/docs/) through to fullcalendar by using the `config` prop, this includes extra event handlers.\n```html\n\u003cfull-calendar :events=\"events\" :config=\"config\" /\u003e\n...\n\u003cscript\u003e\n...\n  data() {\n    return {\n      events: [],\n      config: {\n        weekends: false,\n        drop(...args) {\n          //handle drop logic in parent\n        },\n      },\n    }\n  },\n...\n\u003c/script\u003e\n```\n\n## Locale\nYou can set the language of your calendar by importing the corresponding locale file and setting the `locale` key in the config prop. For example, to set up the Calendar in French...\n\n```html\n\u003cfull-calendar :events=\"events\" :config=\"config\" /\u003e\n...\n\u003cscript\u003e\nimport 'fullcalendar/dist/locale/fr'\n...\n  data() {\n    return {\n      events: [],\n      config: {\n        locale: 'fr',\n      },\n    }\n  },\n...\n\u003c/script\u003e\n```\n[Code Sandbox](https://codesandbox.io/s/8yl1xwk388)\n\n*Note: You won't need to set the locale config key if your app only imports a single locale file*\n\n## Further Props\nYou can edit the look and feel of fullcalendar by passing through extra props. These all have sensible defaults\n\n- __header__ - [obj] - [docs](http://fullcalendar.io/docs/display/header/)\n- __defaultView__ - ['agendaWeek'] - [docs](http://fullcalendar.io/docs/views/defaultView/)\n- __editable__ - [true] - [docs](http://fullcalendar.io/docs/event_ui/editable/)\n- __selectable__ - [true] -  [docs](http://fullcalendar.io/docs/selection/selectable/)\n- __selectHelper__ - [true] - [docs](http://fullcalendar.io/docs/selection/selectHelper/)\n- __config__ - [true] - Pass your own custom config straight through to fullcalendar\n\n## Methods \nSometimes you may need to manipulate the Calendar from your parent component, you can use `fireMethod` for this. This works with anything in the [Fullcalendar docs](https://fullcalendar.io/docs/) suffixed with `(method)` and it will dynamically handle as many arguments as needed.\n```html\n\u003cfull-calendar :events=\"events\" ref=\"calendar\" /\u003e\n...\n\u003cscript\u003e\n...\n  data() {\n    return {\n      events: [],\n    }\n  },\n  \n  methods: {\n    next() {\n      this.$refs.calendar.fireMethod('next')\n    },\n    changeView(view) {\n      this.$refs.calendar.fireMethod('changeView', view)\n    },\n  },\n...\n\u003c/script\u003e\n```\n\n## Events and Hooks\n\n### Emitted\n- __event-selected(event, jsEvent, view)__ - Triggered on eventClick()\n- __event-mouseover(event, jsEvent, view)__ - Triggered on eventMouseover()\n- __event-mouseout(event, jsEvent, view)__ - Triggered on eventMouseout()\n- __event-drop(event)__ - Triggered on eventDrop()\n- __event-resize(event)__ - Triggered on eventResize()\n- __event-created(event)__ - Triggered on select()\n- __event-receive(event)__ - Triggered on eventReceive()\n- __event-render(event)__ - Triggered on eventRender()\n- __view-render(view, element)__ - Triggered on viewRender()\n- __day-click(date, jsEvent, view)__ - Triggered on dayClick()\n\nYou can listen for these events using the following markup\n\n```html\n\u003cfull-calendar :event-sources=\"eventSources\" @event-selected=\"eventSelected\"\u003e\u003c/full-calendar\u003e\n```\n### Listens on\n- __render-event(event)__ - Adds a new event to calendar\n- __remove-event(event)__ - Removes event from calendar\n- __rerender-events()__ - Rerenders events to reflect local changes\n- __refetch-events()__ - Makes another JSON call to event sources\n- __reload-events()__ - Removes all events and adds all events in this.events\n\nYou can trigger these events in the parent component like so...\n\n```html\n\u003cfull-calendar ref=\"calendar\" :event-sources=\"eventSources\"\u003e\u003c/full-calendar\u003e\n...\n\u003cscript\u003e\n...\n  methods: {\n    refreshEvents() {\n      this.$refs.calendar.$emit('refetch-events')\n    },\n  }\n...\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCroudSupport%2Fvue-fullcalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCroudSupport%2Fvue-fullcalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCroudSupport%2Fvue-fullcalendar/lists"}