English | 中文说明
The underlying form component, Binding of form values to display and update events is accomplished through callback functions.
- The css style file needs to be introduced before it can be used, for example:
import '@simpleform/form/lib/css/main.css'
;
The smallest unit of a component in a form, and nodes as an object can be nested within each other.
- Binding: Bind values and events to the target control by means of callback functions.
- Update: Setting the form value can be done through instance methods such as
form.setFieldValue
. - Validation Rules: You can provide form validation rules property
rules
to customize form validation rules.
npm install @simpleform/form --save
# or
yarn add @simpleform/form