Upgraded v-currency input from version 1.20.3 to the final compatible with my code release of version 1.22.3 and made appropriate modifications to controls that use it

This commit is contained in:
2022-01-31 00:23:59 +00:00
parent 7e842f259a
commit 6f354ed342
5 changed files with 14 additions and 14 deletions

View File

@@ -24,7 +24,7 @@
//https://codesandbox.io/s/vue-template-kd7d1?fontsize=14&module=%2Fsrc%2FApp.vue
//https://github.com/dm4t2/vue-currency-input
//https://github.com/dm4t2/vue-currency-input/releases
import { parseCurrency } from "vue-currency-input";
import { parse } from "vue-currency-input";
export default {
props: {
label: { type: String, default: null },
@@ -48,7 +48,7 @@ export default {
methods: {
updateValue() {
const val = this.$refs.textField.$refs.input.value;
const parsedValue = parseCurrency(val, {
const parsedValue = parse(val, {
currency: null,
locale: this.languageName
});