Skip to content

Instantly share code, notes, and snippets.

@kuroski
Last active September 11, 2018 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuroski/b41e2b713eed5c404541ba4bc38b6cec to your computer and use it in GitHub Desktop.
Save kuroski/b41e2b713eed5c404541ba4bc38b6cec to your computer and use it in GitHub Desktop.
<script>
export default {
name: 'UserSearchForm',
data() {
return {
username: ''
}
}
}
</script>
<template>
<form @submit.prevent="$emit('submitted', username)">
<el-input
placeholder="Pesquise o usuário"
v-model="username"
class="search-form__input"
>
<el-button
class="search-form__button"
native-type="submit"
slot="append"
icon="el-icon-search"
></el-button>
</el-input>
</form>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment