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 9548ad942cbd5ba3a24e4bcfe57ab71a0fb37043..45efde654b917c333e52d1f0d294282569622c45 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 **\