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 @@
- {{slotProps.date.day}}
- {{slotProps.date.day}}
+ {{slotProps.date.day}}
+ {{slotProps.date.day}}
@@ -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 {
<Calendar v-model="value">
<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>
+ <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>
+
+
+
+.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;
+}