This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
Releases: Albert-Gao/veasy
Releases · Albert-Gao/veasy
tag change for VeasyForm
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
Now it matches the VeasyForm
validate(e, schema, allState, update)
Add a `isRequired` rule
isRequired: boolean
- Only affects the
isFormOK
currently, which means when it sets tofalse
, unless the field'sstatus
iserror
, theisFormOK
will ignore its status.
Enhancement
- Expose a
validate()
method, see doc for more information - Add a
isIntOrDecimal
rule
Enhancement
Faster binding now
Publish using new babel settings
v1.3.1 1.3.1
Enhancement
Now the Binding strategy is faster.
With 100% test coverage.
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
- Won’t generate
collectValues
as part of initial state - Fix the
onReset
method
Add a `FieldStatus` for refering the status
No more hard code string,
import { FieldStatus } from 'veasy';
FieldStatus.ok
FieldStatus.error
FieldStatus.normal