多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
1.3 KiB

<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>
<attachment
v-else-if="inputDetails.type === 'Attachment'"
:input-details="inputDetails"
v-model="localState"></attachment>
<text-field v-else :input-details="inputDetails" v-model="localState"></text-field>
</template>
<script>
import TextField from "@/components/project/appStore/inputs/textField";
import EditableAttachmentCell from "@/components/project/spreadsheet/editableCell/editableAttachmentCell";
import Attachment from "@/components/project/appStore/inputs/attachment";
import TextAreaCell from "~/components/project/spreadsheet/editableCell/textAreaCell";
import PasswordField from "@/components/project/appStore/inputs/passwordField";
export default {
name: "FormInput",
components: {PasswordField, TextAreaCell, Attachment, EditableAttachmentCell, TextField},
props: {
value: String,
inputDetails: Object
},
computed: {
localState: {
get() {
return this.value
},
set(val) {
this.$emit('input', val);
}
},
}
}
</script>
<style scoped>
</style>