From 39ac809561658c2652f23dc9d074f828b7494a1c Mon Sep 17 00:00:00 2001 From: zyjhandsome Date: Thu, 19 Jan 2023 16:56:05 +0800 Subject: [PATCH] =?UTF-8?q?ohos.prompt=E6=8E=A5=E5=8F=A3=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E4=B8=BAohos.promptAction=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zyjhandsome --- .../reference/arkui-ts/ts-universal-attributes-focus.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md index 4c1606fddc..25f14ed963 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md @@ -200,7 +200,7 @@ focusControl.requestFocus示例代码: 使用focusContrl.requestFocus接口使指定组件获取焦点。 ```ts // requestFocus.ets -import prompt from '@ohos.prompt' +import promptAction from '@ohos.promptAction'; @Entry @Component @@ -252,9 +252,9 @@ struct RequestFocusExample { .onClick(() => { var res = focusControl.requestFocus(this.selectId) // 使选中的this.selectId的组件获焦 if (res) { - prompt.showToast({message: 'Request success'}) + promptAction.showToast({message: 'Request success'}) } else { - prompt.showToast({message: 'Request failed'}) + promptAction.showToast({message: 'Request failed'}) } }) } -- GitLab