-
-
Save parzibyte/03080185993239146ffeb50eccd90b3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data: () => { | |
const datos = { | |
reglas: { | |
tipoEtiqueta: [ | |
(tipoEtiqueta) => { | |
if (!datos.lista.incluyeForrado) { | |
return true; | |
} | |
if (!tipoEtiqueta) { | |
return "Ingresa el tipo de etiqueta"; | |
} | |
return true; | |
}, | |
], | |
nombre: [ | |
(nombre) => { | |
if (!nombre) { | |
return "Ingresa el nombre"; | |
} | |
return true; | |
}, | |
], | |
grupo: [ | |
(grupo) => { | |
if (!grupo) { | |
return "Ingresa el grupo"; | |
} | |
return true; | |
}, | |
], | |
grado: [ | |
(grado) => { | |
if (!grado) { | |
return "Ingresa el grado"; | |
} | |
return true; | |
}, | |
], | |
escuela: [ | |
(escuela) => { | |
if (!escuela) { | |
return "Ingresa la escuela"; | |
} | |
return true; | |
}, | |
], | |
contacto: [ | |
(contacto) => { | |
if (!contacto) { | |
return "Ingresa el contacto"; | |
} | |
return true; | |
}, | |
], | |
}, | |
lista: { | |
incluyeForrado: false, | |
tipoEtiqueta: "", | |
alumno: { | |
nombre: "", | |
grado: "", | |
grupo: "", | |
escuela: "", | |
contacto: "", | |
}, | |
}, | |
}; | |
return datos; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment