Skip to content

2.0.1

Choose a tag to compare

@junerver junerver released this 31 Jul 02:50
· 327 commits to master since this release
  • Added a function to get the validation State in FormScope: FormInstance._isValidated(): State<Boolean>
  • Top-level function useForm is deprecated, now you need to use Form.useForm
  • Add new hook: Form.useWatch, with this hook, you can observe the specified field outside of FormScope as a read-only state
  • Add new hook: Form.useFormInstance, with this hook, you can get FormInstance in any child component under FormScope
  • Add new hook: useBiometric,through this hook you can conveniently use biometric, such as fingerprints
  • Fix useEvent, fix the issue that the subscription function throws a ClassCastException after upgrading to Kotlin 2.0.0 #24

  • FormScope 中添加获取表单校验状态( State )的函数:FormInstance._isValidated(): State<Boolean>
  • 顶级函数 useForm 已弃用,现在需要使用 Form.useForm
  • 增加新钩子:Form.useWatch,通过此钩子,您可以将 FormScope 之外的指定字段作为只读状态进行观察
  • 增加新钩子:Form.useFormInstance,通过此钩子,您可以在 FormScope 下的任何子组件中获取 FormInstance
  • 增加新钩子:useBiometric,通过此钩子您可以方便地使用生物识别,例如指纹
  • 修复 useEvent,修复升级到 Kotlin 2.0.0 后订阅函数抛出 ClassCastException 的问题 #24