Skip to content

Commit f139743

Browse files
committed
export form and field
1 parent daf1000 commit f139743

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
export { default as ValidationForm } from './components/ValidationForm.vue'
2+
export { default as ValidationField } from './components/ValidationField.vue'
13
export type { Messages, Rule, Options } from './types'
24
export { locale, messages, setLocale, setMessages } from './options'
35
export { createValidation } from './plugin'
46
export { useForm } from './useForm'
5-
6-
// export const test = 'hello';

lib/rules/requiredIf.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { Rule } from '../types'
22

33
export function requiredIf(): Rule {
4-
// path: string,
5-
// mode: 'in' | 'notIn' | 'eq' | 'less' | 'greater' | 'between' | 'notBetween',
6-
// value: any
4+
// path: string,
5+
// mode: 'in' | 'notIn' | 'eq' | 'less' | 'greater' | 'between' | 'notBetween',
6+
// value: any
77
return {
88
name: 'required',
99
validate: (/*{ value: fieldValue }*/) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kolirt/vue-validation-kit",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"type": "module",
55
"description": "A lightweight, Laravel-inspired validation package for Vue 3",
66
"author": "kolirt",

0 commit comments

Comments
 (0)