增加标题中间文字备注
这个提交包含在:
父节点
ecfef2154b
当前提交
e2324ecbdc
@ -44,6 +44,8 @@ export struct SafeView {
|
|||||||
// 设置返回按钮事件
|
// 设置返回按钮事件
|
||||||
@Prop onClickLeft: TitleBarBtn
|
@Prop onClickLeft: TitleBarBtn
|
||||||
@Prop onClickRight: TitleBarBtn
|
@Prop onClickRight: TitleBarBtn
|
||||||
|
// 设置导航栏底下标题
|
||||||
|
@Prop bottomTitleText: ResourceStr
|
||||||
|
|
||||||
@Builder
|
@Builder
|
||||||
doNothingBuilder() {
|
doNothingBuilder() {
|
||||||
@ -90,6 +92,7 @@ export struct SafeView {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Column() {
|
||||||
Text(this.titleText ?? '')
|
Text(this.titleText ?? '')
|
||||||
.maxLines(1)
|
.maxLines(1)
|
||||||
.fontColor(this.titleColor ?? '#11102C')
|
.fontColor(this.titleColor ?? '#11102C')
|
||||||
@ -103,6 +106,11 @@ export struct SafeView {
|
|||||||
maxWidth: 200
|
maxWidth: 200
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (this.bottomTitleText) {
|
||||||
|
Text(this.bottomTitleText ?? '').fontColor('#CB8204').fontSize(12).margin({ top: 4 })
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Row() {
|
Row() {
|
||||||
if (!this.onClickLeft?.img && this.onClickLeft) {
|
if (!this.onClickLeft?.img && this.onClickLeft) {
|
||||||
Badge({
|
Badge({
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户