refactor(basic): 优化弹窗提示文案显示
- 在弹窗提示中添加滚动功能,以支持长文本显示 - 设置最大高度限制,避免过长的提示文本导致界面变形
这个提交包含在:
父节点
0136bb54f9
当前提交
37a12ef1fd
@ -181,17 +181,22 @@ function alertDialogBuilder(options: AlertBean) {
|
|||||||
.alignItems(VerticalAlign.Top)
|
.alignItems(VerticalAlign.Top)
|
||||||
.padding(9)
|
.padding(9)
|
||||||
|
|
||||||
Text(options.options.msg)
|
Scroll(){
|
||||||
.fontSize(14)
|
Text(options.options.msg)
|
||||||
.fontWeight(FontWeight.Medium)
|
.fontSize(14)
|
||||||
.fontColor($r('sys.color.black'))
|
.fontWeight(FontWeight.Medium)
|
||||||
.textAlign(TextAlign.Center)
|
.fontColor($r('sys.color.black'))
|
||||||
.lineHeight(20)
|
.textAlign(TextAlign.Center)
|
||||||
.padding({
|
.lineHeight(20)
|
||||||
left: 19,
|
.padding({
|
||||||
right: 19
|
left: 19,
|
||||||
})
|
right: 19
|
||||||
.width('100%')
|
})
|
||||||
|
.width('100%')
|
||||||
|
}.scrollable(ScrollDirection.Vertical)
|
||||||
|
.constraintSize({
|
||||||
|
maxHeight: 220
|
||||||
|
})
|
||||||
Text(options.options.confirm?.text ?? '确定')
|
Text(options.options.confirm?.text ?? '确定')
|
||||||
.fontSize(14)
|
.fontSize(14)
|
||||||
.fontWeight(FontWeight.Medium)
|
.fontWeight(FontWeight.Medium)
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户