Money vue component updated

This commit is contained in:
EnesSacid-Buker 2023-02-24 15:16:41 +03:00
parent 22722daab5
commit 2069a9161c
No known key found for this signature in database
GPG Key ID: 13B101B7922E1730

View File

@ -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);
},