From d9de8545ec473cfdd8d76d5de6198afb17efbd46 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Sat, 26 Aug 2023 12:30:47 +0800 Subject: [PATCH] Update docs (22121) Signed-off-by: ester.zhou --- .../common-event-subscription.md | 2 +- .../arkts-create-custom-components.md | 71 +-- .../quick-start/arkts-environment.md | 5 +- .../quick-start/module-configuration-file.md | 2 +- .../reference/apis/js-apis-system-timer.md | 4 +- .../reference/apis/js-apis-webview.md | 16 + .../arkui-js-lite/figures/lite_line.PNG | Bin 7263 -> 23220 bytes .../js-components-basic-chart.md | 2 +- .../js-components-basic-qrcode.md | 70 +-- .../figures/en-us_image_0000001174422896.gif | Bin 0 -> 128905 bytes .../figures/en-us_image_0000001256978381.gif | Bin 274526 -> 0 bytes .../ts-basic-components-stepperitem.md | 5 + .../reference/arkui-ts/ts-container-panel.md | 6 +- .../ui/figures/relative-layout.png | Bin 9895 -> 23955 bytes .../porting/porting-smallchip-driver-oom.md | 550 +++++++----------- .../porting/standard-system-porting-guide.md | 421 +++++++------- 16 files changed, 501 insertions(+), 653 deletions(-) create mode 100644 en/application-dev/reference/arkui-ts/figures/en-us_image_0000001174422896.gif delete mode 100644 en/application-dev/reference/arkui-ts/figures/en-us_image_0000001256978381.gif diff --git a/en/application-dev/application-models/common-event-subscription.md b/en/application-dev/application-models/common-event-subscription.md index c3e3ebfa52..856b7fc44c 100644 --- a/en/application-dev/application-models/common-event-subscription.md +++ b/en/application-dev/application-models/common-event-subscription.md @@ -12,7 +12,7 @@ For details about the APIs, see [API Reference](../reference/apis/js-apis-common | API| Description| | -------- | -------- | -| createSubscriber(subscribeInfo: [CommonEventSubscribeInfo](../reference/apis/js-apis-commonEventManager.md#commoneventsubscribeinfo), callback: AsyncCallback<[CommonEventData](../reference/apis/js-apis-commonEventManager.md#commoneventdata)>): void | Creates a subscriber. This API uses an asynchronous callback to return the result.| +| createSubscriber(subscribeInfo: [CommonEventSubscribeInfo](../reference/apis/js-apis-commonEventManager.md#commoneventsubscribeinfo), callback: AsyncCallback<[CommonEventSubscriber](../reference/apis/js-apis-inner-commonEvent-commonEventSubscriber.md#usage)>): void | Creates a subscriber. This API uses an asynchronous callback to return the result.| | createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise<CommonEventSubscriber> | Creates a subscriber. This API uses a promise to return the result.| | subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback): void | Subscribes to common events.| diff --git a/en/application-dev/quick-start/arkts-create-custom-components.md b/en/application-dev/quick-start/arkts-create-custom-components.md index 4e625b11db..0c115bfcec 100644 --- a/en/application-dev/quick-start/arkts-create-custom-components.md +++ b/en/application-dev/quick-start/arkts-create-custom-components.md @@ -1,7 +1,7 @@ # Creating a Custom Component -In ArkUI, components are what's displayed on the UI. They can be classified as built-in components – those directly provided by ArkUI framework, and custom components – those defined by developers. Defining the entire application UI with just built-in components would lead to a monolithic design, low code maintainability, and poor execution performance. A good UI is the result of a well-thought-out development process, with such factors as code reusability, separation of service logic from the UI, and version evolution carefully considered. Creating custom components that encapsulate the UI and some business logic is a critical step in this process. +In ArkUI, components are what's displayed on the UI. They can be classified as built-in components – those directly provided by the ArkUI framework, and custom components – those defined by developers. Defining the entire application UI with just built-in components would lead to a monolithic design, low code maintainability, and poor execution performance. A good UI is the result of a well-thought-out development process, with such factors as code reusability, separation of service logic from the UI, and version evolution carefully considered. Creating custom components that encapsulate the UI and some business logic is a critical step in this process. The custom component has the following features: @@ -62,7 +62,7 @@ To fully understand the preceding example, a knowledge of the following concepts - [Basic Structure of a Custom Component](#basic-structure-of-a-custom-component) -- [Member Functions/Variables](#member-functionsvariables) +- Member functions/Variables - [Rules of for Custom Component Parameters](#rules-of-for-custom-component-parameters) @@ -70,7 +70,6 @@ To fully understand the preceding example, a knowledge of the following concepts - [Universal Style of a Custom Component](#universal-style-of-a-custom-component) -- [Custom Attribute Methods](#custom-attribute-methods) ## Basic Structure of a Custom Component @@ -80,7 +79,7 @@ To fully understand the preceding example, a knowledge of the following concepts > > The name or its class or function name of a custom component must be different from that of any built-in components. -- \@Component: The \@Component decorator can decorate only the data structures declared by the **struct** keyword. After being decorated by \@Component, a struct has the componentization capability. It must implement the **build** function to describe the UI. One struct can be decorated by only one \@Component. +- \@Component: The \@Component decorator can decorate only the structs declared by the **struct** keyword. After being decorated by \@Component, a struct has the componentization capability. It must implement the **build** function to describe the UI. One struct can be decorated by only one \@Component. > **NOTE** > > Since API version 9, this decorator is supported in ArkTS widgets. @@ -314,67 +313,3 @@ struct MyComponent { > **NOTE** > > When ArkUI sets styles for custom components, an invisible container component is set for **MyComponent2**. These styles are set on the container component instead of the **\