|
@@ -181,17 +181,22 @@ function alertDialogBuilder(options: AlertBean) {
|
|
|
.alignItems(VerticalAlign.Top)
|
|
|
.padding(9)
|
|
|
|
|
|
- Text(options.options.msg)
|
|
|
- .fontSize(14)
|
|
|
- .fontWeight(FontWeight.Medium)
|
|
|
- .fontColor($r('sys.color.black'))
|
|
|
- .textAlign(TextAlign.Center)
|
|
|
- .lineHeight(20)
|
|
|
- .padding({
|
|
|
- left: 19,
|
|
|
- right: 19
|
|
|
- })
|
|
|
- .width('100%')
|
|
|
+ Scroll(){
|
|
|
+ Text(options.options.msg)
|
|
|
+ .fontSize(14)
|
|
|
+ .fontWeight(FontWeight.Medium)
|
|
|
+ .fontColor($r('sys.color.black'))
|
|
|
+ .textAlign(TextAlign.Center)
|
|
|
+ .lineHeight(20)
|
|
|
+ .padding({
|
|
|
+ left: 19,
|
|
|
+ right: 19
|
|
|
+ })
|
|
|
+ .width('100%')
|
|
|
+ }.scrollable(ScrollDirection.Vertical)
|
|
|
+ .constraintSize({
|
|
|
+ maxHeight: 220
|
|
|
+ })
|
|
|
Text(options.options.confirm?.text ?? '确定')
|
|
|
.fontSize(14)
|
|
|
.fontWeight(FontWeight.Medium)
|