Skip to content

DistillationData

View source on GitHub

Handles the distillation data inputs, such as water used and distillation time.

  • Integrates with Vuex to store form data and manage state updates.

Props

NameTypeRequiredDescription
isFormValidbooleanyesIndicates if the form is valid.
wasSubmittedbooleanyesIndicates if the form was submitted.
isEditingbooleannoIndicates if the form is in editing mode.

Exposed Methods

handleKeyboard()

Handles keyboard events for integer-only input and prevents minus sign.

Parameters:

  • e (KeyboardEvent): The keyboard event.

saveTime()

Saves the distillation time (hours or minutes) to the store.

Parameters:

  • value (string | number): The value to save.
  • key (string): The key for the time field.