feat : ajouts du composant input amount
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user