1e41f4b71Sopenharmony_ci# ArkUI Subsystem ChangeLog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.arkui.1 xcomponent API Change
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ciChanged the following APIs of the **xcomponent** component of the ArkUI subsystem:
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci - **getXComponentSurfaceId** and **setXComponentSurfaceSize**: Removed the **@systemapi** tag.
8e41f4b71Sopenharmony_ci - **getXComponentSurfaceId**, **getXComponentContext**, and **setXComponentSurfaceSize**: Specified return value types.
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ciYou need to adapt your application based on the following information.
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Change Impact**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciReleased JS APIs are affected. The application needs to adapt these APIs so that it can be properly compiled in the SDK environment of the new version.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci**Key API/Component Changes**
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci - **getXComponentSurfaceId**: is changed to a public API, with its return value type specified as string.
20e41f4b71Sopenharmony_ci - **setXComponentSurfaceSize**: is changed to a public API, with its return value type specified as void.
21e41f4b71Sopenharmony_ci - **getXComponentContext**: has its return value type specified as object.
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci**Adaptation Guide**
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ciStartup rules for different scenarios are as follows:
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ciAdaptions to be made:
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci  - **getXComponentSurfaceId**
30e41f4b71Sopenharmony_ci    - In OpenHarmony 3.2 Beta3:
31e41f4b71Sopenharmony_ci      - System API
32e41f4b71Sopenharmony_ci      - No specified return value
33e41f4b71Sopenharmony_ci    - In OpenHarmony 3.2 Beta4:
34e41f4b71Sopenharmony_ci      - Public API
35e41f4b71Sopenharmony_ci      - Return value type specified as string
36e41f4b71Sopenharmony_ci      - You need to process the return value as a string.
37e41f4b71Sopenharmony_ci  - **setXComponentSurfaceSize**
38e41f4b71Sopenharmony_ci    - In OpenHarmony 3.2 Beta3:
39e41f4b71Sopenharmony_ci      - System API
40e41f4b71Sopenharmony_ci      - No specified return value
41e41f4b71Sopenharmony_ci    - In OpenHarmony 3.2 Beta4:
42e41f4b71Sopenharmony_ci      - Public API
43e41f4b71Sopenharmony_ci      - Return value type specified as void
44e41f4b71Sopenharmony_ci      - You need to process the return value as a void.
45e41f4b71Sopenharmony_ci  - **getXComponentContext**
46e41f4b71Sopenharmony_ci    - In OpenHarmony 3.2 Beta3:
47e41f4b71Sopenharmony_ci      - No specified return value
48e41f4b71Sopenharmony_ci    - In OpenHarmony 3.2 Beta4:
49e41f4b71Sopenharmony_ci      - Return value type specified as object
50e41f4b71Sopenharmony_ci      - You need to process the return value as an object.
51e41f4b71Sopenharmony_ci        
52e41f4b71Sopenharmony_ci## cl.arkui.2 Change of Styles of Popup Component and APIs
53e41f4b71Sopenharmony_ci
54e41f4b71Sopenharmony_ciThe styles of the **alertDialog**, **actionSheet**, and **customDialog** components, as well as the **prompt** and **promptAction** APIs were changed. Specifically speaking:
55e41f4b71Sopenharmony_ci
56e41f4b71Sopenharmony_ciThe popup background blurring effect is added to **promptAction.showDialog**, **promptAction.showActionMenu**, **alertDialog**, **actionSheet**, and **customDialog**.
57e41f4b71Sopenharmony_ci
58e41f4b71Sopenharmony_ci**Change Impact**
59e41f4b71Sopenharmony_ci
60e41f4b71Sopenharmony_ciThe popup background blurring effect is set by default.
61e41f4b71Sopenharmony_ci
62e41f4b71Sopenharmony_ci**Key API/Component Changes**
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ciAPIs: **promptAction.showDialog** and **promptAction.showActionMenu;**
65e41f4b71Sopenharmony_ciComponents: **alertDialog**, **actionSheet**, and **customDialog**
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci**Adaptation Guide**
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ciNo adaptation is required.
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ci## cl.arkui.3 Supplementation of the Initialization Mode and Restriction Verification Scenarios of Custom Components' Member Variables
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ciAdded verification for scenarios previously left out concerning initialization of custom components' member variables.
74e41f4b71Sopenharmony_ci
75e41f4b71Sopenharmony_ci
76e41f4b71Sopenharmony_ci**Change Impact**
77e41f4b71Sopenharmony_ci
78e41f4b71Sopenharmony_ciIf custom components' member variables are initialized or assigned with values not according to the document specifications, an error will be reported during compilation.
79e41f4b71Sopenharmony_ci
80e41f4b71Sopenharmony_ci**Key API/Component Changes**
81e41f4b71Sopenharmony_ci
82e41f4b71Sopenharmony_ciN/A
83e41f4b71Sopenharmony_ci
84e41f4b71Sopenharmony_ci**Adaptation Guide**
85e41f4b71Sopenharmony_ci
86e41f4b71Sopenharmony_ciMake modification according to specifications in the above document.
87e41f4b71Sopenharmony_ci
88e41f4b71Sopenharmony_ci## cl.arkui.4 Supplementation of Verification Scenarios of Value Assignment Restrictions on Member Variables of Custom Parent Components and Child Components
89e41f4b71Sopenharmony_ci
90e41f4b71Sopenharmony_ciAdded verification for scenarios previously left out concerning value assignment of member variables of custom parent components and child components.
91e41f4b71Sopenharmony_ci
92e41f4b71Sopenharmony_ci
93e41f4b71Sopenharmony_ci**Change Impact**
94e41f4b71Sopenharmony_ci
95e41f4b71Sopenharmony_ciIf member variables of the parent component or child component are initialized not according to the document specifications, an error will be reported during compilation.
96e41f4b71Sopenharmony_ci
97e41f4b71Sopenharmony_ci**Key API/Component Changes**
98e41f4b71Sopenharmony_ci
99e41f4b71Sopenharmony_ciN/A
100e41f4b71Sopenharmony_ci
101e41f4b71Sopenharmony_ci**Adaptation Guide**
102e41f4b71Sopenharmony_ci
103e41f4b71Sopenharmony_ciMake modification according to specifications in the above document, using other decorators or normal member variables for value assignment.
104e41f4b71Sopenharmony_ci
105e41f4b71Sopenharmony_ci## cl.arkui.5 Supplementation of Verification for a Single Child Component
106e41f4b71Sopenharmony_ci
107e41f4b71Sopenharmony_ciAdded verification for a single child component for the following components: **Button**, **FlowItem**, **GridItem**, **GridCol**, **ListItem**, **Navigator**, **Refresh**, **RichText**, **ScrollBar**, **StepperItem**, and **TabContent**.
108e41f4b71Sopenharmony_ci
109e41f4b71Sopenharmony_ci**Change Impact**
110e41f4b71Sopenharmony_ci
111e41f4b71Sopenharmony_ciIf one of the preceding components contains more than one child component, an error will be reported during compilation.
112e41f4b71Sopenharmony_ci
113e41f4b71Sopenharmony_ci**Key API/Component Changes**
114e41f4b71Sopenharmony_ci
115e41f4b71Sopenharmony_ci```js
116e41f4b71Sopenharmony_ciRichText('RichText') {
117e41f4b71Sopenharmony_ci    Text('Text1')
118e41f4b71Sopenharmony_ci    Text('Text2')
119e41f4b71Sopenharmony_ci}
120e41f4b71Sopenharmony_ci/* ArkTS:ERROR File: /root/newOH/developtools/ace-ets2bundle/compiler/sample/pages/home.ets:25:7
121e41f4b71Sopenharmony_ci The component 'RichText' can only have a single child component. */
122e41f4b71Sopenharmony_ci```
123e41f4b71Sopenharmony_ci
124e41f4b71Sopenharmony_ci**Adaptation Guide**
125e41f4b71Sopenharmony_ci
126e41f4b71Sopenharmony_ciMake modification based on the error message. Make sure that the specified component contains only one child component.
127