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:
@@ -29,7 +29,7 @@
|
||||
//which is purported to be exactly what I'm trying to do here with a v-text-field but better I guess??
|
||||
//or look at the source for ideas?
|
||||
|
||||
import { parseCurrency } from "vue-currency-input";
|
||||
import { parse } from "vue-currency-input";
|
||||
export default {
|
||||
props: {
|
||||
label: { type: String, default: null },
|
||||
@@ -64,7 +64,7 @@ export default {
|
||||
}
|
||||
const val = this.$refs.textField.$refs.input.value;
|
||||
|
||||
const parsedValue = parseCurrency(val, {
|
||||
const parsedValue = parse(val, {
|
||||
currency: this.currencyName,
|
||||
locale: this.languageName
|
||||
});
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
@@ -66,7 +66,7 @@ import chartBarHorizontalControl from "./components/chart-bar-horizontal-control
|
||||
//DEVELOPMENT MODE
|
||||
//THIS SHOULD BE FALSE IN RELEASE
|
||||
//************************************************************
|
||||
const DEV_MODE = false;
|
||||
const DEV_MODE = true;
|
||||
//************************************************************
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
|
||||
Reference in New Issue
Block a user