code refactor
This commit is contained in:
@@ -49,19 +49,19 @@ const {
|
||||
} = useI18n();
|
||||
|
||||
const props = defineProps<{
|
||||
class?: string,
|
||||
color?: string,
|
||||
density?: string,
|
||||
currency: string,
|
||||
showCurrency?: boolean,
|
||||
label?: string,
|
||||
placeholder?: string,
|
||||
persistentPlaceholder?: boolean,
|
||||
disabled?: boolean,
|
||||
readonly?: boolean,
|
||||
hide?: boolean,
|
||||
enableRules?: boolean,
|
||||
modelValue: number
|
||||
class?: string;
|
||||
color?: string;
|
||||
density?: string;
|
||||
currency: string;
|
||||
showCurrency?: boolean;
|
||||
label?: string;
|
||||
placeholder?: string;
|
||||
persistentPlaceholder?: boolean;
|
||||
disabled?: boolean;
|
||||
readonly?: boolean;
|
||||
hide?: boolean;
|
||||
enableRules?: boolean;
|
||||
modelValue: number;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
||||
@@ -22,10 +22,10 @@ import { useI18n } from '@/locales/helpers.ts';
|
||||
import { isString, isObject } from '@/lib/common.ts';
|
||||
|
||||
const props = defineProps<{
|
||||
show?: boolean
|
||||
color?: string
|
||||
title?: string
|
||||
text?: string
|
||||
show?: boolean;
|
||||
color?: string;
|
||||
title?: string;
|
||||
text?: string;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
||||
@@ -53,10 +53,10 @@ interface StepBarItem {
|
||||
}
|
||||
|
||||
const props = defineProps<{
|
||||
steps: StepBarItem[]
|
||||
currentStep: string
|
||||
clickable?: string | boolean
|
||||
minWidth: string | number
|
||||
steps: StepBarItem[];
|
||||
currentStep: string;
|
||||
clickable?: string | boolean;
|
||||
minWidth: string | number;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
||||
@@ -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<{
|
||||
|
||||
@@ -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<{
|
||||
|
||||
@@ -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<{
|
||||
|
||||
@@ -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<{
|
||||
|
||||
Reference in New Issue
Block a user