Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Releases: Albert-Gao/veasy

tag change for VeasyForm

03 Nov 02:32
Compare
Choose a tag to compare

Now you could give VeasyForm a tag prop to change its final rendering from form to div or whatever you want.

Change the signature of `validate` method

30 Oct 01:16
Compare
Choose a tag to compare

Now it matches the VeasyForm

validate(e, schema, allState, update)

Add a `isRequired` rule

29 Oct 10:49
Compare
Choose a tag to compare

isRequired: boolean

  • Only affects the isFormOK currently, which means when it sets to false, unless the field's status is error, the isFormOK will ignore its status.

Enhancement

29 Oct 10:25
Compare
Choose a tag to compare
  • Expose a validate() method, see doc for more information
  • Add a isIntOrDecimal rule

Enhancement

28 Oct 10:38
Compare
Choose a tag to compare

Faster binding now

Publish using new babel settings

28 Oct 10:33
Compare
Choose a tag to compare

Enhancement

28 Oct 10:21
Compare
Choose a tag to compare

Now the Binding strategy is faster.
With 100% test coverage.

Fix

28 Oct 07:27
Compare
Choose a tag to compare
Fix

Now the VeasyForm could handle non-react element when binding
add onChange for field binding, since the bubble solution needs a little bit tricky, so following the react's rule now.

Fix

26 Oct 13:22
Compare
Choose a tag to compare
Fix
  1. Won’t generate collectValues as part of initial state
  2. Fix the onReset method

Add a `FieldStatus` for refering the status

26 Oct 12:17
Compare
Choose a tag to compare

No more hard code string,

import { FieldStatus } from 'veasy';

FieldStatus.ok
FieldStatus.error
FieldStatus.normal