表单内容项
Properties:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
Object | 组件属性,内容如下
Properties
|
Examples
组件引入
// 全局模块引入
import { FormItem } from '@ccreator/smart-ui';
// 最小化模块引入
import FormItem from '@ccreator/smart-ui/dist/FormItem';
使用示例
<FormItem
label="姓名"
colspan={6}
labelWidth={100}
required
>
<Input value={user.name} onChange={(value) => setUser({ ...user, name: value })}/>
</FormItem>