File tree Expand file tree Collapse file tree 3 files changed +30
-5
lines changed
docs/.vuepress/components Expand file tree Collapse file tree 3 files changed +30
-5
lines changed Original file line number Diff line number Diff line change 1919 </q-field >
2020 <div >Model value: <span class =" text-bold" >{{price}}</span ></div >
2121 </div >
22+ <div class =" column" >
23+ <div class =" text-h6" >Reverse Fill</div >
24+ <q-field
25+ :dark =" false"
26+ dense
27+ outlined
28+ >
29+ <template v-slot :control >
30+ <number
31+ class =" q-field__input"
32+ v-model =" reverseFill"
33+ v-bind =" configReverseFill"
34+ />
35+ </template >
36+ </q-field >
37+ <div >Model value: <span class =" text-bold" >{{reverseFill}}</span ></div >
38+ </div >
2239 <div class =" column" >
2340 <div class =" text-h6" >Directive</div >
2441 <q-field
@@ -79,6 +96,15 @@ export default {
7996 precision: 2 ,
8097 null_value: ' ' ,
8198 masked: false
99+ },
100+ reverseFill: 6789.10 ,
101+ configReverseFill: {
102+ decimal: ' ,' ,
103+ separator: ' .' ,
104+ prefix: ' $' ,
105+ precision: 2 ,
106+ null_value: ' ' ,
107+ reverseFill: true
82108 }
83109 }
84110 }
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ export default {
2828 type: Boolean ,
2929 default: false
3030 },
31+ reverseFill: {
32+ type: Boolean ,
33+ default: options .reverseFill
34+ },
3135 precision: {
3236 type: Number ,
3337 default : () => options .precision
Original file line number Diff line number Diff line change @@ -25,11 +25,6 @@ export default {
2525 handlerOwner . addEventListener ( 'input' , oninput , true )
2626
2727 el . onblur = ( e ) => core . blurHandler ( e )
28- el . onclick = ( { target } ) => {
29- const { selectionStart, value } = target
30- if ( config . suffix . length && ( value . length - selectionStart ) < config . suffix . length ) core . updateCursor ( el , el . value . length - config . suffix . length )
31- else if ( config . prefix . length && selectionStart < config . prefix . length ) core . updateCursor ( el , config . prefix . length )
32- }
3328
3429 // check decimal key and insert to current element
3530 // updated cursor position after format the value
You can’t perform that action at this time.
0 commit comments