mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-07 06:47:13 -04:00
take size as input in input-text fields
This commit is contained in:
parent
08d977b8cd
commit
3b1a7a4cf9
1 changed files with 3 additions and 1 deletions
|
@ -28,6 +28,7 @@ const props = withDefaults(
|
||||||
type?: 'text' | 'password'
|
type?: 'text' | 'password'
|
||||||
multiline?: boolean
|
multiline?: boolean
|
||||||
rows?: number | string
|
rows?: number | string
|
||||||
|
size: string
|
||||||
autosize?: boolean
|
autosize?: boolean
|
||||||
autofocus?: boolean
|
autofocus?: boolean
|
||||||
monospace?: boolean
|
monospace?: boolean
|
||||||
|
@ -55,6 +56,7 @@ const props = withDefaults(
|
||||||
type: 'text',
|
type: 'text',
|
||||||
multiline: false,
|
multiline: false,
|
||||||
rows: 3,
|
rows: 3,
|
||||||
|
size: "1",
|
||||||
autosize: false,
|
autosize: false,
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
monospace: false,
|
monospace: false,
|
||||||
|
@ -183,7 +185,7 @@ defineExpose({
|
||||||
:class="{
|
:class="{
|
||||||
'leading-5 !font-mono': monospace,
|
'leading-5 !font-mono': monospace,
|
||||||
}"
|
}"
|
||||||
size="1"
|
:size="size"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue