未验证 提交 b93178b2 编写于 作者: O openharmony_ci 提交者: Gitee

!6498 【轻量级 PR】:update...

!6498 【轻量级 PR】:update zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-layout-constraints.md.
Merge pull request !6498 from weiyu/N/A
......@@ -77,7 +77,7 @@ struct AspectRatioExample {
**图2** 横屏显示<br>
![zh-cn_image_0000001174264382](figures/zh-cn_image_0000001174264382.gif)
```
```ts
class ContainerInfo {
label : string = ''
size : string = ''
......@@ -94,13 +94,15 @@ struct DisplayPriorityExample {
private container : ContainerInfo[] = [
{label: 'Big container', size: '90%'},
{label: 'Middle container', size: '50%'},
{label: 'Small container', size: '30%'}]
{label: 'Small container', size: '30%'}
]
private children : ChildInfo[] = [
{text: '1\n(priority:2)', priority: 2},
{text: '2\n(priority:1)', priority: 1},
{text: '3\n(priority:3)', priority: 3},
{text: '4\n(priority:1)', priority: 1},
{text: '5\n(priority:2)', priority: 2}]
{text: '5\n(priority:2)', priority: 2}
]
@State currentIndex : number = 0
build() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册