code refactor

This commit is contained in:
MaysWind
2025-01-16 00:25:50 +08:00
parent 922c338387
commit 6ef42a9303
7 changed files with 46 additions and 46 deletions
+6 -6
View File
@@ -32,12 +32,12 @@ import { useI18n } from '@/locales/helpers.ts';
import { ClipboardHolder } from '@/lib/clipboard.ts';
const props = defineProps<{
title?: string
hint?: string
information: string
rowCount: number
enableCopy?: boolean
show: boolean
title?: string;
hint?: string;
information: string;
rowCount: number;
enableCopy?: boolean;
show: boolean;
}>();
const emit = defineEmits<{
+6 -6
View File
@@ -42,12 +42,12 @@ import { ref } from 'vue';
import { useI18n } from '@/locales/helpers.ts';
const props = defineProps<{
modelValue: string
title?: string
hint?: string
confirmDisabled?: boolean
cancelDisabled?: boolean
show: boolean
modelValue: string;
title?: string;
hint?: string;
confirmDisabled?: boolean;
cancelDisabled?: boolean;
show: boolean;
}>();
const emit = defineEmits<{
+7 -7
View File
@@ -43,13 +43,13 @@ import { ref } from 'vue';
import { useI18n } from '@/locales/helpers.ts';
const props = defineProps<{
modelValue: string
title?: string
hint?: string
color?: string
confirmDisabled?: boolean
cancelDisabled?: boolean
show: boolean
modelValue: string;
title?: string;
hint?: string;
color?: string;
confirmDisabled?: boolean;
cancelDisabled?: boolean;
show: boolean;
}>();
const emit = defineEmits<{
+6 -6
View File
@@ -32,12 +32,12 @@ import { ref, computed } from 'vue';
import { useI18n } from '@/locales/helpers.ts';
const props = defineProps<{
modelValue: string
title?: string
hint?: string
confirmDisabled?: boolean
cancelDisabled?: boolean
show: boolean
modelValue: string;
title?: string;
hint?: string;
confirmDisabled?: boolean;
cancelDisabled?: boolean;
show: boolean;
}>();
const emit = defineEmits<{