feat : ajouts du composant input amount

This commit is contained in:
2026-03-03 08:46:25 +01:00
parent 3ce6568696
commit ca18f4f3b9

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)