107ac75b1Sopenharmony_ci/* 207ac75b1Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 307ac75b1Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 407ac75b1Sopenharmony_ci * you may not use this file except in compliance with the License. 507ac75b1Sopenharmony_ci * You may obtain a copy of the License at 607ac75b1Sopenharmony_ci * 707ac75b1Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 807ac75b1Sopenharmony_ci * 907ac75b1Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1007ac75b1Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1107ac75b1Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1207ac75b1Sopenharmony_ci * See the License for the specific language governing permissions and 1307ac75b1Sopenharmony_ci * limitations under the License. 1407ac75b1Sopenharmony_ci */ 1507ac75b1Sopenharmony_ci 1607ac75b1Sopenharmony_ci@Component 1707ac75b1Sopenharmony_cistruct AMDComponent { 1807ac75b1Sopenharmony_ci @Link AMDComponentLink1: any 1907ac75b1Sopenharmony_ci @Link AMDComponentLink2: number 2007ac75b1Sopenharmony_ci @Link AMDComponentLink3: boolean 2107ac75b1Sopenharmony_ci @Link AMDComponentLink4: string 2207ac75b1Sopenharmony_ci 2307ac75b1Sopenharmony_ci private myVar: number = 0 2407ac75b1Sopenharmony_ci private myVar2: number 2507ac75b1Sopenharmony_ci 2607ac75b1Sopenharmony_ci build() { 2707ac75b1Sopenharmony_ci Column(){ 2807ac75b1Sopenharmony_ci Text('AMDComponent') 2907ac75b1Sopenharmony_ci .fontSize(20) 3007ac75b1Sopenharmony_ci Text('AMDComponentLink1: ' + JSON.stringify(this.AMDComponentLink1)) 3107ac75b1Sopenharmony_ci .fontSize(20) 3207ac75b1Sopenharmony_ci Text('AMDComponentLink2: ' + JSON.stringify(this.AMDComponentLink2)) 3307ac75b1Sopenharmony_ci .fontSize(20) 3407ac75b1Sopenharmony_ci Text('AMDComponentLink3: ' + JSON.stringify(this.AMDComponentLink3)) 3507ac75b1Sopenharmony_ci .fontSize(20) 3607ac75b1Sopenharmony_ci Text('AMDComponentLink4: ' + JSON.stringify(this.AMDComponentLink4)) 3707ac75b1Sopenharmony_ci .fontSize(20) 3807ac75b1Sopenharmony_ci Text('myVar: ' + JSON.stringify(this.myVar)) 3907ac75b1Sopenharmony_ci .fontSize(20) 4007ac75b1Sopenharmony_ci Text('myVar2: ' + JSON.stringify(this.myVar2)) 4107ac75b1Sopenharmony_ci .fontSize(20) 4207ac75b1Sopenharmony_ci } 4307ac75b1Sopenharmony_ci } 4407ac75b1Sopenharmony_ci} 4507ac75b1Sopenharmony_ci 4607ac75b1Sopenharmony_ciexport = AMDComponent 47