fix width
This commit is contained in:
parent
715f7a7a1a
commit
930ca79392
|
@ -62,6 +62,7 @@
|
||||||
:type="input.type || 'text'"
|
:type="input.type || 'text'"
|
||||||
:placeholder="input.placeholder || undefined"
|
:placeholder="input.placeholder || undefined"
|
||||||
@keydown="onInputKeydown"
|
@keydown="onInputKeydown"
|
||||||
|
:style="{ width: input.type === 'search' ? '300px' : null }"
|
||||||
>
|
>
|
||||||
<template v-if="input.type === 'password'" #prefix
|
<template v-if="input.type === 'password'" #prefix
|
||||||
><i class="ph-password ph-bold ph-lg"></i
|
><i class="ph-password ph-bold ph-lg"></i
|
||||||
|
@ -439,10 +440,6 @@ onBeforeUnmount(() => {
|
||||||
margin: 16px 0 0 0;
|
margin: 16px 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(input[type="search"]) {
|
|
||||||
width: 300px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
@blur="focused = false"
|
@blur="focused = false"
|
||||||
@keydown="onKeydown($event)"
|
@keydown="onKeydown($event)"
|
||||||
@input="onInput"
|
@input="onInput"
|
||||||
|
v-bind="$attrs"
|
||||||
/>
|
/>
|
||||||
<datalist v-if="datalist" :id="id">
|
<datalist v-if="datalist" :id="id">
|
||||||
<option v-for="data in datalist" :value="data" />
|
<option v-for="data in datalist" :value="data" />
|
||||||
|
|
Loading…
Reference in New Issue