feat: Add full name to the user signup form (#1534)

This commit is contained in:
Pranav Raj S 2020-12-21 14:05:19 +05:30 committed by GitHub
parent 796e376fa7
commit 9d3dda9a61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 163 additions and 219 deletions

View file

@ -6,8 +6,12 @@
:type="type"
:placeholder="placeholder"
@input="onChange"
@blur="onBlur"
/>
<p v-if="helpText" class="help-text"></p>
<span v-if="error" class="message">
{{ error }}
</span>
</label>
</template>
@ -34,11 +38,18 @@ export default {
type: String,
default: '',
},
error: {
type: String,
default: '',
},
},
methods: {
onChange(e) {
this.$emit('input', e.target.value);
},
onBlur(e) {
this.$emit('blur', e.target.value);
},
},
};
</script>