Refactor
parent
ed343909db
commit
4699766152
|
@ -43,7 +43,7 @@ import DynamicFormSubmit from './dynamic/DynamicFormSubmit.vue';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userNameSchema: z.string().min(1, { message: 'Username is required' }),
|
userNameSchema: z.string().min(1, { message: 'Username is required.' }),
|
||||||
passwordSchema: z
|
passwordSchema: z
|
||||||
.string()
|
.string()
|
||||||
.min(3, { message: 'Password must be at least 3 characters long.' })
|
.min(3, { message: 'Password must be at least 3 characters long.' })
|
||||||
|
@ -66,7 +66,7 @@ export default {
|
||||||
label: 'Username',
|
label: 'Username',
|
||||||
defaultValue: 'PrimeVue',
|
defaultValue: 'PrimeVue',
|
||||||
fluid: true,
|
fluid: true,
|
||||||
schema: z.string().min(1, { message: 'Username is required' })
|
schema: z.string().min(1, { message: 'Username is required.' })
|
||||||
},
|
},
|
||||||
password: {
|
password: {
|
||||||
groupId: 'passId_2',
|
groupId: 'passId_2',
|
||||||
|
@ -159,7 +159,7 @@ import DynamicFormSubmit from './dynamic/DynamicFormSubmit.vue';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userNameSchema: z.string().min(1, { message: 'Username is required' }),
|
userNameSchema: z.string().min(1, { message: 'Username is required.' }),
|
||||||
passwordSchema: z
|
passwordSchema: z
|
||||||
.string()
|
.string()
|
||||||
.min(3, { message: 'Password must be at least 3 characters long.' })
|
.min(3, { message: 'Password must be at least 3 characters long.' })
|
||||||
|
@ -182,7 +182,7 @@ export default {
|
||||||
label: 'Username',
|
label: 'Username',
|
||||||
defaultValue: 'PrimeVue',
|
defaultValue: 'PrimeVue',
|
||||||
fluid: true,
|
fluid: true,
|
||||||
schema: z.string().min(1, { message: 'Username is required' })
|
schema: z.string().min(1, { message: 'Username is required.' })
|
||||||
},
|
},
|
||||||
password: {
|
password: {
|
||||||
groupId: 'passId_2',
|
groupId: 'passId_2',
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default {
|
||||||
},
|
},
|
||||||
resolver: zodResolver(
|
resolver: zodResolver(
|
||||||
z.object({
|
z.object({
|
||||||
username: z.string().min(1, { message: 'Username is required' })
|
username: z.string().min(1, { message: 'Username is required.' })
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
code: {
|
code: {
|
||||||
|
@ -64,7 +64,7 @@ export default {
|
||||||
},
|
},
|
||||||
resolver: zodResolver(
|
resolver: zodResolver(
|
||||||
z.object({
|
z.object({
|
||||||
username: z.string().min(1, { message: 'Username is required' })
|
username: z.string().min(1, { message: 'Username is required.' })
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,7 +35,7 @@ export default {
|
||||||
},
|
},
|
||||||
resolver: zodResolver(
|
resolver: zodResolver(
|
||||||
z.object({
|
z.object({
|
||||||
username: z.string().min(1, { message: 'Username is required' }),
|
username: z.string().min(1, { message: 'Username is required.' }),
|
||||||
password: z
|
password: z
|
||||||
.string()
|
.string()
|
||||||
.min(3, { message: 'Password must be at least 3 characters long.' })
|
.min(3, { message: 'Password must be at least 3 characters long.' })
|
||||||
|
@ -101,7 +101,7 @@ export default {
|
||||||
},
|
},
|
||||||
resolver: zodResolver(
|
resolver: zodResolver(
|
||||||
z.object({
|
z.object({
|
||||||
username: z.string().min(1, { message: 'Username is required' }),
|
username: z.string().min(1, { message: 'Username is required.' }),
|
||||||
password: z
|
password: z
|
||||||
.string()
|
.string()
|
||||||
.min(3, { message: 'Password must be at least 3 characters long.' })
|
.min(3, { message: 'Password must be at least 3 characters long.' })
|
||||||
|
|
Loading…
Reference in New Issue