1import { 2 memo, 3 __memo_context_type, 4 __memo_id_type, 5 State, 6 MutableState, 7 stateOf, 8 observableProxy 9} from '@ohos.arkui.stateManagement' // should be insert by ui-plugins 10 11import { 12 Text, 13 TextAttribute, 14 Column, 15 ColumnAttribute, 16 Component, 17 Button, 18 ButtonAttribute, 19 ClickEvent, 20 UserView, 21 FlexAlign, 22 Row , 23 Divider, 24 List, 25 ListItem, 26 TextAlign, 27 DividerAttribute, 28 ListItemAttribute, 29 Padding, 30 Margin, 31 Color, 32 CommonMethod, 33 Flex, 34 FlexAttribute, 35 FlexWrap, 36 FlexDirection, 37 Stack, 38 StackAttribute, 39 Alignment, 40 Entry, 41 SizeOptions, 42 NavDestination, 43 NavPathStack, 44 NavDestinationContext, 45 Callback 46} from '@ohos.arkui.component' // TextAttribute should be insert by ui-plugins 47 48import hilog from '@ohos.hilog' 49 50@Entry 51@Component 52export struct MultiComponentTest { 53 build() { 54 NavDestination() { 55 Stack({ alignContent: Alignment.Bottom }) { 56 Text('First child').backgroundColor('#7b68ee').width('90%').height('100%') 57 Text('Second child').backgroundColor('#ffc0cb').width('70%').height('60%') 58 }.width('100%').height(150).margin({ top: 5 } as Margin) 59 } 60 .title('一多组布局属性组件功能') 61 } 62}