Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-08-21 19:17:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ab57c0a128a1e8d8461448965e2188dd6ddc3058
ab57c0a1
1 parent
359c2777
fix: 图集底部顶部有文字时,添加蒙层
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
sight_harmony/products/phone/src/main/ets/pages/view/MultiPictureDetailPageComponent.ets
sight_harmony/products/phone/src/main/ets/pages/view/MultiPictureDetailPageComponent.ets
View file @
ab57c0a
...
...
@@ -156,6 +156,7 @@ export struct MultiPictureDetailPageComponent {
@Builder
rmh() {
if (!this.showDownload) {
Row(){
Row() {
Row({ space: 8 }) {
if (this.getImgUrl()) {
...
...
@@ -297,6 +298,16 @@ export struct MultiPictureDetailPageComponent {
TransitionEffect.translate({ x: 0, y: `-${this.topSafeHeight + 12}px` })
))
}
.width('100%')
.height(44 + px2vp(this.topSafeHeight))
.zIndex(10)
.linearGradient({
direction: GradientDirection.Top, // 渐变方向
colors: [['rgba(18, 18, 18, 0)', 0],
['rgba(18, 18, 18, 1)', 1.0]] // 数组末尾元素占比小于1时满足重复着色效果
})
.opacity(0.5)
}
}
@Builder
...
...
@@ -437,6 +448,12 @@ export struct MultiPictureDetailPageComponent {
.edgeEffect(EdgeEffect.None)
.scrollBarWidth(0)
.scrollBar(BarState.Off)
.linearGradient({
direction: GradientDirection.Bottom, // 渐变方向
colors: [['rgba(18, 18, 18, 0)', 0],
['rgba(18, 18, 18, 1)', 1.0]] // 数组末尾元素占比小于1时满足重复着色效果
})
.opacity(0.5)
OperRowListView({
contentDetailData: this.contentDetailData,
...
...
Please
register
or
login
to post a comment