Open DamonSnow opened 5 years ago
the schedule that i created in month view can't display in week view or day view. the schedule data is:
title: "test time range 2"
body: ""
calendarId: "1"
category: "time"
start: TZDate {_date: Mon Apr 08 2019 10:04:00 GMT+0800 (中国标准时间)}
end: TZDate {_date: Tue Apr 09 2019 11:04:00 GMT+0800 (中国标准时间)}
id: 8
isAllDay: false
isFocused: false
isPending: false
isPrivate: false
isReadOnly: false
isVisible: true
but if i create a schedule that time range is in same day, it can display in week view, data is below
title: "test time range 1"
body: ""
calendarId: "1"
category: "time"
start: TZDate {_date: Mon Apr 02 2019 10:04:00 GMT+0800 (中国标准时间)}
end: TZDate {_date: Tue Apr 02 2019 11:04:00 GMT+0800 (中国标准时间)}
id: 7
isAllDay: false
isFocused: false
isPending: false
isPrivate: false
isReadOnly: false
isVisible: true
i cann't delete shcedule when i use deleteSchedule function:
this.$refs.tuiCalendar.invoke('deleteSchedule', '5', '2');
@DamonSnow
Does the viewChg method handler get the correct 'val' value? *https://vuejs.org/v2/guide/forms.html#Select
this.$refs.tuiCalendar.invoke('changeView', this.model1, true);
Is your schedule id string? I think your schedule id is number.
deleteSchedule(scheduleId, calendarId, silent)
this.$refs.tuiCalendar.invoke('deleteSchedule', 7, '2');
<!--
Version
"@toast-ui/vue-calendar": "^1.0.3",
Test Environment
win 10
Current Behavior
default view is month, and i implement a api to get schedule data correct.the result is right too. but when i change the view to week or day, the schedule missing. the schedule data will get from api when the view type change or time range change.
the code is below
Expected Behavior
i hope that the schedule can display correct when i change view type or time range.