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
liyubing
2024-06-19 10:26:39 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fc0e25234cf2d6a3a5af48f1f3defb284b54a9ce
fc0e2523
1 parent
fc864248
feat:
1)电子报默认图
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/ENewspaperItemComponent.ets
sight_harmony/features/wdComponent/src/main/resources/base/media/paper_placeholder.jpg
sight_harmony/features/wdComponent/src/main/ets/components/ENewspaperItemComponent.ets
View file @
fc0e252
...
...
@@ -40,6 +40,7 @@ export struct ENewspaperItemComponent {
Image(this.newspaperListItemBean.pagePic)
.width(px2vp(this.itemPicWidth))
.height(px2vp(this.itemPicHeight))
.alt($r('app.media.paper_placeholder'))
.onComplete((event) => {
if (event?.loadingStatus == 1) {
this.contentWidth = event?.contentWidth
...
...
@@ -49,8 +50,9 @@ export struct ENewspaperItemComponent {
})
.objectFit(ImageFit.Fill)
.zIndex(10)
newsSkeleton()
.zIndex(1)
// newsSkeleton()
// .height('100%')
// .zIndex(1)
if (this.contentWidth !== 0) {
Canvas(this.context)
.width(px2vp(this.contentWidth))
...
...
sight_harmony/features/wdComponent/src/main/resources/base/media/paper_placeholder.jpg
0 → 100644
View file @
fc0e252
46.2 KB
Please
register
or
login
to post a comment