mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 16:26:30 +00:00
refactor(gui): linting
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -1,38 +1,44 @@
|
||||
<template>
|
||||
<text-area-cell v-if="inputDetails.type === 'LongText'" :input-details="inputDetails"
|
||||
v-model="localState"></text-area-cell>
|
||||
<password-field v-else-if="inputDetails.type === 'Password'"
|
||||
:input-details="inputDetails" v-model="localState"></password-field>
|
||||
<text-area-cell
|
||||
v-if="inputDetails.type === 'LongText'"
|
||||
v-model="localState"
|
||||
:input-details="inputDetails"
|
||||
/>
|
||||
<password-field
|
||||
v-else-if="inputDetails.type === 'Password'"
|
||||
v-model="localState"
|
||||
:input-details="inputDetails"
|
||||
/>
|
||||
<attachment
|
||||
v-else-if="inputDetails.type === 'Attachment'"
|
||||
v-model="localState"
|
||||
:input-details="inputDetails"
|
||||
v-model="localState"></attachment>
|
||||
<text-field v-else :input-details="inputDetails" v-model="localState"></text-field>
|
||||
/>
|
||||
<text-field v-else v-model="localState" :input-details="inputDetails" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import TextField from "@/components/project/appStore/inputs/textField";
|
||||
import EditableAttachmentCell from "@/components/project/spreadsheet/components/editableCell/editableAttachmentCell";
|
||||
import Attachment from "@/components/project/appStore/inputs/attachment";
|
||||
import TextAreaCell from "~/components/project/spreadsheet/components/editableCell/textAreaCell";
|
||||
import PasswordField from "@/components/project/appStore/inputs/passwordField";
|
||||
import TextField from '@/components/project/appStore/inputs/textField'
|
||||
import Attachment from '@/components/project/appStore/inputs/attachment'
|
||||
import PasswordField from '@/components/project/appStore/inputs/passwordField'
|
||||
import TextAreaCell from '~/components/project/spreadsheet/components/editableCell/textAreaCell'
|
||||
|
||||
export default {
|
||||
name: "FormInput",
|
||||
components: {PasswordField, TextAreaCell, Attachment, EditableAttachmentCell, TextField},
|
||||
name: 'FormInput',
|
||||
components: { PasswordField, TextAreaCell, Attachment, TextField },
|
||||
props: {
|
||||
value: String,
|
||||
inputDetails: Object
|
||||
},
|
||||
computed: {
|
||||
localState: {
|
||||
get() {
|
||||
get () {
|
||||
return this.value
|
||||
},
|
||||
set(val) {
|
||||
this.$emit('input', val);
|
||||
set (val) {
|
||||
this.$emit('input', val)
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user