Make sure all custom fields are included in form.

This commit is contained in:
James Cole
2019-05-12 13:46:20 +02:00
parent 5d09d7e923
commit 7aef52870f
8 changed files with 843 additions and 54 deletions

View File

@@ -0,0 +1,34 @@
<template>
<div class="form-group">
<div class="col-sm-12 text-sm">
{{ title }}
</div>
<div class="col-sm-12">
<input type="text" class="form-control" :name="name"
:title="title" autocomplete="off"
ref="str"
:value="value" @input="handleInput"
:placeholder="title">
</div>
</div>
</template>
<script>
export default {
name: "CustomString",
props: {
title: String,
name: String,
value: String
},
methods: {
handleInput(e) {
this.$emit('input', this.$refs.str.value);
}
}
}
</script>
<style scoped>
</style>