refactor(gui): linting

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
Pranav C
2021-07-19 16:30:37 +05:30
parent f9508c2d44
commit fa00be39b8
303 changed files with 34924 additions and 31761 deletions

View File

@@ -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>