Wanderxx / vue-fullcalendar

vue calendar fullCalendar. no jquery required. Schedule events management
https://wanderxx.github.io/vue-fullcalendar/
1.51k stars 387 forks source link

Event detail can't work, is this a bug or??? How to do it? #52

Open fu-hb opened 7 years ago

fu-hb commented 7 years ago

"fc-body-card" ,how to work?

<fc-body :current-date="currentDate" :events="events" :month-names="monthNames" 
      :week-names="weekNames" :first-day="firstDay"
      @eventclick="emitEventClick" @dayclick="emitDayClick"
      @moreclick="emitMoreClick">
      <div slot="body-card">
        <slot name="fc-body-card">
        </slot>
      </div>
    </fc-body>
dzafer commented 7 years ago

There is an example in the demo directory, but it doesn't works for me. How to activate this?

<template slot="fc-event-card" scope="p">
            <p><i class="fa">sadfsd</i> {{ p.event.title }} test</p>
 </template>

Thank you.

fu-hb commented 7 years ago

This template is work for calendar event , you can change event's title to test it.

smingam commented 7 years ago

@dzafer : This is because the published npm package v1.0.9 is too old (from january) Update your project package.json dependency to point directly to the master branch

"dependencies": {
    "vue-fullcalendar": "git://github.com/Wanderxx/vue-fullcalendar#master"
}

and npm update.

smingam commented 7 years ago

@18979687252 : Here is some solution, hope it can inspire you! (freakin' hell, it was very unpleasant to set-up a jsfiddle vith vuejs and this plugin!)

https://jsfiddle.net/5vg5a8xf/2/

egeersoz commented 6 years ago

To anyone trying to follow @smingam's fiddle above, the template slot value for the body card is fc-body-card and not body-card. Definitely threw me off.

smingam commented 6 years ago

Are you sure ? I still see in FullCalendar.vue, line 75

<slot name="body-card">

</slot>

and if I modify my jsfiddle with your suggestion it doesn't work? Anyway, I moved on another plugin that works better for my need... good luck! :) Cheers

egeersoz commented 6 years ago

Your fiddle uses an earlier version of Vue, maybe that’s why? I don’t know.

Anyway, what plugin did you move to?