Merge pull request #5 from nelson820125/revert-4-my-feature-partial

Revert "Internationalisation fix "
This commit is contained in:
nelson.li
2025-08-12 21:47:37 +08:00
committed by GitHub
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') {
-7
View File
@@ -2,13 +2,6 @@
import { computed, ref, onUnmounted } from 'vue'
import type { Milestone } from '../models/classes/Milestone'
import { TimelineScale } from '../models/types/TimelineScale'
import { useI18n } from '../composables/useI18n'
const { getTranslation } = useI18n()
const t = (key: string): string => {
return getTranslation(key)
}
interface Props {
date: string // 里程碑日期
-6
View File
@@ -31,12 +31,6 @@ interface Props {
const props = defineProps<Props>()
const { getTranslation } = useI18n()
const t = (key: string): string => {
return getTranslation(key)
}
const emit = defineEmits([
'update:task',
'bar-mounted',