code refactor

This commit is contained in:
MaysWind
2024-09-08 23:56:21 +08:00
parent cc8646cf1b
commit 3d5a03a629
@@ -33,7 +33,7 @@
<v-list-item :key="weekDay.type" :value="weekDay.type" :title="weekDay.displayName"
:class="{ 'frequency-value-selected v-list-item--active text-primary': isFrequencyValueSelected(weekDay.type) }"
v-for="weekDay in allWeekDays">
<template v-slot:prepend="{ isActive }">
<template #prepend="{ isActive }">
<v-checkbox density="compact" class="mr-1" :model-value="isActive"></v-checkbox>
</template>
</v-list-item>
@@ -43,7 +43,7 @@
<v-list-item :key="monthDay.day" :value="monthDay.day" :title="monthDay.displayName"
:class="{ 'frequency-value-selected v-list-item--active text-primary': isFrequencyValueSelected(monthDay.day) }"
v-for="monthDay in allAvailableMonthDays">
<template v-slot:prepend="{ isActive }">
<template #prepend="{ isActive }">
<v-checkbox density="compact" class="mr-1" :model-value="isActive"></v-checkbox>
</template>
</v-list-item>