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-09-11 14:46:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
242c4dec349763b3461512fa770e54d3c3fc911e
242c4dec
1 parent
0963e403
fix: 图集item组件先解注释list容器,解决长图被裁剪
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MultiPictureDetailItemComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/MultiPictureDetailItemComponent.ets
View file @
242c4de
...
...
@@ -155,8 +155,8 @@ export struct MultiPictureDetailItemComponent {
build() {
Swiper(this.swiperControllerItem){
Row(){ // 居中显示
// List(){
// ListItem(){
List(){
ListItem(){
if(this.imageUri != null && (this.imageUri.includes('.gif') || this.imageUri.includes('.GIF'))){
Image(this.imageUri)// TODO:知识点:宽高只根据其尺寸设置一个,通过保持宽高比来设置另一个属性
.alt($r('app.media.datail_imageLoading_w'))
...
...
@@ -194,10 +194,10 @@ export struct MultiPictureDetailItemComponent {
this.imageWidth = '100%'
})
}
// }
// }
// .alignListItem(ListItemAlign.Center)
// .scrollBarWidth(0)
}
}
.alignListItem(ListItemAlign.Center)
.scrollBarWidth(0)
}
.justifyContent(FlexAlign.Center)
}
...
...
Please
register
or
login
to post a comment