tobymosque / app-extension-qdecimal Goto Github PK
View Code? Open in Web Editor NEWQDecimal
QDecimal
Get error:
warning in ./node_modules/quasar-app-extension-qdecimal/src/component/QDecimal.js
"export 'Quasar' was not found in 'quasar'
Will the component be ported to vue3?
When using ',' as decimal separator, could be good if the model can keep '.' as decimal separator because 1,1 is not a number in javascript, you have to handle it as string. Something like the existing "unmasked-value" prop.
I replaced:
<q-input @keydown.tab.prevent="addCard" v-model="ptsCost" color="black" dense label="Card Points"/>
with:
<q-decimal @keydown.tab.prevent="addCard" v-model="ptsCost" color="black" dense label="Card Points"/>
The tab key no longer launches the addCard method
If you enter a number like 21005.34 and realize after that it's incorrect, you are can place the cursor on the two zeros but you are unable to more than a single character, because immediately after editing (say with the backspace key) the cursor jumps to the end of the input and if you edit again you are affected the last character (in the example above it another backspace would delete the 4)
Same occurs if you place the cursor and then attempt to insert multiple digits ... first digit appears in the correct place and subsequent digits appear at the end because the cursor has jumped to the end.
Try entering 21005.34
place the cursor behind second 0
press Backspace twice quickly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.