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