FormLayout 表单布局
#
使用场景表单布局组件,为上层表单方案提供通用布局能力。
#
示例#
基本用法*
邮箱地址我们不会公开您的邮箱地址。
这是一条错误消息
inline
#
标签位于上方*
邮箱地址我们不会公开您的邮箱地址。
这是一条错误消息
inline
#
没有标签我们不会公开您的邮箱地址。
这是一条错误消息
inline
#
自定义标签宽度inline
#
行内模式inline
#
表单项嵌套inline
#
简单表单布局inline
#
表单项分组inline
#
表单项分组多列展示inline
#
搜索表单布局inline
#
API#
FormLayout字段 | 描述 |
---|---|
inline | boolean 是否行内布局 |
labelPosition | LabelPosition 标签位置 |
labelWidth | string 标签宽度 |
columns | ResponsiveType 布局列数 |
as | any |
style | CSSProperties |
className | string |
m | StringOrNumber |
margin | StringOrNumber |
mt | StringOrNumber |
marginTop | StringOrNumber |
mr | StringOrNumber |
marginRight | StringOrNumber |
mb | StringOrNumber |
marginBottom | StringOrNumber |
ml | StringOrNumber |
marginLeft | StringOrNumber |
mx | StringOrNumber |
marginX | StringOrNumber |
my | StringOrNumber |
marginY | StringOrNumber |
p | StringOrNumber |
padding | StringOrNumber |
pt | StringOrNumber |
paddingTop | StringOrNumber |
pr | StringOrNumber |
paddingRight | StringOrNumber |
pb | StringOrNumber |
paddingBottom | StringOrNumber |
pl | StringOrNumber |
paddingLeft | StringOrNumber |
px | StringOrNumber |
paddingX | StringOrNumber |
py | StringOrNumber |
paddingY | StringOrNumber |
color | Color |
bg | Color |
backgroundColor | Color |
opacity | Opacity |
width | StringOrNumber |
minWidth | StringOrNumber |
maxWidth | StringOrNumber |
height | StringOrNumber |
minHeight | StringOrNumber |
maxHeight | StringOrNumber |
size | StringOrNumber |
display | Display |
verticalAlign | VerticalAlign<0 | (string & {})> |
overflow | Overflow |
overflowX | OverflowX |
overflowY | OverflowY |
fontFamily | FontFamily |
fontStyle | FontStyle |
letterSpacing | LetterSpacing<0 | (string & {})> |
textAlign | TextAlign |
fontSize | string |
fontWeight | FontWeight |
lineHeight | StringOrNumber |
alignItems | AlignItems |
alignContent | AlignContent |
justifyItems | JustifyItems |
justifyContent | JustifyContent |
flexWrap | FlexWrap |
flexDirection | FlexDirection |
flex | Flex<Length> |
flexGrow | FlexGrow |
flexShrink | FlexShrink |
flexBasis | FlexBasis<Length> |
justifySelf | JustifySelf |
alignSelf | AlignSelf |
order | Order |
gridGap | GridGap<Length> |
gridRowGap | GridRowGap<Length> |
gridColumnGap | GridColumnGap<Length> |
gridColumn | GridColumn |
gridColumnStart | GridColumnStart |
gridColumnEnd | GridColumnEnd |
gridRow | GridRow |
gridRowStart | GridRowStart |
gridRowEnd | GridRowEnd |
gridArea | GridArea |
gridTemplateRows | GridTemplateRows<0 | (string & {})> |
gridTemplateColumns | GridTemplateColumns<0 | (string & {})> |
gridTemplateAreas | GridTemplateAreas |
border | string |
borderTop | string |
borderRight | string |
borderBottom | string |
borderLeft | string |
borderWidth | StringOrNumber |
borderColor | Color |
borderTopColor | Color |
borderRightColor | Color |
borderBottomColor | Color |
borderLeftColor | Color |
borderRadius | string |
position | Position |
zIndex | ZIndex |
top | string |
right | string |
bottom | string |
left | string |
boxShadow | BoxShadow |
textShadow | TextShadow |
#
FormControl字段 | 描述 |
---|---|
label | ReactNode 字段名 |
labelWidth | string 标签宽度,仅在 水平排布 时生效 |
labelPosition | "top" | "left" 标签位置 |
labelTips | ReactNode 字段名提示信息或解释信息 |
help | ReactNode 附加提示文本 |
error | string | string[] 错误消息 |
required | boolean 是否显示必选标记 |
inline | boolean 是否行内模式 |
#
FieldSet字段 | 描述 |
---|---|
title | ReactNode 分组标题 |
columns | ResponsiveType 列数 |
size | StringOrNumber |
p | StringOrNumber |
style | CSSProperties |
className | string |
color | Color |
width | StringOrNumber |
flexDirection | FlexDirection |
top | string |
bottom | string |
right | string |
left | string |
as | any |
m | StringOrNumber |
margin | StringOrNumber |
mt | StringOrNumber |
marginTop | StringOrNumber |
mr | StringOrNumber |
marginRight | StringOrNumber |
mb | StringOrNumber |
marginBottom | StringOrNumber |
ml | StringOrNumber |
marginLeft | StringOrNumber |
mx | StringOrNumber |
marginX | StringOrNumber |
my | StringOrNumber |
marginY | StringOrNumber |
padding | StringOrNumber |
pt | StringOrNumber |
paddingTop | StringOrNumber |
pr | StringOrNumber |
paddingRight | StringOrNumber |
pb | StringOrNumber |
paddingBottom | StringOrNumber |
pl | StringOrNumber |
paddingLeft | StringOrNumber |
px | StringOrNumber |
paddingX | StringOrNumber |
py | StringOrNumber |
paddingY | StringOrNumber |
bg | Color |
backgroundColor | Color |
opacity | Opacity |
minWidth | StringOrNumber |
maxWidth | StringOrNumber |
height | StringOrNumber |
minHeight | StringOrNumber |
maxHeight | StringOrNumber |
display | Display |
verticalAlign | VerticalAlign<0 | (string & {})> |
overflow | Overflow |
overflowX | OverflowX |
overflowY | OverflowY |
fontFamily | FontFamily |
fontStyle | FontStyle |
letterSpacing | LetterSpacing<0 | (string & {})> |
textAlign | TextAlign |
fontSize | string |
fontWeight | FontWeight |
lineHeight | StringOrNumber |
alignItems | AlignItems |
alignContent | AlignContent |
justifyItems | JustifyItems |
justifyContent | JustifyContent |
flexWrap | FlexWrap |
flex | Flex<Length> |
flexGrow | FlexGrow |
flexShrink | FlexShrink |
flexBasis | FlexBasis<Length> |
justifySelf | JustifySelf |
alignSelf | AlignSelf |
order | Order |
gridGap | GridGap<Length> |
gridRowGap | GridRowGap<Length> |
gridColumnGap | GridColumnGap<Length> |
gridColumn | GridColumn |
gridColumnStart | GridColumnStart |
gridColumnEnd | GridColumnEnd |
gridRow | GridRow |
gridRowStart | GridRowStart |
gridRowEnd | GridRowEnd |
gridArea | GridArea |
gridTemplateRows | GridTemplateRows<0 | (string & {})> |
gridTemplateColumns | GridTemplateColumns<0 | (string & {})> |
gridTemplateAreas | GridTemplateAreas |
border | string |
borderTop | string |
borderRight | string |
borderBottom | string |
borderLeft | string |
borderWidth | StringOrNumber |
borderColor | Color |
borderTopColor | Color |
borderRightColor | Color |
borderBottomColor | Color |
borderLeftColor | Color |
borderRadius | string |
position | Position |
zIndex | ZIndex |
boxShadow | BoxShadow |
textShadow | TextShadow |