From ea802b5c4c818a69a06ba7f5185506d604624261 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Wed, 16 Aug 2023 17:10:47 +0800 Subject: [PATCH] Update docs (21076) Signed-off-by: ester.zhou --- en/application-dev/quick-start/arkts-state.md | 4 +- .../apis/js-apis-inputmethod-subtype.md | 22 +- .../apis/js-apis-notificationManager.md | 2 +- .../reference/apis/js-apis-webview.md | 10 +- .../arkui-ts/ts-basic-components-search.md | 2 +- .../web/web-in-page-app-function-invoking.md | 4 +- en/device-dev/device-test/Readme-EN.md | 4 +- en/device-dev/device-test/smartperf-host.md | 2 +- .../kernel/kernel-mini-memory-perf.md | 449 ------------------ en/device-dev/subsystems/Readme-EN.md | 1 - en/device-dev/website.md | 74 +-- 11 files changed, 34 insertions(+), 540 deletions(-) delete mode 100644 en/device-dev/kernel/kernel-mini-memory-perf.md diff --git a/en/application-dev/quick-start/arkts-state.md b/en/application-dev/quick-start/arkts-state.md index be3260d685..325940b164 100644 --- a/en/application-dev/quick-start/arkts-state.md +++ b/en/application-dev/quick-start/arkts-state.md @@ -30,14 +30,14 @@ An @State decorated variable, like all other decorated variables in the declarat | Decorator parameters | None. | | Synchronization type | Does not synchronize with any type of variable in the parent component. | | Allowed variable types | Object, class, string, number, Boolean, enum, and array of these types. For details about the scenarios of nested types, see [Observed Changes](#observed-changes).
The type must be specified.
**any** is not supported. A combination of simple and complex types is not supported. The **undefined** and **null** values are not allowed.
**NOTE**
Avoid using this decorator to decorate the Date type, as doing so may lead to unexpected behavior of the application.
The Length, ResourceStr, and ResourceColor types are a combination of simple and complex types and therefore not supported.| -| Initial value for the decorated variable | Mandatory. | +| Initial value for the decorated variable| Local initialization is required. | ## Variable Transfer/Access Rules | Transfer/Access | Description | | --------- | ---------------------------------------- | -| Initialization from the parent component | Optional. Initialization from the parent component or local initialization can be used.
An \@State decorated variable can be initialized from a regular variable or an \@State, \@Link, \@Prop, \@Provide, \@Consume, \@ObjectLink, \@StorageLink, \@StorageProp, \@LocalStorageLink, or \@LocalStorageProp decorated variable in its parent component.| +| Initialization from the parent component | Optional. Initialization from the parent component or local initialization can be used. The initial value specified in the parent component will overwrite the one defined locally.
An \@State decorated variable can be initialized from a regular variable or an \@State, \@Link, \@Prop, \@Provide, \@Consume, \@ObjectLink, \@StorageLink, \@StorageProp, \@LocalStorageLink, or \@LocalStorageProp decorated variable in its parent component.| | Subnode initialization | Supported. An \@State decorated variable can be used to initialize a regular variable or \@State, \@Link, \@Prop, or \@Provide decorated variable in the child component.| | Access| Private, accessible only within the component. | diff --git a/en/application-dev/reference/apis/js-apis-inputmethod-subtype.md b/en/application-dev/reference/apis/js-apis-inputmethod-subtype.md index 3a044ea0a5..68b5085ef1 100644 --- a/en/application-dev/reference/apis/js-apis-inputmethod-subtype.md +++ b/en/application-dev/reference/apis/js-apis-inputmethod-subtype.md @@ -16,14 +16,14 @@ import InputMethodSubtype from '@ohos.InputMethodSubtype'; **System capability**: SystemCapability.MiscServices.InputMethodFramework -| Name| Type| Readable| Writable| Mandatory| Description| -| -------- | -------- | -------- | -------- | -------- | -------- | -| label | string | Yes| No| No| Label of the input method subtype.| -| name | string | Yes| No| Yes| Bundle name of the input method. | -| id | string | Yes| No| Yes| ID of the input method subtype.| -| mode | string | Yes| No| No| Mode of the input method subtype, including **upper** (uppercase) and **lower** (lowercase).| -| locale | string | Yes| No| Yes| Locale of the input method subtype.| -| language | string | Yes| No| Yes| Language of the input method subtype.| -| icon | string | Yes| No| No| Icon of the input method subtype.| -| iconId | number | Yes| No| No| Icon ID of the input method subtype.| -| extra | object | Yes| Yes| Yes| Extra information of the input method subtype.| +| Name| Type| Readable| Writable| Description| +| -------- | -------- | -------- | -------- | -------- | +| label | string | Yes| No| Optional. Label of the input method subtype.| +| name | string | Yes| No| Mandatory. Bundle name of the input method.| +| id | string | Yes| No| Mandatory. ID of the input method subtype.| +| mode | string | Yes| No| Optional. Mode of the input method subtype, including **upper** (uppercase) and **lower** (lowercase).| +| locale | string | Yes| No| Mandatory. Locale of the input method subtype.| +| language | string | Yes| No| Mandatory. Language of the input method subtype.| +| icon | string | Yes| No| Optional. Icon of the input method subtype.| +| iconId | number | Yes| No| Optional. Icon ID of the input method subtype.| +| extra | object | Yes| Yes| Mandatory. Extra information of the input method subtype.| diff --git a/en/application-dev/reference/apis/js-apis-notificationManager.md b/en/application-dev/reference/apis/js-apis-notificationManager.md index 0c136cad23..e42595bb35 100644 --- a/en/application-dev/reference/apis/js-apis-notificationManager.md +++ b/en/application-dev/reference/apis/js-apis-notificationManager.md @@ -100,7 +100,7 @@ For details about the error codes, see [Notification Error Codes](../errorcodes/ ```js // NotificationRequest object let notificationRequest = { - notificationId: 1, + id: 1, content: { contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT, normal: { diff --git a/en/application-dev/reference/apis/js-apis-webview.md b/en/application-dev/reference/apis/js-apis-webview.md index d5a7c70f6d..aa09e7c835 100644 --- a/en/application-dev/reference/apis/js-apis-webview.md +++ b/en/application-dev/reference/apis/js-apis-webview.md @@ -694,7 +694,7 @@ struct WebComponent { onActive(): void -Invoked to instruct the **\** component to enter the foreground, active state. +Invoked to instruct the **\** component to enter the active foreground state. **System capability**: SystemCapability.Web.Webview.Core @@ -1043,12 +1043,14 @@ HTML file to be loaded: - Hello world! + +

diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-search.md b/en/application-dev/reference/arkui-ts/ts-basic-components-search.md index e79244d086..21c1d227fa 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-search.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-search.md @@ -12,7 +12,7 @@ Not supported ## APIs -Search(options?: { value?: string; placeholder?: string; icon?: string; controller?: SearchController }) +Search(options?: { value?: string, placeholder?: string, icon?: string, controller?: SearchController }) **Parameters** diff --git a/en/application-dev/web/web-in-page-app-function-invoking.md b/en/application-dev/web/web-in-page-app-function-invoking.md index a06af719f8..21d30949a5 100644 --- a/en/application-dev/web/web-in-page-app-function-invoking.md +++ b/en/application-dev/web/web-in-page-app-function-invoking.md @@ -89,7 +89,7 @@ The following example registers the **test()** function with the frontend page. > **NOTE** > - > If you use [registerJavaScriptProxy()](../reference/apis/js-apis-webview.md#registerjavascriptproxy) to register a function, call **[refresh()]**(../reference/apis/js-apis-webview.md#refresh) for the function to take effect. + > If you use [registerJavaScriptProxy()](../reference/apis/js-apis-webview.md#registerjavascriptproxy) to register a function, call [refresh()](../reference/apis/js-apis-webview.md#refresh) for the function to take effect. - Sample code for invoking application functions on the **index.htm** page: @@ -103,7 +103,7 @@ The following example registers the **test()** function with the frontend page.