提交 4989ff25 编写于 作者: B bojiang

jiangbo91@huawei.com

Signed-off-by: Nbojiang <jiangbo91@huawei.com>
Change-Id: If981a2293bc95ddf91415a7f2c92866eee9da1f3
上级 8e08046a
...@@ -149,7 +149,7 @@ struct LocalStorageComponent { ...@@ -149,7 +149,7 @@ struct LocalStorageComponent {
}) })
Text(JSON.stringify(this.simpleVarName)) Text(JSON.stringify(this.simpleVarName))
.fontSize(50) .fontSize(50)
LocalStorageComponentProp({ simpleVarName: $simpleVarName }) LocalStorageComponentProp();
} }
.height(500) .height(500)
} }
......
...@@ -401,7 +401,7 @@ setOrCreate\<T>(propName: string, newValue: T): boolean ...@@ -401,7 +401,7 @@ setOrCreate\<T>(propName: string, newValue: T): boolean
| 类型 | 描述 | | 类型 | 描述 |
| ------- | ------------------------------------------------------------ | | ------- | ------------------------------------------------------------ |
| boolean | 如果已存在与给定键名字相同的属性,更新其值且返回true。如果不存在具有给定名称的属性,在LocalStorage中创建具有给定默认值的新属性,默认值必须是T类型不允许undefined 或 null 。 | | boolean | 如果已存在与给定键名字相同的属性,更新其值且返回true。如果不存在具有给定名称的属性,在LocalStorage中创建具有给定默认值的新属性,默认值必须是T类型不允许undefined 或 null 。 |
```ts ```ts
this.storage = new LocalStorage(); this.storage = new LocalStorage();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册