From 7c0c9dcd788678d3bee4404f8b970a3465b18110 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Thu, 17 Aug 2023 09:36:06 +0800 Subject: [PATCH] Update docs (22077) Signed-off-by: ester.zhou --- .../arkts-create-custom-components.md | 85 +++++-------------- en/application-dev/quick-start/har-package.md | 54 ++++++++++-- 2 files changed, 68 insertions(+), 71 deletions(-) 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 9548ad942c..45efde654b 100644 --- a/en/application-dev/quick-start/arkts-create-custom-components.md +++ b/en/application-dev/quick-start/arkts-create-custom-components.md @@ -70,8 +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 @@ -106,6 +104,8 @@ To fully understand the preceding example, a knowledge of the following concepts > **NOTE** > > Since API version 9, this decorator is supported in ArkTS widgets. + > + > Since API version 10, the \@Entry decorator accepts an optional parameter of type [LocalStorage](arkts-localstorage.md) or type [EntryOptions](#entryoptions10). ```ts @Entry @@ -114,6 +114,23 @@ To fully understand the preceding example, a knowledge of the following concepts } ``` + ### EntryOptions10+ + + Describes the named route options. + + | Name | Type | Mandatory| Description | + | ------ | ------ | ---- | ------------------------------------------------------------ | + | routeName | string | No| Name of the target named route.| + | storage | [LocalStorage](arkts-localstorage.md) | No| Storage of page-level UI state.| + + ```ts + @Entry({ routeName : 'myPage' }) + @Component + struct MyComponent { + } + ``` + + - \@Recycle: A custom component decorated with \@Recycle can be reused. > **NOTE** @@ -328,68 +345,4 @@ struct MyComponent { > > 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 **\