“a224019056b9767e827a48c72b2e8a9270e04d79”上不存在“...fluid/platform/git@gitcode.net:RobotFutures/Paddle.git”
提交 83fb20cd 编写于 作者: E ester.zhou

Update docs (16587)

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 f44d928a
...@@ -83,7 +83,7 @@ struct bindPopupPage { ...@@ -83,7 +83,7 @@ struct bindPopupPage {
} }
``` ```
![datePicker](../../application-dev/reference/arkui-ts/figures/datePicker.gif) ![datePicker](figures/restrictions-data-type-declarations.gif)
2. The data type declaration of the **@State**, **@Provide**, **@Link**, or **@Consume** decorated state variables can consist of only one of the primitive data types or reference data types. 2. The data type declaration of the **@State**, **@Provide**, **@Link**, or **@Consume** decorated state variables can consist of only one of the primitive data types or reference data types.
...@@ -232,3 +232,26 @@ struct Child { ...@@ -232,3 +232,26 @@ struct Child {
} }
} }
``` ```
## Restrictions on Naming Custom Components, Classes, and Functions
The name of a custom component, class, or function cannot be the same as any system component name.
Example:
```
// Rect.ets
export class Rect {
constructor(){}
}
// Index.ets
// ERROR: The module name 'Rect' can not be the same as the inner component name.
import { Rect } from './Rect';
@Entry
@Component
struct Index {
build() {
}
}
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册