• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2// @ts-nocheck
3/**
4 * Copyright (c) 2022 Huawei Device Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *     http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18import hilog from '@ohos.hilog';
19
20@Entry
21@Component
22struct Index {
23  aboutToAppear() {
24    hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO);
25    hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility index aboutToAppear');
26  }
27
28  @State message: string = 'TIME ETS TEST'
29  build() {
30    Row() {
31      Column() {
32        Text(this.message)
33          .fontSize(50)
34          .fontWeight(FontWeight.Bold)
35      }
36      .width('100%')
37    }
38    .height('100%')
39  }
40}