扩展消息部分代码提交
This commit is contained in:
@@ -53,8 +53,11 @@ export function NavigationBackBuilder(params?: NavigationBackBuilderParams) {
|
||||
} else {
|
||||
Image($r('app.media.top_back'))
|
||||
.margin({ left: 20 })
|
||||
.width(24)
|
||||
.width(65)
|
||||
.height(24)
|
||||
.padding({
|
||||
right:41
|
||||
})
|
||||
// .padding({
|
||||
// left: 8,
|
||||
// right: 8,
|
||||
@@ -69,9 +72,13 @@ export function NavigationBackBuilder(params?: NavigationBackBuilderParams) {
|
||||
// .fontWeight(FontWeight.Bold)
|
||||
.height(18)
|
||||
.width('100%')
|
||||
.maxLines(1)
|
||||
.ellipsisMode(EllipsisMode.END)
|
||||
.margin({
|
||||
left: params?.buttonTextWidth ? (params.buttonTextWidth - 32 + 8) : 8,
|
||||
right: (params?.rightButtonTitle || params?.rightButtonIcon) ? 8 : 60
|
||||
left:5,
|
||||
right:5
|
||||
// left: params?.buttonTextWidth ? (params.buttonTextWidth - 32 + 8) : 8,
|
||||
// right: (params?.rightButtonTitle || params?.rightButtonIcon) ? 8 : 60
|
||||
})
|
||||
.fontColor('#8D2316')
|
||||
.layoutWeight(1)
|
||||
@@ -81,28 +88,43 @@ export function NavigationBackBuilder(params?: NavigationBackBuilderParams) {
|
||||
|
||||
if (params?.rightButtonTitle) {
|
||||
Text(params?.rightButtonTitle)
|
||||
.fontSize(16)
|
||||
.fontColor(params?.rightButtonColor)
|
||||
.width(params?.buttonTextWidth ?? 32)
|
||||
.height(18)
|
||||
.margin({ right: 20 })
|
||||
.fontSize(14)
|
||||
.fontColor(params?.rightButtonColor??Color.White)
|
||||
.width(params?.buttonTextWidth ?? 80)
|
||||
.height(35)
|
||||
.textAlign(TextAlign.Center)
|
||||
// .padding({
|
||||
// top:10,bottom:10,left:18,right:18
|
||||
// })
|
||||
.borderRadius(4)
|
||||
// .height(18)
|
||||
.backgroundColor($r('app.color.top_title'))
|
||||
.margin({ right: 5 })
|
||||
.onClick(params?.rightButtonAction)
|
||||
.textAlign(TextAlign.End)
|
||||
|
||||
}
|
||||
|
||||
if (params?.rightButtonIcon) {
|
||||
else if (params?.rightButtonIcon) {
|
||||
Image(params?.rightButtonIcon)
|
||||
.width(32)
|
||||
.height(32)
|
||||
// .width(36)
|
||||
.width(65)
|
||||
.height(4)
|
||||
.objectFit(ImageFit.Contain)
|
||||
.padding({
|
||||
left: 3,
|
||||
right: 3,
|
||||
top: 3,
|
||||
bottom: 3
|
||||
left: 47,
|
||||
// right: 3,
|
||||
// top: 3,
|
||||
// bottom: 3
|
||||
})
|
||||
.margin({ right: 20 })
|
||||
.onClick(params?.rightButtonAction)
|
||||
}
|
||||
else
|
||||
{
|
||||
Text('')
|
||||
.width(85)
|
||||
.height(24)
|
||||
}
|
||||
}
|
||||
.height(55)
|
||||
.alignSelf(ItemAlign.Start)
|
||||
|
||||
Reference in New Issue
Block a user