feat: floating input label

This commit is contained in:
liyasthomas
2021-08-07 14:51:13 +05:30
parent 92abbc4ce6
commit 3d963a7719
24 changed files with 132 additions and 128 deletions

View File

@@ -6,17 +6,17 @@
</template>
<template #body>
<div class="flex flex-col px-2">
<label for="selectLabelGqlAdd" class="font-semibold px-4 pb-4">
{{ $t("label") }}
</label>
<input
id="selectLabelGqlAdd"
v-model="name"
class="input"
class="input floating-input"
placeholder=" "
type="text"
:placeholder="$t('collection.name')"
@keyup.enter="addNewCollection"
/>
<label for="selectLabelGqlAdd">
{{ $t("label") }}
</label>
</div>
</template>
<template #footer>

View File

@@ -6,17 +6,17 @@
</template>
<template #body>
<div class="flex flex-col px-2">
<label for="selectLabelGqlAddFolder" class="font-semibold px-4 pb-4">
{{ $t("label") }}
</label>
<input
id="selectLabelGqlAddFolder"
v-model="name"
class="input"
class="input floating-input"
placeholder=" "
type="text"
:placeholder="$t('folder.new')"
@keyup.enter="addFolder"
/>
<label for="selectLabelGqlAddFolder">
{{ $t("label") }}
</label>
</div>
</template>
<template #footer>

View File

@@ -6,17 +6,17 @@
</template>
<template #body>
<div class="flex flex-col px-2">
<label for="selectLabelGqlEdit" class="font-semibold px-4 pb-4">
{{ $t("label") }}
</label>
<input
id="selectLabelGqlEdit"
v-model="name"
class="input"
class="input floating-input"
placeholder=" "
type="text"
:placeholder="editingCollection.name"
@keyup.enter="saveCollection"
/>
<label for="selectLabelGqlEdit">
{{ $t("label") }}
</label>
</div>
</template>
<template #footer>

View File

@@ -6,17 +6,16 @@
</template>
<template #body>
<div class="flex flex-col px-2">
<label for="selectLabelGqlEditFolder" class="font-semibold px-4 pb-4">
{{ $t("label") }}
</label>
<input
id="selectLabelGqlEditFolder"
v-model="name"
class="input"
class="input floating-input"
placeholder=" "
type="text"
:placeholder="folder.name"
@keyup.enter="editFolder"
/>
<label for="selectLabelGqlEditFolder">
{{ $t("label") }}
</label>
</div>
</template>
<template #footer>

View File

@@ -6,17 +6,17 @@
</template>
<template #body>
<div class="flex flex-col px-2">
<label for="selectLabelGqlEditReq" class="font-semibold px-4 pb-4">
{{ $t("label") }}
</label>
<input
id="selectLabelGqlEditReq"
v-model="requestUpdateData.name"
class="input"
class="input floating-input"
placeholder=" "
type="text"
:placeholder="request.name"
@keyup.enter="saveRequest"
/>
<label for="selectLabelGqlEditReq">
{{ $t("label") }}
</label>
</div>
</template>
<template #footer>

View File

@@ -59,7 +59,6 @@
ref="inputChooseFileToReplaceWith"
class="input"
type="file"
style="display: none"
accept="application/json"
@change="replaceWithJSON"
/>
@@ -74,7 +73,6 @@
ref="inputChooseFileToImportFrom"
class="input"
type="file"
style="display: none"
accept="application/json"
@change="importFromJSON"
/>