1
0
mirror of synced 2024-11-22 13:26:06 +03:00

chore: Code comments

This commit is contained in:
Zaytsev Kirill 2020-10-23 13:37:51 +03:00
parent cd248b7678
commit 89d99cccc7

View File

@ -31,7 +31,9 @@ export default class FormularioForm extends Vue {
@Model('input', { default: () => ({}) }) @Model('input', { default: () => ({}) })
public readonly formularioValue!: Record<string, any> public readonly formularioValue!: Record<string, any>
// Errors record, describing state validation errors of whole form
@Prop({ default: () => ({}) }) readonly errors!: Record<string, any> @Prop({ default: () => ({}) }) readonly errors!: Record<string, any>
// Form errors only used on FormularioForm default slot
@Prop({ default: () => ([]) }) readonly formErrors!: string[] @Prop({ default: () => ([]) }) readonly formErrors!: string[]
@Provide() @Provide()
@ -42,6 +44,7 @@ export default class FormularioForm extends Vue {
registry: Registry = new Registry(this) registry: Registry = new Registry(this)
private errorObserverRegistry = new ErrorObserverRegistry() private errorObserverRegistry = new ErrorObserverRegistry()
// Local error messages are temporal, they wiped each resetValidation call
private localFormErrors: string[] = [] private localFormErrors: string[] = []
private localFieldErrors: Record<string, string[]> = {} private localFieldErrors: Record<string, string[]> = {}