[#362] Création d'un composant de type Montant #4

Merged
tristan merged 3 commits from feat/creation-composant-montant into develop 2026-03-03 10:42:40 +00:00
Showing only changes of commit ca18f4f3b9 - Show all commits

View File

@@ -177,10 +177,6 @@ const emit = defineEmits<{
}>()
// Normalize user input into a decimal amount string using "." as separator.
// Examples:
// "12,5" -> "12.5"
// "0012,345abc" -> "12.34"
// ",5" -> "0.5"
const normalizeAmount = (value: string) => {
const sanitizedValue = value
.replace(/\s+/g, '')
@@ -243,7 +239,7 @@ const onBlur = (event: Event) => {
const iconInputPaddingClass = computed(() => {
if (!props.iconName) return ''
return props.iconPosition === 'left' ? '!pl-11 !pr-3' : '!pl-3'
return props.iconPosition === 'left' ? '!pl-11 !pr-3' : ''
})
const disabled = computed(() => props.disabled)