mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
code refactor
This commit is contained in:
@@ -49,19 +49,19 @@ const {
|
|||||||
} = useI18n();
|
} = useI18n();
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
class?: string,
|
class?: string;
|
||||||
color?: string,
|
color?: string;
|
||||||
density?: string,
|
density?: string;
|
||||||
currency: string,
|
currency: string;
|
||||||
showCurrency?: boolean,
|
showCurrency?: boolean;
|
||||||
label?: string,
|
label?: string;
|
||||||
placeholder?: string,
|
placeholder?: string;
|
||||||
persistentPlaceholder?: boolean,
|
persistentPlaceholder?: boolean;
|
||||||
disabled?: boolean,
|
disabled?: boolean;
|
||||||
readonly?: boolean,
|
readonly?: boolean;
|
||||||
hide?: boolean,
|
hide?: boolean;
|
||||||
enableRules?: boolean,
|
enableRules?: boolean;
|
||||||
modelValue: number
|
modelValue: number;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
@@ -22,10 +22,10 @@ import { useI18n } from '@/locales/helpers.ts';
|
|||||||
import { isString, isObject } from '@/lib/common.ts';
|
import { isString, isObject } from '@/lib/common.ts';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
show?: boolean
|
show?: boolean;
|
||||||
color?: string
|
color?: string;
|
||||||
title?: string
|
title?: string;
|
||||||
text?: string
|
text?: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
@@ -53,10 +53,10 @@ interface StepBarItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
steps: StepBarItem[]
|
steps: StepBarItem[];
|
||||||
currentStep: string
|
currentStep: string;
|
||||||
clickable?: string | boolean
|
clickable?: string | boolean;
|
||||||
minWidth: string | number
|
minWidth: string | number;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ import { useI18n } from '@/locales/helpers.ts';
|
|||||||
import { ClipboardHolder } from '@/lib/clipboard.ts';
|
import { ClipboardHolder } from '@/lib/clipboard.ts';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
title?: string
|
title?: string;
|
||||||
hint?: string
|
hint?: string;
|
||||||
information: string
|
information: string;
|
||||||
rowCount: number
|
rowCount: number;
|
||||||
enableCopy?: boolean
|
enableCopy?: boolean;
|
||||||
show: boolean
|
show: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
@@ -42,12 +42,12 @@ import { ref } from 'vue';
|
|||||||
import { useI18n } from '@/locales/helpers.ts';
|
import { useI18n } from '@/locales/helpers.ts';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: string
|
modelValue: string;
|
||||||
title?: string
|
title?: string;
|
||||||
hint?: string
|
hint?: string;
|
||||||
confirmDisabled?: boolean
|
confirmDisabled?: boolean;
|
||||||
cancelDisabled?: boolean
|
cancelDisabled?: boolean;
|
||||||
show: boolean
|
show: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
@@ -43,13 +43,13 @@ import { ref } from 'vue';
|
|||||||
import { useI18n } from '@/locales/helpers.ts';
|
import { useI18n } from '@/locales/helpers.ts';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: string
|
modelValue: string;
|
||||||
title?: string
|
title?: string;
|
||||||
hint?: string
|
hint?: string;
|
||||||
color?: string
|
color?: string;
|
||||||
confirmDisabled?: boolean
|
confirmDisabled?: boolean;
|
||||||
cancelDisabled?: boolean
|
cancelDisabled?: boolean;
|
||||||
show: boolean
|
show: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ import { ref, computed } from 'vue';
|
|||||||
import { useI18n } from '@/locales/helpers.ts';
|
import { useI18n } from '@/locales/helpers.ts';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: string
|
modelValue: string;
|
||||||
title?: string
|
title?: string;
|
||||||
hint?: string
|
hint?: string;
|
||||||
confirmDisabled?: boolean
|
confirmDisabled?: boolean;
|
||||||
cancelDisabled?: boolean
|
cancelDisabled?: boolean;
|
||||||
show: boolean
|
show: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
Reference in New Issue
Block a user