Skip to content

Commit

Permalink
merged vuejs-tips#37
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomagikal committed Jan 22, 2019
2 parents a205557 + 124be5d commit f13b7b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
<input type="tel"
:value="formattedValue"
@change="change"
<<<<<<< HEAD
v-money="{precision, decimal, thousands, prefix, suffix, allowBlank}"
=======
@blur="blur"
v-money="{precision, decimal, thousands, prefix, suffix}"
>>>>>>> 37
class="v-money" />
</template>

Expand Down Expand Up @@ -72,6 +77,9 @@ export default {
methods: {
change (evt) {
this.$emit('input', this.masked ? evt.target.value : unformat(evt.target.value, this.precision))
+ },
+ blur (evt) {
+ this.$emit('blur', evt)
}
}
}
Expand Down

0 comments on commit f13b7b9

Please sign in to comment.