2-支持重复加载page功能 3-调整TitleBar栏.subBar栏,footBar栏采用Display尺寸进行设定,不再受窗体尺寸变化而缩放.目前只支持缩放的是中间的显示栏区域. 4-修复部分设定BUG. 5-首启动页暂时还未完工,临时加载页面. 6-字体释放不再强制要求自启动 7-页面组件部分没有设定
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
import {mdwInfo}from '../../dispwininfo/DispWinInfo'
|
|
import { LengthMetrics } from '@kit.ArkUI'
|
|
|
|
//软件介绍
|
|
@ComponentV2
|
|
export struct SWInfo {
|
|
|
|
@Builder
|
|
build(){
|
|
Column(){
|
|
Row(){
|
|
Image($r('app.media.base_background'))
|
|
.width(mdwInfo.winWidth*0.1)
|
|
.height(mdwInfo.winWidth*0.08)
|
|
.backgroundImageSize({
|
|
width: '100%', // 图片宽度占满按钮
|
|
height: '100%' // 图片高度占满按钮
|
|
})
|
|
}.justifyContent(FlexAlign.Center)
|
|
.height('30%')
|
|
Column(){
|
|
TextArea({
|
|
text: '本软件由JackLee基于OCCT独立开发.旨在基于鸿蒙平台和OCCT构建一套强参数建模软件',
|
|
})
|
|
.margin({ left:36, right:36 })
|
|
.fontWeight(FontWeight.Regular)
|
|
.fontSize($r('sys.float.Body_L'))
|
|
.enterKeyType(EnterKeyType.Done)
|
|
.borderRadius($r('sys.float.corner_radius_level8'))
|
|
.backgroundColor($r('sys.color.comp_background_tertiary'))
|
|
.maxLines(50)
|
|
.lineSpacing(LengthMetrics.px(5))
|
|
.textOverflow(TextOverflow.Clip)
|
|
.textAlign(TextAlign.Center)
|
|
}.height('70%')
|
|
.margin({ top: 0,left:'25%',bottom:0,right:'25%'})
|
|
}
|
|
}
|
|
} |