Skip to content
Snippets Groups Projects
Verified Commit e7d3686e authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add FileField

parent 1d3f06a1
No related branches found
No related tags found
1 merge request!1594Resolve "Vue: Rework Person Create / Edit"
<template>
<v-file-input v-model="file" v-bind="$attrs" v-on="$listeners">
</v-file-input>
</template>
<script>
import formRulesMixin from "../../../mixins/formRulesMixin";
export default {
name: "FileField",
extends: "v-file-input",
mixins: [formRulesMixin],
props: {
value: {
type: String,
default: undefined,
},
},
computed: {
file: {
get() {
return this.value;
},
set(newValue) {
this.$emit("input", newValue);
},
},
},
};
</script>
<style scoped></style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment