1/* 2 * Copyright (c) 2022-2023 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 CommonEvent from '@ohos.commonEvent' 17import { EventConstants, } from '@ohos/base' 18import FormManagerComponent from '../components/FormManagerComponent' 19 20@Entry 21@Component 22struct FormPage { 23 build() { 24 Column() { 25 Row() { 26 Image($r('app.media.ic_back')) 27 .width(40) 28 .aspectRatio(2) 29 .margin({ left: 15 }) 30 .onClick(() => { 31 CommonEvent.publish(EventConstants.EVENT_ENTER_HOME, () => { 32 }) 33 }) 34 } 35 .width('100%') 36 .height('8%') 37 38 FormManagerComponent() 39 40 } 41 .width('100%') 42 .height('100%') 43 .backgroundImage($r('app.media.form_mgr_bg')) 44 .backgroundImageSize(ImageSize.Cover) 45 } 46}