re-factor / cleanup

This commit is contained in:
2022-01-11 22:08:38 +00:00
parent e871708b20
commit e0be8a7cfe
251 changed files with 14680 additions and 15693 deletions

View File

@@ -2,18 +2,18 @@
<div>
<v-text-field
ref="textField"
:value="currencyValue"
@input="updateValue"
v-currency="{
currency: currencyName,
locale: languageName
}"
:value="currencyValue"
:readonly="readonly"
:disabled="disabled"
:label="label"
:rules="rules"
:error-messages="errorMessages"
:append-outer-icon="appendOuterIcon"
@input="updateValue"
@click:append-outer="$emit('gz-append-outer')"
></v-text-field>
</div>
@@ -29,15 +29,8 @@
//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 { setValue, parseCurrency } from "vue-currency-input";
import { parseCurrency } from "vue-currency-input";
export default {
data() {
return {
currencyName: window.$gz.locale.getCurrencyName(),
languageName: window.$gz.locale.getResolvedLanguage(),
initializing: true
};
},
props: {
label: { type: String, default: null },
rules: { type: Array, default: undefined },
@@ -47,6 +40,13 @@ export default {
errorMessages: { type: Array, default: null },
appendOuterIcon: { type: String, default: null }
},
data() {
return {
currencyName: window.$gz.locale.getCurrencyName(),
languageName: window.$gz.locale.getResolvedLanguage(),
initializing: true
};
},
computed: {
currencyValue() {
return this.value;