awesome-mask
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -47,2 +47,5 @@ 'use strict'; | ||
// this is only for v-model | ||
if (binding.value === 'money') { | ||
return; | ||
} | ||
if (binding.value.length < 1) return; | ||
@@ -49,0 +52,0 @@ el.dataset.mask = binding.value; |
{ | ||
"name": "awesome-mask", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "An awesome mask directive for Vue.js using vanilla-masker from `https://github.com/BankFacil/vanilla-masker`", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,4 +18,2 @@ The awesome-mask runs with `Vue.js` and uses the `vanilla-masker` to make your form awesome with masks. | ||
```vue | ||
@@ -26,3 +24,9 @@ <input type="text" v-mask="'AAA-9999'" /> | ||
You can also format money: | ||
```vue | ||
<input type="text" v-mask="'money'" /> | ||
// Turns 123499 in 1.234,99 | ||
``` | ||
This directive can also receive a object from your `data` like: | ||
@@ -29,0 +33,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7435
100
70