• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import {
2  memo,
3  __memo_context_type,
4  __memo_id_type,
5  State,
6  StateDecoratedVariable,
7  MutableState,
8  stateOf,
9  observableProxy
10} from '@ohos.arkui.stateManagement' // should be insert by ui-plugins
11
12import {
13  Text,
14  TextAttribute,
15  Column,
16  Component,
17  Button,
18  ButtonAttribute,
19  ClickEvent,
20  UserView,
21  NavDestination,
22  NavPathStack,
23  NavDestinationContext,
24  Callback
25} from '@ohos.arkui.component'  // TextAttribute should be insert by ui-plugins
26
27import hilog from '@ohos.hilog'
28
29@Component
30export struct UIExtensionComponentTest {
31
32  build() {
33    NavDestination() {
34      Column(undefined) {
35        Text('UIExtensionComponent').fontSize(20)
36      }
37    }
38    .title('UEC功能测试')
39  }
40}
41
42@Component
43struct Child {
44  @State stateVar: string = 'Child';
45  build() {
46    Text(this.stateVar).fontSize(50)
47  }
48}
49