Added strict one-way binding to all form components

This commit is contained in:
Joel Collins 2019-06-14 15:35:08 +01:00
parent 4a0351f80c
commit 5e69e52bcd
8 changed files with 181 additions and 33 deletions

View file

@ -1,13 +1,14 @@
<template>
<div>
<label>{{label}}</label>
<label class="uk-form-label">{{label}}</label>
<input
class="uk-input uk-form-small"
type="text"
:name="name"
:value="value"
v-bind:name="name"
v-bind:value="value"
v-bind:placeholder="placeholder"
@input="$emit('input',$event.target.value)"
:placeholder="placeholder"
>
</div>
@ -16,6 +17,7 @@
<script>
export default {
name: 'textInput',
props: [
'placeholder',
'label',