1/** 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import LogUtil from '../../../../../../common/utils/src/main/ets/default/baseUtil/LogUtil'; 17import ConfigData from '../../../../../../common/utils/src/main/ets/default/baseUtil/ConfigData'; 18import HeadComponent from '../../../../../../common/component/src/main/ets/default/headComponent'; 19import { SubEntryComponent } from '../../../../../../common/component/src/main/ets/default/subEntryComponent'; 20 21/** 22 * Application 23 */ 24@Entry 25@Component 26struct Application { 27 private TAG = `${ConfigData.TAG} Application `; 28 29 build() { 30 Column() { 31 GridContainer({ gutter: ConfigData.GRID_CONTAINER_GUTTER_24, margin: ConfigData.GRID_CONTAINER_MARGIN_24 }) { 32 Column() { 33 HeadComponent({ headName: $r('app.string.applyTab'), isActive: true }) 34 35 SubEntryComponent({ targetPage: 'pages/appManagement', title: $r('app.string.appManagement') }) 36 .margin({ top: $r("app.float.distance_8") }) 37 } 38 .useSizeType({ 39 sm: { span: 4, offset: 0 }, 40 md: { span: 6, offset: 1 }, 41 lg: { span: 8, offset: 2 } 42 }) 43 } 44 .width(ConfigData.WH_100_100) 45 .height(ConfigData.WH_100_100) 46 } 47 .backgroundColor($r("sys.color.ohos_id_color_sub_background")) 48 .width(ConfigData.WH_100_100) 49 .height(ConfigData.WH_100_100) 50 } 51 52 aboutToAppear() { 53 LogUtil.info(`${this.TAG} aboutToAppear in`); 54 LogUtil.info(`${this.TAG} aboutToAppear out`); 55 } 56}