toggle menu
hooks2
common
switch theme
search in API
hooks2
/
xyz.junerver.compose.hooks.useform
/
FormScope
/
FormItem
Form
Item
@
Composable
fun
<
T
:
Any
>
FormItem
(
name
:
String
,
vararg
validators
:
Validator
,
content
:
@
Composable
(
Triple
<
MutableState
<
T
?
>
,
Boolean
,
List
<
String
>
>
)
->
Unit
)
表单字段容器组件
FormItem Component
Receiver
Parameters
name
validators
content
子组件函数,通过参数提供字段状态、是否通过校验、错误信息列表
T