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
yangchenggong1_wd
2024-09-24 17:25:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
25594dfaaa5bf783f271b3e0f41ba36fde7b02fd
25594dfa
1 parent
20135c48
fix |> 20352 【UI】新闻频道,顶部频道区域,右侧缺少渐隐效果
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/TopNavigationComponentNew.ets
View file @
25594df
...
...
@@ -299,19 +299,27 @@ export struct TopNavigationComponentNew {
})
.grayscale(this.GrayManage.get().isMourning() ? 1 : 0)
List({ scroller: this.listScroller }) {
ForEach(this.myChannelList, (navItem: TopNavDTO, index: number) => {
ListItem() {
this.tabBarBuilder(navItem, index)
}
.grayscale(this.GrayManage.get().isNewsMourning(`${navItem.channelId}`) ? 1 : 0)
Stack({alignContent: Alignment.Start}){
List({ scroller: this.listScroller }) {
ForEach(this.myChannelList, (navItem: TopNavDTO, index: number) => {
ListItem() {
this.tabBarBuilder(navItem, index)
}.blendMode(BlendMode.SRC_IN, BlendApplyType.OFFSCREEN)
.grayscale(this.GrayManage.get().isNewsMourning(`${navItem.channelId}`) ? 1 : 0)
})
}
.listDirection(Axis.Horizontal)
.linearGradient({
angle: 90,
colors: [[0x01000000, 0.0], [0xff000000, 0.05], [0xff000000, 0.95], [0x01000000, 1.0]]
})
.blendMode(BlendMode.SRC_OVER, BlendApplyType.OFFSCREEN)
.scrollBar(BarState.Off)
.edgeEffect(EdgeEffect.None)
.constraintSize({ maxWidth: '100%' })
.height($r('app.float.top_tab_bar_height'))
}
.listDirection(Axis.Horizontal)
.scrollBar(BarState.Off)
.edgeEffect(EdgeEffect.None)
.padding({ left: 8, top: 0, right: 0 })
.height($r('app.float.top_tab_bar_height'))
.id('tabList')
.alignRules({
'top': { 'anchor': 'topBar', 'align': VerticalAlign.Bottom },
...
...
Please
register
or
login
to post a comment