classcard-ui 0.2.535 → 0.2.536
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classcard-ui.common.js +58 -54
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +58 -54
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CCalendar/CCalendar.vue +4 -0
package/package.json
CHANGED
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
class="cursor-pointer rounded border border-gray-100 bg-white py-2 px-4 shadow focus-within:shadow-md hover:shadow-md"
|
|
136
136
|
v-for="event in getEventsForDate(value)"
|
|
137
137
|
:key="event.id"
|
|
138
|
+
@click="handleEventClick(event)"
|
|
138
139
|
>
|
|
139
140
|
<div class="text-sm text-gray-900">
|
|
140
141
|
{{ formatTimeFromDate(event.start) }} -
|
|
@@ -312,6 +313,9 @@ export default {
|
|
|
312
313
|
dayjs(date).isSame(dayjs(event.start), "day")
|
|
313
314
|
);
|
|
314
315
|
},
|
|
316
|
+
handleEventClick(event) {
|
|
317
|
+
this.$emit("event-click", event);
|
|
318
|
+
},
|
|
315
319
|
},
|
|
316
320
|
computed: {
|
|
317
321
|
currentMonthAndYear() {
|