diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-gridrow.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-gridrow.md index 965008662921bdb27f0ab0b67dc9f8497c7b0b3a..328b38f4f2f6b6106312ef4da18a121296b9e26c 100755 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-gridrow.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-container-gridrow.md @@ -43,8 +43,8 @@ GridRow(option?: GridRowOptions) | 名称 |类型|必填|说明| |-----|-----|----|----| |columns| number \| [GridRowColumnOption](#gridrowcolumnoption) | 否 |设置布局列数。
取值为大于0的整数。
- API version 20之前:默认值为12。
- API version 20及之后:默认值为{ xs: 2, sm: 4, md: 8, lg: 12, xl: 12, xxl: 12 }。| -|gutter|[Length](ts-types.md#length) \| [GutterOption](#gutteroption)| 否 |栅格布局间距。
默认值:0 | -|breakpoints|[BreakPoints](#breakpoints)| 否 |设置断点值的断点数列以及基于窗口或容器尺寸的相应参照。
默认值:
{
value: ["320vp", "600vp", "840vp"],
reference: BreakpointsReference.WindowSize
} | +|gutter|[Length](ts-types.md#length) \| [GutterOption](#gutteroption)| 否 |栅格布局间距。
默认值:0
单位:vp | +|breakpoints|[BreakPoints](#breakpoints)| 否 |设置断点值的断点数列以及基于窗口或容器尺寸的相应参照。
默认值:
{
value: ["320vp", "600vp", "840vp"],
reference: BreakpointsReference.WindowSize
}
单位:vp | |direction|[GridRowDirection](#gridrowdirection枚举说明)| 否 |栅格布局排列方向。
默认值:GridRowDirection.Row | ## GutterOption @@ -126,7 +126,7 @@ GridRow(option?: GridRowOptions) | 名称 | 类型 | 必填 | 说明 | | ----- | ------ | ---- | ---------------------------------------- | -| value | Array<string> | 否 | 设置断点位置的单调递增数组。
默认值:["320vp", "600vp", "840vp"] | +| value | Array<string> | 否 | 设置断点位置的单调递增数组。
默认值:["320vp", "600vp", "840vp"]
单位:vp | | reference | [BreakpointsReference](#breakpointsreference枚举说明) | 否 | 断点切换参照物。
默认值:BreakpointsReference.WindowSize | ```ts // 启用xs、sm、md共3个断点 diff --git a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-attributes-expand-safe-area.md b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-attributes-expand-safe-area.md index 72aa592f08fb317e243b0c8a61a978cdf9f267e0..9da84493dce61310a50a60de54ae92a4c737e4d9 100644 --- a/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-attributes-expand-safe-area.md +++ b/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ts-universal-attributes-expand-safe-area.md @@ -104,7 +104,7 @@ getKeyboardAvoidMode(): KeyboardAvoidMode ignoreLayoutSafeArea(types?: Array<LayoutSafeAreaType>, edges?: Array<LayoutSafeAreaEdge>) -控制组件布局时延伸至安全区域。设置ignoreLayoutSafeArea属性可使组件的布局范围扩展至[组件级安全区(safeAreaPadding)](./ts-universal-attributes-size.md#safeareapadding14)和页面级安全区(状态栏、导航栏、挖孔区、软键盘)。依据safeAreaPadding功能,组件能够感知并利用向外累积的邻接可用安全区范围(详见[累计安全区延伸](./ts-universal-attributes-size.md#safeareapadding14)),通过ignoreLayoutSafeArea属性利用该范围进行布局。 +控制组件布局时延伸至安全区域。设置ignoreLayoutSafeArea属性可使组件的布局范围扩展至[组件级安全区(safeAreaPadding)](./ts-universal-attributes-size.md#safeareapadding14)和页面级安全区(状态栏、导航栏、挖孔区)。依据safeAreaPadding功能,组件能够感知并利用向外累积的邻接可用安全区范围(详见[累计安全区延伸](./ts-universal-attributes-size.md#safeareapadding14)),通过ignoreLayoutSafeArea属性利用该范围进行布局。 **原子化服务API:** 从API version 20开始,该接口支持在原子化服务中使用。 @@ -126,6 +126,8 @@ ignoreLayoutSafeArea(types?: Array<LayoutSafeAreaType>, edges?: Array<L > 与[expandSafeArea](#expandsafearea)的区别在于:expandSafeArea仅扩展组件的渲染区域,后代组件不受当前组件expandSafeArea设置的影响;ignoreLayoutSafeArea扩展组件的布局区域,后代组件能够感知当前组件ignoreLayoutSafeArea设置的效果,即后代节点将基于当前组件经过ignoreLayoutSafeArea布局后的实际结果进行布局。具体对比可参考[示例10](#示例10expandsafearea与ignorelayoutsafearea的区别)。 > > 组件使用ignoreLayoutSafeArea能力需依赖容器支持,当前支持子组件ignoreLayoutSafeArea的容器组件包括:[Flex](./ts-container-flex.md)、[Row](./ts-container-row.md)、[Column](./ts-container-column.md)、[Stack](./ts-container-stack.md)、[GridRow](./ts-container-gridrow.md)、[GridCol](./ts-container-gridcol.md)、[RowSplit](./ts-container-rowsplit.md)、[ColumnSplit](./ts-container-columnsplit.md)。 +> +> 和expandSafeArea同时使用时,ignoreLayoutSafeArea的生效优先级高于expandSafeArea。 ## 示例