From 84604e1a1745f7327000c63699fc95526b98c016 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Mon, 30 Jan 2023 14:53:09 +0800 Subject: [PATCH] Update doc (13830) Signed-off-by: ester.zhou --- .../reference/arkui-ts/ts-universal-attributes-focus.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md index 363bb92058..53cc8c854b 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-focus.md @@ -201,7 +201,7 @@ Sample code for **focusControl.requestFocus**: Use the **focusContrl.requestFocus** API to enable a specified component to obtain focus. ```ts // requestFocus.ets -import prompt from '@ohos.prompt' +import promptAction from '@ohos.promptAction'; @Entry @Component @@ -253,9 +253,9 @@ struct RequestFocusExample { .onClick(() => { var res = focusControl.requestFocus(this.selectId) // Enable the component selected by this.selectId to obtain focus. if (res) { - prompt.showToast({message: 'Request success'}) + promptAction.showToast({message: 'Request success'}) } else { - prompt.showToast({message: 'Request failed'}) + promptAction.showToast({message: 'Request failed'}) } }) } -- GitLab