@splitty-test/validation 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Splitty Test Form Validation
|
|
2
2
|
|
|
3
3
|
This is a validation library for Vue 3 that is both simple but powerful.
|
|
4
4
|
|
|
@@ -108,6 +108,6 @@ export {
|
|
|
108
108
|
Then in the template:
|
|
109
109
|
|
|
110
110
|
```html
|
|
111
|
-
<FieldValidation name="pity" v-model="who_do_i_pity" :validator="myValidator" :rules="myCustomRule">...</FieldVaidation>
|
|
112
|
-
<FieldValidation name="age" v-model="age" :validator="myValidator" :rules="myCustomRuleWithArguments(18, 50)">...</FieldVaidation>
|
|
111
|
+
<FieldValidation name="pity" v-model="who_do_i_pity" :validator="myValidator" :rules="[myCustomRule]">...</FieldVaidation>
|
|
112
|
+
<FieldValidation name="age" v-model="age" :validator="myValidator" :rules="[myCustomRuleWithArguments(18, 50)]">...</FieldVaidation>
|
|
113
113
|
```
|