Revert "Internationalisation fix "

This commit is contained in:
nelson.li
2025-08-12 21:44:03 +08:00
committed by GitHub
parent c24352eb58
commit 30f82aa58e
3 changed files with 1 additions and 17 deletions
+1 -4
View File
@@ -1,9 +1,5 @@
<script setup lang="ts">
import { ref, computed, watch, onMounted, onUnmounted } from 'vue'
import { useI18n } from '../composables/useI18n'
const { t} = useI18n()
interface Props {
modelValue?: string | [string, string]
@@ -71,6 +67,7 @@ const formatDisplayDate = (dateStr: string) => {
const date = new Date(dateStr)
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`
}
// 显示值
const displayValue = computed(() => {
if (props.type === 'daterange') {