From 2147750aae009f64fa35fb12ba7316c2c7c40af6 Mon Sep 17 00:00:00 2001 From: wanggucoe Date: Fri, 27 Sep 2024 16:06:16 +0800 Subject: [PATCH] =?UTF-8?q?demo=E5=9B=BD=E9=99=85=E5=8C=96=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wanggucoe --- .../src/main/ets/pages/AspectRatioSample.ets | 4 ++-- entry/src/main/ets/pages/NestedSample.ets | 6 +++--- .../main/resources/base/element/string.json | 20 +++++++++++++++++++ .../main/resources/en_US/element/string.json | 20 +++++++++++++++++++ .../main/resources/zh_CN/element/string.json | 20 +++++++++++++++++++ 5 files changed, 65 insertions(+), 5 deletions(-) diff --git a/entry/src/main/ets/pages/AspectRatioSample.ets b/entry/src/main/ets/pages/AspectRatioSample.ets index 5c2f3c0..5e6681f 100644 --- a/entry/src/main/ets/pages/AspectRatioSample.ets +++ b/entry/src/main/ets/pages/AspectRatioSample.ets @@ -85,7 +85,7 @@ struct AspectRatioSample { Scroll() { Column() { Text().visibility(this.isVisibility ? Visibility.None : Visibility.Visible) - Text('GRID_LAYOUT的单行纵横比:').width('100%').backgroundColor('#AAAAAA') + Text($r('app.string.single_line_aspect_ratio_grid')).width('100%').backgroundColor('#AAAAAA') GRID_LAYOUT({ vLayoutContent: (item: layoutDataType, position: number | undefined, gridItemHeight: number | undefined) => { @@ -137,7 +137,7 @@ struct AspectRatioSample { } }) - Text('RANGEGRID_LAYOUT的单行纵横比:').width('100%') + Text($r('app.string.single_line_aspect_ratio_rangegrid')).width('100%') RANGEGRID_LAYOUT({ vLayoutContent: (item: layoutDataType, position: number | undefined, gridItemHeight: number | undefined) => { diff --git a/entry/src/main/ets/pages/NestedSample.ets b/entry/src/main/ets/pages/NestedSample.ets index 7b2bbe1..891d10b 100644 --- a/entry/src/main/ets/pages/NestedSample.ets +++ b/entry/src/main/ets/pages/NestedSample.ets @@ -183,7 +183,7 @@ struct NestedSample { Scroll() { Column() { Text().visibility(this.isVisibility ? Visibility.None : Visibility.Visible) - Text('GRID_LAYOUT嵌套ONEN_LAYOUT:').width('100%') + Text($r('app.string.grid_nested_onen')).width('100%') GRID_LAYOUT({ vLayoutContent: (item: layoutDataType, position: number | undefined) => { @@ -200,7 +200,7 @@ struct NestedSample { } }) - Text('GRID_LAYOUT嵌套ONEN_LAYOUT(可内部滑动):').width('100%') + Text($r('app.string.grid_nested_onen_slide')).width('100%') GRID_LAYOUT({ vLayoutContent: (item: layoutDataType, position: number | undefined) => { @@ -220,7 +220,7 @@ struct NestedSample { } }) - Text('GRID_LAYOUT嵌套BANNER_LAYOUT(可内部滑动):').width('100%') + Text($r('app.string.grid_nested_banner_slide')).width('100%') GRID_LAYOUT({ vLayoutContent: (item: layoutDataType, position: number | undefined) => { diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index c81b863..5c0ccbf 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -19,6 +19,26 @@ { "name": "use_of_colsSpan", "value": "GRID_LAYOUT的colsSpan使用(可内部滑动):" + }, + { + "name": "single_line_aspect_ratio_grid", + "value": "GRID_LAYOUT的单行纵横比" + }, + { + "name": "single_line_aspect_ratio_rangegrid", + "value": "RANGEGRID_LAYOUT的单行纵横比" + }, + { + "name": "grid_nested_onen", + "value": "GRID_LAYOUT嵌套ONEN_LAYOUT" + }, + { + "name": "grid_nested_onen_slide", + "value": "GRID_LAYOUT嵌套ONEN_LAYOUT(可内部滑动):" + }, + { + "name": "grid_nested_banner_slide", + "value": "GRID_LAYOUT嵌套BANNER_LAYOUT(可内部滑动):" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index aac88ce..5972b7b 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -19,6 +19,26 @@ { "name": "use_of_colsSpan", "value": "Use of colsSpan for GRID_LAYOUT (can slide internally):" + }, + { + "name": "single_line_aspect_ratio_grid", + "value": "Single line aspect ratio of GRID_LAYOUT" + }, + { + "name": "single_line_aspect_ratio_rangegrid", + "value": "Single line aspect ratio of RANGEGRID_LAYOUT" + }, + { + "name": "grid_nested_onen", + "value": "Grid_LAYOUT nested ONEN_LAYOUT" + }, + { + "name": "grid_nested_onen_slide", + "value": "GRID_LAYOUT nested ONEN_LAYOUT (can slide internally):" + }, + { + "name": "grid_nested_banner_slide", + "value": "GRID_LAYOUT nested BANNER_LAYOUT (can slide internally):" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index b9684eb..f269f4d 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -19,6 +19,26 @@ { "name": "use_of_colsSpan", "value": "GRID_LAYOUT的colsSpan使用(可内部滑动):" + }, + { + "name": "single_line_aspect_ratio_grid", + "value": "GRID_LAYOUT的单行纵横比" + }, + { + "name": "single_line_aspect_ratio_rangegrid", + "value": "RANGEGRID_LAYOUT的单行纵横比" + }, + { + "name": "grid_nested_onen", + "value": "GRID_LAYOUT嵌套ONEN_LAYOUT" + }, + { + "name": "grid_nested_onen_slide", + "value": "GRID_LAYOUT嵌套ONEN_LAYOUT(可内部滑动):" + }, + { + "name": "grid_nested_banner_slide", + "value": "GRID_LAYOUT嵌套BANNER_LAYOUT(可内部滑动):" } ] } \ No newline at end of file -- Gitee