This commit is contained in:
2019-02-26 01:15:08 +00:00
parent b70945607e
commit 4eaf804d7c
2 changed files with 23 additions and 0 deletions

View File

@@ -14,6 +14,13 @@ TODO CLIENT STUFF
TODO NEXT TODO NEXT
Test separator allowing other weird characters in the template not as a function
OK, I can make it display and take entry the way I want, but
- separator allows anything, not just what I specify (try it without a function directly in the template)
- Value comes back as text, I need to parse it whatever the case
Maybe I can just allow free form entry and handle parsing, display in my own code??
Find out how to do a currency and other types of numeric input Find out how to do a currency and other types of numeric input
Make the currency and numeric fields work, then do the next stuff below: Make the currency and numeric fields work, then do the next stuff below:
@@ -25,6 +32,12 @@ v-validate="{ required: true, decimal: [2, ','] }"
https://github.com/baianat/vee-validate/commit/d9a3e97846aa47074e11bda4499ad539807ef0aa#commitcomment-25381793 https://github.com/baianat/vee-validate/commit/d9a3e97846aa47074e11bda4499ad539807ef0aa#commitcomment-25381793
Do I get back the proper currency value they entered that I can use even if it's comma separator??
(Looks like I will need to parse it)

View File

@@ -82,6 +82,9 @@
</v-flex> </v-flex>
</v-layout> </v-layout>
<v-layout align-center justify-space-around row wrap mt-5> <v-layout align-center justify-space-around row wrap mt-5>
<v-flex xs1>
<v-btn @click="test">TEST</v-btn>
</v-flex>
<v-flex xs1> <v-flex xs1>
<v-btn @click="clear">clear</v-btn> <v-btn @click="clear">clear</v-btn>
</v-flex> </v-flex>
@@ -169,20 +172,27 @@ export default {
}, },
submit() { submit() {
//alert("VALIDATING>>>"); //alert("VALIDATING>>>");
debugger;
console.log(obj.dollarAmount2); console.log(obj.dollarAmount2);
alert(obj.dollarAmount2); alert(obj.dollarAmount2);
this.$validator.validateAll(); this.$validator.validateAll();
}, },
localeDecimalSeparator(){ localeDecimalSeparator(){
debugger;
return ','; return ',';
}, },
localeCurrencySymbol(){ localeCurrencySymbol(){
return 'Eur'; return 'Eur';
}, },
clear(){ clear(){
debugger;
console.log(this.data().obj.dollarAmount2); console.log(this.data().obj.dollarAmount2);
alert(data().obj.dollarAmount2); alert(data().obj.dollarAmount2);
},
test(){
console.log(this.obj.dollarAmount2);
debugger;
} }
} }
}; };