10
10
- Component or Directive flavors
11
11
- Accept copy/paste
12
12
- Editable
13
+ - Min / Max Limits
13
14
14
15
For other types of mask, use [ vue-the-mask] ( https://vuejs-tips.github.io/vue-the-mask )
15
16
@@ -49,7 +50,9 @@ Vue.use(money, {precision: 4})
49
50
prefix: ' R$ ' ,
50
51
suffix: ' #' ,
51
52
precision: 2 ,
52
- masked: false
53
+ masked: false ,
54
+ min: - 1000000000 ,
55
+ max: 1000000000 ,
53
56
}
54
57
}
55
58
}
@@ -79,7 +82,9 @@ Must use `vmodel.lazy` to bind works properly.
79
82
prefix: ' R$ ' ,
80
83
suffix: ' #' ,
81
84
precision: 2 ,
82
- masked: false /* doesn't work with directive */
85
+ masked: false /* doesn't work with directive */ ,
86
+ min: - 1000000000 ,
87
+ max: 1000000000
83
88
}
84
89
}
85
90
},
@@ -91,14 +96,17 @@ Must use `vmodel.lazy` to bind works properly.
91
96
92
97
## Properties
93
98
94
- | property | Required | Type | Default | Description |
95
- | -----------| ----------| ---------| ---------| ---------------------------------------------------------|
96
- | precision | ** true** | Number | 2 | How many decimal places |
97
- | decimal | false | String | "." | Decimal separator |
98
- | thousands | false | String | "," | Thousands separator |
99
- | prefix | false | String | "" | Currency symbol followed by a Space, like "R$ " |
100
- | suffix | false | String | "" | Percentage for example: " %" |
101
- | masked | false | Boolean | false | If the component output should include the mask or not |
99
+ | property | Required | Type | Default | Description |
100
+ | -----------| ----------| ---------| -------------| ---------------------------------------------------------|
101
+ | precision | ** true** | Number | 2 | How many decimal places |
102
+ | precision | ** true** | Number | 2 | How many decimal places |
103
+ | decimal | false | String | "." | Decimal separator |
104
+ | thousands | false | String | "," | Thousands separator |
105
+ | prefix | false | String | "" | Currency symbol followed by a Space, like "R$ " |
106
+ | suffix | false | String | "" | Percentage for example: " %" |
107
+ | masked | false | Boolean | false | If the component output should include the mask or not |
108
+ | min | false | Number | -1000000000 | The min value allowed |
109
+ | max | false | Number | 1000000000 | The max value allowed |
102
110
103
111
### References
104
112
0 commit comments