table search

This commit is contained in:
Sebastian Frank
2017-08-25 13:13:59 +02:00
parent d59aa8cf0d
commit 038582b454
3 changed files with 23 additions and 11 deletions

View File

@@ -1,8 +1,8 @@
<template>
<div class="My-Input">
<label>{{ label }}</label>
<input type="text" v-if="type == 'text'" v-model="currentValue" @blur="validate()">
<input type="password" v-else-if="type == 'password'" v-model="currentValue" @blur="validate()">
<input type="text" v-if="type == 'text'" v-model="currentValue" @blur="validate()" @change="() => $emit('change', currentValue)">
<input type="password" v-else-if="type == 'password'" v-model="currentValue" @blur="validate()" @change="() => $emit('change', currentValue)">
</div>
</template>