Updated all plugins and dependencies, had to modify currency and decimal controls due to renaming of parseCurrency method to getValue in vue-currency-input

This commit is contained in:
2020-09-18 18:45:09 +00:00
parent eb0a794d20
commit 63c8e5ab68
4 changed files with 2851 additions and 980 deletions

View File

@@ -23,7 +23,7 @@
//https://dm4t2.github.io/vue-currency-input/guide/#introduction :value="formattedValue"
//https://codesandbox.io/s/vue-template-kd7d1?fontsize=14&module=%2Fsrc%2FApp.vue
//https://github.com/dm4t2/vue-currency-input
import { setValue, parseCurrency } from "vue-currency-input";
import { setValue, getValue } from "vue-currency-input";
export default {
data() {
return {
@@ -50,7 +50,7 @@ export default {
methods: {
updateValue() {
let val = this.$refs.textField.$refs.input.value;
let parsedValue = parseCurrency(val, {
let parsedValue = getValue(val, {
currency: this.currencyName,
locale: this.languageName
});

View File

@@ -23,7 +23,7 @@
//https://codesandbox.io/s/vue-template-kd7d1?fontsize=14&module=%2Fsrc%2FApp.vue
//https://github.com/dm4t2/vue-currency-input
//NON CURRENCY MODE: https://dm4t2.github.io/vue-currency-input/config/#component
import { setValue, parseCurrency } from "vue-currency-input";
import { setValue, getValue } from "vue-currency-input";
export default {
data() {
return {
@@ -51,7 +51,7 @@ export default {
},
methods: {
handleInput(value) {
let parsedValue = parseCurrency(value, {
let parsedValue = getValue(value, {
currency: null,
locale: this.languageName
});