Releases: jimengio/meson-form
Releases · jimengio/meson-form
Early inline-form; Modal footer renderer
Types related to onChange and inputProps
Details #21 .
Support `useImperativeHandle` and form modification on change event
- 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
<MesonFormModal
hideClose={false}
{...others}
/>
Introducing `useMesonCore`
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
0.1.11 release 0.1.11
Fix validation problem in normal form
0.1.10 release 0.1.10
Add `translateNonStringvalue`
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
0.1.8 onCancel is optional; release 0.1.8
Add `submitOnEdit` property
- Added
submitOnEdit
to trigger auto save. - Added
onCheck
hook in custom field rendering.