You've already forked SmartisanNote.Remake
优化 时间显示格式调整
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
|
||||
<script setup>
|
||||
import { computed, ref } from 'vue'
|
||||
import { formatDateTime } from '../utils/dateUtils'
|
||||
|
||||
const props = defineProps({
|
||||
content: {
|
||||
@@ -77,7 +78,7 @@ const isSliding = ref(false)
|
||||
const isSlided = ref(false) // 是否已经滑动到阈值
|
||||
|
||||
const formattedDate = computed(() => {
|
||||
// 简单的日期格式化,实际项目中可能需要更复杂的处理
|
||||
// 直接返回已经格式化的日期字符串
|
||||
return props.date
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user