File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -55,23 +55,32 @@ export default {
55
55
type: [String , Number ],
56
56
required: false
57
57
},
58
-
58
+
59
59
/**
60
60
* Input placeholder.
61
61
*/
62
62
placeholder: {
63
63
type: String ,
64
64
required: false
65
65
},
66
-
66
+
67
+ /**
68
+ * Number of decimals.
69
+ * decimals symbol are the opposite of separator props
70
+ */
71
+ precision: {
72
+ type: [String , Number ]
73
+ required: false
74
+ },
75
+
67
76
/**
68
77
* Minimum value.
69
78
*/
70
79
min: {
71
80
type: [String , Number ],
72
81
required: false
73
82
},
74
-
83
+
75
84
/**
76
85
* Maximum value.
77
86
*/
@@ -87,9 +96,10 @@ export default {
87
96
type: String ,
88
97
required: true
89
98
},
90
-
99
+
91
100
/**
92
101
* Thousand separator type.
102
+ * Separator props accept either . or , (default)
93
103
*/
94
104
separator: {
95
105
type: String ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-numeric" ,
3
- "version" : " 1.2.0 " ,
3
+ "version" : " 1.2.1 " ,
4
4
"description" : " Input field component to display currency value based on Vue." ,
5
5
"author" : " Kevin Ongko" ,
6
6
"main" : " src/vue-numeric.vue" ,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export default {
69
69
70
70
minValue () {
71
71
if (this .min ) return this .formatToNumber (this .min )
72
- return undefined
72
+ return 0
73
73
},
74
74
75
75
maxValue () {
You can’t perform that action at this time.
0 commit comments