1/* 2 * Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 Caller from '../bean/Caller'; 17 18/** 19 * 头像和名称 20 */ 21@Component 22export default struct ComponentPerson { 23 @Link mPerson: Caller; 24 25 build() { 26 Column() { 27 Button() { 28 Text(this.mPerson.head) 29 .fontSize(60) 30 .fontWeight(FontWeight.Medium) 31 .fontColor($r('app.color.color_fff')) 32 } 33 .type(ButtonType.Circle) 34 .enabled(false) 35 .height(136) 36 .width(136) 37 .backgroundColor($r('app.color.color_02_000')) 38 .margin({ bottom: 56 }) 39 40 Text(this.mPerson.name) 41 .fontSize(40) 42 .fontColor($r('app.color.color_fff')) 43 .fontWeight(FontWeight.Regular) 44 .fontFamily('HarmonyOS Sans SC') 45 } 46 } 47}