未验证 提交 58fbd1d4 编写于 作者: B Bo Jiang 提交者: Gitee

update zh-cn/release-notes/changelogs/OpenHarmony_4.0.8.2/changelogs-arkui.md.

Signed-off-by: NBo Jiang <jiangbo91@huawei.com>
上级 718c05c0
...@@ -22,7 +22,7 @@ struct DatePickerExample { ...@@ -22,7 +22,7 @@ struct DatePickerExample {
**变更影响** **变更影响**
如果状态装饰器变量没有显式声明变量类型,声明any,编译拦截报错 如果状态装饰器变量没有显式声明变量类型,声明any,编译拦截等级由WARN变成ERROR
```ts ```ts
// ArkTS:ERROR Please define an explicit type, not any. // ArkTS:ERROR Please define an explicit type, not any.
...@@ -68,6 +68,10 @@ struct Child { ...@@ -68,6 +68,10 @@ struct Child {
} }
``` ```
**变更影响**
如果父组件初始化`@LocalStorageLink`, `@LocalStorageProp`修饰的变量,编译拦截等级由WARN变成ERROR。
**关键的接口/组件变更** **关键的接口/组件变更**
不涉及。 不涉及。
...@@ -76,4 +80,5 @@ struct Child { ...@@ -76,4 +80,5 @@ struct Child {
构造子组件时,不对子组件的`@LocalStorageLink`, `@LocalStorageProp`修饰的变量进行赋值。 构造子组件时,不对子组件的`@LocalStorageLink`, `@LocalStorageProp`修饰的变量进行赋值。
如果需要在父组件中修改子组件的`@LocalStorageLink`, `@LocalStorageProp`修饰的变量,则使用LocalStorage提供的API接口方法(比如set方法)赋值。 如果需要在父组件中修改子组件的`@LocalStorageLink`, `@LocalStorageProp`修饰的变量,则使用LocalStorage提供的API接口方法(比如set方法)赋值。
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册