@Component
export default struct Info {
@State message: string = 'Info页面'
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
}
.width('150px')
.height('150px')
.shadow({
radius: 4,
color: `rgba(0,0,0,0.3)`,
offsetY:10
})
}
.height('100%')
}
}
使用
.shadow({
radius: 4,
color: `rgba(0,0,0,0.3)`,
offsetY:10
})
即可