@@ -18,45 +18,45 @@ export default {
1818 props: {
1919 value: {
2020 required: true ,
21- type: [Number , String ],
21+ type: [Number , String ]
2222 },
2323 null_value: {
2424 type: [Number , String ],
25- default : () => options .null_value ,
25+ default : () => options .null_value
2626 },
2727 masked: {
2828 type: Boolean ,
29- default: false ,
29+ default: false
3030 },
3131 precision: {
3232 type: Number ,
33- default : () => options .precision ,
33+ default : () => options .precision
3434 },
3535 decimal: {
3636 type: String ,
37- default : () => options .decimal ,
37+ default : () => options .decimal
3838 },
3939 separator: {
4040 type: String ,
41- default : () => options .separator ,
41+ default : () => options .separator
4242 },
4343 prefix: {
4444 type: String ,
45- default : () => options .prefix ,
45+ default : () => options .prefix
4646 },
4747 suffix: {
4848 type: String ,
49- default : () => options .suffix ,
50- },
49+ default : () => options .suffix
50+ }
5151 },
5252
5353 directives: {
54- number: directive,
54+ number: directive
5555 },
5656
5757 data () {
5858 return {
59- formattedValue: ' ' ,
59+ formattedValue: ' '
6060 }
6161 },
6262
@@ -68,20 +68,20 @@ export default {
6868 // console.log('src/component.vue:watch()', val)
6969 const number = new NumberFormat (this .$props ).clean ()
7070 this .$emit (' input' , this .masked ? this .formattedValue : number .unformat (this .value ))
71- },
72- },
71+ }
72+ }
7373 },
7474
7575 methods: {
7676 change (evt ) {
7777 // console.log('src/component.vue:change()', evt.target.value)
7878 const number = new NumberFormat (this .$props ).clean ()
7979 this .$emit (' input' , this .masked ? number .format (evt .target .value ) : number .unformat (evt .target .value ))
80- },
80+ }
8181 },
8282 mounted () {
8383 // console.log('src/component.vue:created()', this.value)
8484 this .formattedValue = new NumberFormat (this .$props ).format (this .value )
85- },
85+ }
8686}
8787 </script >
0 commit comments