vue-fullcalendar icon indicating copy to clipboard operation
vue-fullcalendar copied to clipboard

$dispatch is not a function

Open donglinkai opened this issue 7 years ago • 1 comments

因为readme已经‘年久失修‘,很多功能都实现不了 官网已经移除了$dispatch, 所以文档里获取事件的方法已经没用了,因为这日历帮了我挺大的一个忙,所以过来提下问题,希望作者能再改进一下。 //下面是示例

<fullCalendar @eventClick="a" :events="fcEvents" locale="zh"></fullCalendar>
  methods: {
            a(data,day,js){
                console.log(data);
              //可以在这里显示或者隐藏事件
             data.isShow=false
            }

显示隐藏事件的前提要在数据中定义一个isShow

                fcEvents :  [
                    {
                        title : 'Sunny Out of Office',
                        start : new Date('2016-08-25'),
                        end : new Date('2017-07-20'),
                        isShow:false,
                     }
                   ]

donglinkai avatar Jul 10 '17 09:07 donglinkai

你是怎么解决跳转到指定时间的呀?

salormoom avatar Dec 21 '17 12:12 salormoom