From 3b1a7a4cf9c3f7d490d0ef6378cdd1fd4eae42fe Mon Sep 17 00:00:00 2001 From: vt Date: Wed, 2 Apr 2025 12:48:40 +0530 Subject: [PATCH] take size as input in input-text fields --- src/ui/c-input-text/c-input-text.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/c-input-text/c-input-text.vue b/src/ui/c-input-text/c-input-text.vue index b5f423d2..425d6243 100644 --- a/src/ui/c-input-text/c-input-text.vue +++ b/src/ui/c-input-text/c-input-text.vue @@ -28,6 +28,7 @@ const props = withDefaults( type?: 'text' | 'password' multiline?: boolean rows?: number | string + size: string autosize?: boolean autofocus?: boolean monospace?: boolean @@ -55,6 +56,7 @@ const props = withDefaults( type: 'text', multiline: false, rows: 3, + size: "1", autosize: false, autofocus: false, monospace: false, @@ -183,7 +185,7 @@ defineExpose({ :class="{ 'leading-5 !font-mono': monospace, }" - size="1" + :size="size" :placeholder="placeholder" :readonly="readonly" :disabled="disabled"