From fe81e876b299a93987ef4281c6fe8ac6fbdce5ca Mon Sep 17 00:00:00 2001 From: swx1239486 Date: Mon, 12 Jun 2023 14:26:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AE=BD=E5=BA=A6=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E4=BD=BF=E4=B9=8B=E6=AD=A3=E7=A1=AE=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: swx1239486 --- .../multi-device-app-dev/responsive-layout.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md b/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md index bcf284e7a4..c1052b4ca0 100644 --- a/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md +++ b/zh-cn/application-dev/key-features/multi-device-app-dev/responsive-layout.md @@ -428,7 +428,7 @@ struct GridRowSample3 { gutter: {x: {sm: 8, md: 16, lg: 24}, y: {sm: 8, md: 16, lg: 24}}}) { ForEach(this.bgColors, (bgColor)=>{ GridCol({span: {sm: 2, md: 2, lg: 2}}) { - Row().backgroundColor(bgColor).height(30) + Row().backgroundColor(bgColor).height(30).width('100%') } }) } @@ -461,7 +461,7 @@ struct GridRowSample4 { GridCol({span:{xs: 12, sm: 12, md: 12, lg:12}}) { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { Text("padding").fontSize(24).fontWeight(FontWeight.Medium) - }.backgroundColor('#19000000') + }.backgroundColor('#19000000').width('100%') } } .height(50) @@ -484,7 +484,7 @@ struct GridRowSample4 { GridCol({span:{xs: 12, sm: 12, md: 12, lg:12}}) { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { Text("margin").fontSize(24).fontWeight(FontWeight.Medium) - }.backgroundColor('#19000000') + }.backgroundColor('#19000000').width('100%') } } .height(50) @@ -543,7 +543,7 @@ struct GridRowSample5 { Text('' + item.index).fontSize(24) } .justifyContent(FlexAlign.Center) - .backgroundColor(item.color).height(30) + .backgroundColor(item.color).height(30).width('100%') } }) } @@ -585,7 +585,7 @@ struct GridRowSample6 { Text('' + item.index).fontSize(24) } .justifyContent(FlexAlign.Center) - .backgroundColor(item.color).height(30) + .backgroundColor(item.color).height(30).width('100%') } }) } @@ -627,7 +627,7 @@ struct GridRowSample7 { Text('' + item.index).fontSize(24) } .justifyContent(FlexAlign.Center) - .backgroundColor(item.color).height(30) + .backgroundColor(item.color).height(30).width('100%') } }) } @@ -671,7 +671,7 @@ struct GridRowSample8 { Text('' + item.index).fontSize(24) } .justifyContent(FlexAlign.Center) - .backgroundColor(item.color).height(30) + .backgroundColor(item.color).height(30).width('100%') } }) } @@ -714,7 +714,7 @@ struct GridRowSample9 { Text('' + item.index).fontSize(24) } .justifyContent(FlexAlign.Center) - .backgroundColor(item.color).height(30) + .backgroundColor(item.color).height(30).width('100%') } }) } -- GitLab