vue-currency-input
Advanced tools
Comparing version 1.17.0 to 1.17.1
/** | ||
* Vue Currency Input 1.17.0 | ||
* Vue Currency Input 1.17.1 | ||
* (c) 2020 Matthias Stiller | ||
@@ -476,4 +476,14 @@ * @license MIT | ||
on: Object.assign({}, this.$listeners, | ||
{change: function (e) { return this$1.emit('change', e); }, | ||
input: function (e) { return this$1.emit('input', e); }}) | ||
{change: function (e) { | ||
if (e.detail) { | ||
this$1.$emit('change', e.detail.numberValue); | ||
} | ||
this$1.formattedValue = this$1.$el.value; | ||
}, | ||
input: function (e) { | ||
if (e.detail && this$1.value !== e.detail.numberValue) { | ||
this$1.$emit('input', e.detail.numberValue); | ||
} | ||
this$1.formattedValue = this$1.$el.value; | ||
}}) | ||
}) | ||
@@ -546,9 +556,2 @@ }, | ||
setValue(this.$el, value); | ||
}, | ||
emit: function emit (event, ref) { | ||
var detail = ref.detail; | ||
if (detail && this.value !== detail.numberValue) { | ||
this.$emit(event, detail.numberValue); | ||
} | ||
this.formattedValue = this.$el.value; | ||
} | ||
@@ -555,0 +558,0 @@ } |
/** | ||
* Vue Currency Input 1.17.0 | ||
* Vue Currency Input 1.17.1 | ||
* (c) 2020 Matthias Stiller | ||
@@ -482,4 +482,14 @@ * @license MIT | ||
on: Object.assign({}, this.$listeners, | ||
{change: function (e) { return this$1.emit('change', e); }, | ||
input: function (e) { return this$1.emit('input', e); }}) | ||
{change: function (e) { | ||
if (e.detail) { | ||
this$1.$emit('change', e.detail.numberValue); | ||
} | ||
this$1.formattedValue = this$1.$el.value; | ||
}, | ||
input: function (e) { | ||
if (e.detail && this$1.value !== e.detail.numberValue) { | ||
this$1.$emit('input', e.detail.numberValue); | ||
} | ||
this$1.formattedValue = this$1.$el.value; | ||
}}) | ||
}) | ||
@@ -552,9 +562,2 @@ }, | ||
setValue(this.$el, value); | ||
}, | ||
emit: function emit (event, ref) { | ||
var detail = ref.detail; | ||
if (detail && this.value !== detail.numberValue) { | ||
this.$emit(event, detail.numberValue); | ||
} | ||
this.formattedValue = this.$el.value; | ||
} | ||
@@ -561,0 +564,0 @@ } |
{ | ||
"name": "vue-currency-input", | ||
"description": "Easy input of currency formatted numbers for Vue.js.", | ||
"version": "1.17.0", | ||
"version": "1.17.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "unpkg": "dist/vue-currency-input.umd.js", |
@@ -16,4 +16,14 @@ import { DEFAULT_OPTIONS, setValue } from './api' | ||
...this.$listeners, | ||
change: e => this.emit('change', e), | ||
input: e => this.emit('input', e) | ||
change: e => { | ||
if (e.detail) { | ||
this.$emit('change', e.detail.numberValue) | ||
} | ||
this.formattedValue = this.$el.value | ||
}, | ||
input: e => { | ||
if (e.detail && this.value !== e.detail.numberValue) { | ||
this.$emit('input', e.detail.numberValue) | ||
} | ||
this.formattedValue = this.$el.value | ||
} | ||
} | ||
@@ -86,10 +96,4 @@ }) | ||
setValue(this.$el, value) | ||
}, | ||
emit (event, { detail }) { | ||
if (detail && this.value !== detail.numberValue) { | ||
this.$emit(event, detail.numberValue) | ||
} | ||
this.formattedValue = this.$el.value | ||
} | ||
} | ||
} |
76166
82272
1737