This commit is contained in:
2020-02-07 22:08:59 +00:00
parent b2daa8b0d3
commit 44762e84a5
3 changed files with 8 additions and 41 deletions

View File

@@ -9,16 +9,12 @@
locale: languageName
}"
:readonly="readonly"
v-bind:label="label"
v-bind:rules="rules"
v-bind:required="required"
:label="label"
:rules="rules"
></v-text-field>
<p v-show="error" class="form__error v-messages theme--light error--text">
{{ error }}
</p>
<!-- currency:{{ currencyName }}, locale:{{ languageName }}, amount:{{ amount }}
<span class="title">v-currency-field</span>
<v-currency-field v-model="value" /> -->
</div>
</template>
<script>
@@ -41,7 +37,6 @@ export default {
label: String,
rules: Array,
value: { type: Number, default: null },
required: { type: Boolean, default: false },
readonly: { type: Boolean, default: false },
error: {
type: String,
@@ -66,29 +61,5 @@ export default {
this.formattedValue = value;
}
}
// ,
// computed: {
// amountLocal: {
// get: function() {
// console.log("Control getting amount: " + this.amount);
// if (this.amount == null) {
// return "0";
// } else {
// return this.amount.toString();
// }
// },
// set: function(value) {
// var parsedValue = this.$parseCurrency(this.amount, {
// currency: this.currencyName,
// locale: this.languageName
// });
// console.log("Control SETTING amount: " + parsedValue);
// //https://vuejs.org/v2/guide/components-custom-events.html#sync-Modifier
// //https://stackoverflow.com/a/51722100/8939
// this.$emit("update:amount", parsedValue);
// this.$emit("change", parsedValue);
// }
// }
// },
};
</script>