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
wangliang_wd
2024-09-23 10:34:39 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e3ddca7ff4244ffe0bf0ffe033fdf1b07c77de6b
e3ddca7f
1 parent
f193cad1
feat:优化人民号动态卡长图标识展示
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
24 deletions
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card19Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
View file @
e3ddca7
...
...
@@ -1042,6 +1042,7 @@ struct createImg {
@Builder
longPicTip(weight: number, height: number) {
if (weight / height > 2 || height / weight > 2){
Flex({ direction: FlexDirection.Row }) {
Image($r('app.media.icon_long_pic'))
.width(12)
...
...
@@ -1067,6 +1068,7 @@ struct createImg {
.align(Alignment.BottomEnd)
.padding({ bottom: 8 })
}
}
build() {
GridRow({
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card19Component.ets
View file @
e3ddca7
...
...
@@ -187,30 +187,32 @@ struct createImg {
@Builder
longPicTip(weight: number, height: number) {
// Flex({ direction: FlexDirection.Row }) {
// Image($r('app.media.icon_long_pic'))
// .width(12)
// .height(12)
// .margin({ right: 4 })
// Text('长图')
// .fontSize(10)
// .fontWeight(400)
// .textShadow({
// radius: 1,
// color: `rgba(0,0,0,0.5)`,
// offsetY:1,
// offsetX:1
// })
// .fontColor(0xffffff)
// .fontFamily('PingFang SC')
// .visibility(
// weight / height > 2 || height / weight > 2
// ? Visibility.Visible : Visibility.None
// )
// }
// .width(48)
// .align(Alignment.BottomEnd)
// .padding({ bottom: 8 })
if (weight / height > 2 || height / weight > 2){
Flex({ direction: FlexDirection.Row }) {
Image($r('app.media.icon_long_pic'))
.width(12)
.height(12)
.margin({ right: 4 })
Text('长图')
.fontSize(10)
.fontWeight(400)
.textShadow({
radius: 1,
color: `rgba(0,0,0,0.5)`,
offsetY:1,
offsetX:1
})
.fontColor(0xffffff)
.fontFamily('PingFang SC')
.visibility(
weight / height > 2 || height / weight > 2
? Visibility.Visible : Visibility.None
)
}
.width(48)
.align(Alignment.BottomEnd)
.padding({ bottom: 8 })
}
}
build() {
...
...
Please
register
or
login
to post a comment