Skip to content

StepperContent ​

StepperContent is the left-column panel that houses one ue-form per step and a custom preview slot on the final step. It manages local copies of models and schemas to keep updates reactive without unnecessary re-renders.

NOTE

This is an internal sub-component of ue-stepper-form. You do not use it directly.

Behaviour ​

  • Renders a v-stepper-window-item for each entry in forms, each containing a ue-form bound to the corresponding model and schema.
  • Forms are mounted lazily: a form only renders once activeStep > i (i.e. the user has reached or passed that step).
  • On the final step (value = forms.length + 1) the preview slot is rendered instead of a form.
  • The component keeps internal models and localSchemas clones, syncing them with the parent via watchers and emitting update:modelValue / update:schemas when they change.
  • The scrollable window (#ue-stepper-content-window) respects maxHeight minus coverHeight so full-width steps can offset for the bottom action bar.

Props ​

PropTypeRequiredDefaultDescription
modelValueArrayYes—Array of per-step model objects.
formsArrayYes—The forms array from the parent stepper.
schemasArrayYes[]Array of per-step schema arrays.
activeStepNumberYes—The currently active 1-based step.
formRefsArrayYes—Array of ref handles, one per step, used by the parent for programmatic validation.
isEditingBooleanNofalsePassed to each ue-form to enable edit mode.
maxHeightStringNo'84vh'CSS value for the scrollable window's maximum height.
coverHeightNumberNo0Pixel height to subtract from maxHeight (e.g. bottom action bar height).

Emits ​

EventPayloadDescription
update:modelValueArrayEmitted when any step's model changes.
update:schemasArrayEmitted when any step's schema changes.
form-input{ event, index }Forwarded from each ue-form's input event; index is the 0-based step index.
form-valid{ event, index }Forwarded from each ue-form's update:valid event; event is true/false.

Slots ​

SlotDescription
previewRendered inside the final step's v-stepper-window-item. Used by StepperForm to inject StepperPreview.