Skip to content

Releases: jimengio/meson-form

Early inline-form; Modal footer renderer

12 Jun 08:39
Compare
Choose a tag to compare
  • Support Switch type #22 .
  • Early version of inline form renderer #23 .
  • Add footer renderer in FormModal #25 .

Types related to onChange and inputProps

11 Jun 09:36
Compare
Choose a tag to compare

Support `useImperativeHandle` and form modification on change event

10 Jun 06:24
Compare
Choose a tag to compare
  • Support useImperativeHandle of form component #18
  • Support modifying form with function on change event. #20 Demo http://fe.jimu.io/meson-form/#modify-on-change
  • Transform empty string to undefined for inputs by default. This behavior can be changed by useBlank: true.
  • Added inputProps for Input fields.

Add `hideClose` option in MesonFormModal

29 May 11:00
Compare
Choose a tag to compare
<MesonFormModal
  hideClose={false}

  {...others}
/>

Introducing `useMesonCore`

24 May 10:08
Compare
Choose a tag to compare

Meson core is a hooks API for maintaining form states, see #16 .

let { formAny, errors, onCheckSubmit, checkItem, updateItem, forcelyResetForm } = useMesonCore({
  initialValue: submittedForm,
  items: formItems,
  onSubmit: onSubmit,
});

Usages https://github.com/jimengio/meson-form/blob/master/example/forms/wrap-meson-core.tsx

loose use-immer version

06 May 06:55
Compare
Choose a tag to compare
0.1.11

release 0.1.11

Fix validation problem in normal form

30 Apr 03:24
Compare
Choose a tag to compare

Add `translateNonStringvalue`

29 Apr 10:00
Compare
Choose a tag to compare

translateNonStringvalue tells a select item to translate value into string before passing to antd Select. Otherwise we might got a wrong from antd.

`onCancel` is optional

29 Apr 07:18
Compare
Choose a tag to compare
0.1.8

onCancel is optional; release 0.1.8

Add `submitOnEdit` property

29 Apr 07:08
Compare
Choose a tag to compare
  • Added submitOnEdit to trigger auto save.
  • Added onCheck hook in custom field rendering.