From a66e1b7bee1bfc83bc18d6a1ede5f55d5aa3ea9e Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 13 May 2020 02:01:44 +0300 Subject: [PATCH] Fixed date template demo --- src/views/calendar/CalendarDemo.vue | 13 +++---------- src/views/calendar/CalendarDoc.vue | 25 +++++++++++++++++-------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/views/calendar/CalendarDemo.vue b/src/views/calendar/CalendarDemo.vue index fe819bb12..fa831c0ba 100755 --- a/src/views/calendar/CalendarDemo.vue +++ b/src/views/calendar/CalendarDemo.vue @@ -66,8 +66,8 @@ @@ -150,13 +150,6 @@ export default { \ No newline at end of file diff --git a/src/views/calendar/CalendarDoc.vue b/src/views/calendar/CalendarDoc.vue index 503a87097..42548022e 100755 --- a/src/views/calendar/CalendarDoc.vue +++ b/src/views/calendar/CalendarDoc.vue @@ -147,11 +147,17 @@ export default { + + + +.special-day { + text-decoration: line-through; +}

Month Picker

@@ -602,9 +608,9 @@ export default { <div class="p-field p-col-12 p-md-4"> <label for="datetemplate">Date Template</label> <Calendar id="datetemplate" v-model="date12"> - <template #date="slotProps"> - <div v-if="slotProps.date.day > 10 && slotProps.date.day < 15" class="special-day">{{slotProps.date.day}}</div> - <span v-else>{{slotProps.date.day}}</span> + <template #date="slotProps"> + <strong v-if="slotProps.date.day > 10 && slotProps.date.day < 15" class="special-day">{{slotProps.date.day}}</strong> + <template v-else>{{slotProps.date.day}}}</template> </template> </Calendar> </div> @@ -673,11 +679,14 @@ export default { maxDate: null, invalidDates: null } - }, - components: { - 'CalendarDoc': CalendarDoc } } + + + +.special-day { + text-decoration: line-through; +}