From fdd94b09f3ae5724132aace12b46279aa5e05220 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 8 May 2024 11:43:18 +0000 Subject: [PATCH 1/2] style: fix searchba input width --- src/pages/Customer/CustomerMain.vue | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/pages/Customer/CustomerMain.vue b/src/pages/Customer/CustomerMain.vue index d7b900e1f..f0dc2e500 100644 --- a/src/pages/Customer/CustomerMain.vue +++ b/src/pages/Customer/CustomerMain.vue @@ -15,10 +15,3 @@ const stateStore = useStateStore(); - - From 0ebb9c6c5269592115d7b7b9d62edaff8284ffa0 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 8 May 2024 13:43:45 +0200 Subject: [PATCH 2/2] fix: unnexpected bottom spca --- src/components/common/VnInput.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue index 3f7e46367..684770e9c 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -53,10 +53,12 @@ defineExpose({ focus, }); -const inputRules = (val) => { - const { min } = vnInputRef.value.$attrs; - if (min >= 0) if (Math.floor(val) < min) return t('inputMin', { value: min }); -}; +const inputRules = [ + (val) => { + const { min } = vnInputRef.value.$attrs; + if (min >= 0) if (Math.floor(val) < min) return t('inputMin', { value: min }); + }, +];