ts-function-build.md 579 字节
Newer Older
G
ge-yafang 已提交
1
# build Function
Z
zengyawen 已提交
2 3


G
ge-yafang 已提交
4 5 6 7
The build function meets the definition of the Builder API and is used to define the declarative UI description of components. Components must comply with the preceding Builder API constraints. Custom or preset components are combined in declarative mode in the build method. The build method is called when a component is created or updated.


  
Z
zengyawen 已提交
8 9 10 11 12 13
```
interface Builder {
    build: () => void
}
```

G
ge-yafang 已提交
14 15 16

> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**:
> The build method supports only composite components and uses the rendering control syntax.