diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 100e5b4b71e86329197ffd69d75f983f99529117..500e3b8e133f5585ff5d784cd960badfa9ce0054 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -366,6 +366,7 @@ struct Index { // Open the graphic and text prompts let uiContext = this.getUIContext(); PromptActionClass.setContext(uiContext); + imageTipsContentNode = new ComponentContent(getUIContext, wrapBuilder(buildText), new Params(this.message)); PromptActionClass.setContentNode(imageTipsContentNode); // [Start focusable] PromptActionClass.setOptions({ @@ -391,6 +392,8 @@ struct Index { // Open the operation prompt let uiContext = this.getUIContext(); PromptActionClass.setContext(uiContext); + actionTipsContentNode = new ComponentContent(getUIContext, wrapBuilder(buildActionTips), + new ActionParams($r('app.string.collection_successful'), $r('app.string.join_the_album'))) PromptActionClass.setContentNode(actionTipsContentNode); PromptActionClass.setOptions({ isModal: false, @@ -430,6 +433,7 @@ struct Index { // Open the confirmation pop-up window let uiContext = this.getUIContext(); PromptActionClass.setContext(uiContext); + contentNode = new ComponentContent(getUIContext, wrapBuilder(customDialogComponent)); PromptActionClass.setContentNode(contentNode); PromptActionClass.setOptions({ autoCancel: false }); PromptActionClass.openDialog(); @@ -460,6 +464,8 @@ struct Index { // Open the progress bar pop-up window let uiContext = this.getUIContext(); PromptActionClass.setContext(uiContext); + progressContentNode = new ComponentContent(getUIContext, wrapBuilder(buildProgress), + new ProgressParams($r('app.string.progress'), value, false)); PromptActionClass.setContentNode(progressContentNode); PromptActionClass.setOptions({ autoCancel: true,