Money vue component updated
This commit is contained in:
parent
22722daab5
commit
2069a9161c
@ -109,6 +109,11 @@ export default {
|
||||
default: false,
|
||||
description: "Selectbox disabled status"
|
||||
},
|
||||
isDynamic: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
description: "Currency is dynamic"
|
||||
},
|
||||
dynamicCurrency: {
|
||||
type: Object,
|
||||
default: function () {
|
||||
@ -168,6 +173,7 @@ export default {
|
||||
mounted() {
|
||||
//this.model = this.value;
|
||||
|
||||
if (this.isDynamic) {
|
||||
if (this.dynamicCurrency.code != this.currency.code) {
|
||||
if (! this.dynamicCurrency.decimal) {
|
||||
this.money = {
|
||||
@ -182,6 +188,7 @@ export default {
|
||||
this.money = this.dynamicCurrency;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.$emit('interface', this.model);
|
||||
},
|
||||
@ -206,7 +213,7 @@ export default {
|
||||
|
||||
watch: {
|
||||
dynamicCurrency: function (currency) {
|
||||
if (!currency) {
|
||||
if (! currency) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user