@@ -17,53 +17,55 @@ import options from './options'
1717export default {
1818 props: {
1919 modelValue: {
20- required: true
20+ required: true ,
2121 },
2222 nullValue: {
2323 type: [Number , String ],
24- default : () => options .nullValue
24+ default : () => options .nullValue ,
2525 },
2626 masked: {
2727 type: Boolean ,
28- default: false
28+ default: false ,
2929 },
3030 reverseFill: {
3131 type: Boolean ,
32- default: options .reverseFill
32+ default: options .reverseFill ,
3333 },
3434 precision: {
3535 type: Number ,
36- default : () => options .precision
36+ default : () => options .precision ,
3737 },
3838 minimumFractionDigits: {
3939 type: [Number , Boolean ],
40- default : () => options .minimumFractionDigits
40+ default : () => options .minimumFractionDigits ,
4141 },
42+ max: [Number , Boolean , String ],
43+ min: [Number , Boolean , String ],
4244 decimal: {
4345 type: String ,
44- default : () => options .decimal
46+ default : () => options .decimal ,
4547 },
4648 separator: {
4749 type: String ,
48- default : () => options .separator
50+ default : () => options .separator ,
4951 },
5052 prefix: {
5153 type: String ,
52- default : () => options .prefix
54+ default : () => options .prefix ,
5355 },
5456 suffix: {
5557 type: String ,
56- default : () => options .suffix
57- }
58+ default : () => options .suffix ,
59+ },
5860 },
5961 directives: {
60- number: directive
62+ number: directive,
6163 },
62- emits: [' update:modelValue' ,' input:modelValue' ],
64+ emits: [' update:modelValue' , ' input:modelValue' ],
6365 data () {
6466 return {
6567 maskedValue: this .modelValue ,
66- unmaskedValue: null
68+ unmaskedValue: null ,
6769 }
6870 },
6971 methods: {
@@ -74,22 +76,22 @@ export default {
7476 },
7577 change () {
7678 this .$emit (' update:modelValue' , this .emittedValue )
77- }
79+ },
7880 },
7981 computed: {
8082 emittedValue () {
8183 return this .masked ? this .maskedValue : this .unmaskedValue
8284 },
8385 config () {
8486 return this .$props
85- }
87+ },
8688 },
8789 watch: {
88- modelValue (val ) {
90+ modelValue (val ) {
8991 if (this .unmaskedValue !== val) {
9092 this .maskedValue = val
9193 }
92- }
94+ },
9395 },
9496}
9597 </script >
0 commit comments