Grid栅格
Examples
Grid API#
Row API#
属性 | 描述 | 类型 | 默认值 |
---|---|---|---|
ChildContent | 属性行的内容,一般包含Col 元素。 |
RenderFragment | -- |
Type | 属性Currently unused | String | -- |
Align | 属性flex 布局的垂直对齐方式:'top' | '中间' | '底部' | String | -- |
Justify | 属性flex 布局的水平对齐:'start' | '结束' | '中心' | '空间周围' | “间隔” | String | -- |
Wrap | 属性是否允许行的内容换行 | Boolean | true |
Gutter | 属性网格之间的间距,可以是数字或字典,如 { xs: 8, sm: 16, md: 24 } ,一个数组,使水平和垂直间距同时起作用 [水平,垂直] |
OneOf<Int32, Dictionary<String, Int32>, ValueTuple<Int32, Int32>, ValueTuple<Dictionary<String, Int32>, Int32>, ValueTuple<Int32, Dictionary<String, Int32>>, ValueTuple<Dictionary<String, Int32>, Dictionary<String, Int32>>> | -- |
OnBreakpoint | 属性触发屏幕尺寸断点时执行的回调 | EventCallback<BreakpointType> | -- |
DefaultBreakpoint | 属性默认屏幕尺寸断点。用于在预渲染期间设置装订线 | BreakpointType? | -- |
Id | 属性组件 HTML 的 ID | String | Uniquely Generated ID |
Class | 属性为 DOM 元素指定一个或多个类名。 | String | -- |
Style | 属性指定 DOM 元素的内联样式。 | String | -- |
RefBack | 属性一个 ForwardRef 实例。您可以使用 AntDesign.ForwardRef.Current 获取对内部 DOM 的引用。 |
ForwardRef | -- |
Col API#
属性 | 描述 | 类型 | 默认值 |
---|---|---|---|
ChildContent | 属性专栏内容 | RenderFragment | -- |
Flex | 属性是否使用弹性模式。如果为 null,则不会使用 flex 模式。 | OneOf<String, Int32> | -- |
Span | 属性柱宽 | OneOf<String, Int32> | -- |
Order | 属性Col的顺序,用于flex模式 | OneOf<String, Int32> | -- |
Offset | 属性从左侧偏移 Col 的 Cols 数 | OneOf<String, Int32> | -- |
Push | 属性将 Col 向右推的 Cols 数量 | OneOf<String, Int32> | -- |
Pull | 属性将 Col 向左拉的 Cols 数量 | OneOf<String, Int32> | -- |
Xs | 属性<576px 网格列 | OneOf<Int32, EmbeddedProperty> | -- |
Sm | 属性≥576px 网格列 | OneOf<Int32, EmbeddedProperty> | -- |
Md | 属性≥768px 网格列 | OneOf<Int32, EmbeddedProperty> | -- |
Lg | 属性≥992px 网格列 | OneOf<Int32, EmbeddedProperty> | -- |
Xl | 属性≥1200px 列的网格 | OneOf<Int32, EmbeddedProperty> | -- |
Xxl | 属性≥1600px 列的网格 | OneOf<Int32, EmbeddedProperty> | -- |
Id | 属性组件 HTML 的 ID | String | Uniquely Generated ID |
Class | 属性为 DOM 元素指定一个或多个类名。 | String | -- |
Style | 属性指定 DOM 元素的内联样式。 | String | -- |
RefBack | 属性一个 ForwardRef 实例。您可以使用 AntDesign.ForwardRef.Current 获取对内部 DOM 的引用。 |
ForwardRef | -- |
EmbeddedProperty API#
属性 | 描述 | 类型 | 默认值 |
---|---|---|---|
Span | 柱宽 | OneOf<String, Int32> | -- |
Pull | 将 Col 向左拉的 Cols 数量 | OneOf<String, Int32> | -- |
Push | 将 Col 向右推的 Cols 数量 | OneOf<String, Int32> | -- |
Offset | 从左侧偏移 Col 的 Cols 数 | OneOf<String, Int32> | -- |
Order | Col的顺序,用于flex模式 | OneOf<String, Int32> | -- |