|
@@ -5,6 +5,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
+import { computed } from 'vue'
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
|
const props = defineProps({
|
|
@@ -16,7 +17,7 @@ const props = defineProps({
|
|
|
})
|
|
|
const emits = defineEmits(['click'])
|
|
|
|
|
|
-const dateFormat = dayjs(props.date).format(props.format)
|
|
|
+const dateFormat = computed(() => dayjs(props.date).format(props.format))
|
|
|
|
|
|
const handleClick = () => {
|
|
|
emits('click')
|