Skip to content

Form Render

Introduction

FormRender is the rendering component of vue-form-craft.

Props

NameTypeDefaultDescription
v-modelobject{}Form value
schemaobject——Form Schema configuration, pure JSON, used to describe the form structure
schemaContextobject{}Schema custom linkage variables

Exposes

Methods exposed by the component, called through ref

NameTypeDescription
validate() => PromiseValidate the form
resetFieldsname[] => voidAccepts an array of names, such as ['name','age'], to reset a group of fields to their initial values. If not passed, all fields will be reset
contextobjectLinkage variables of the form