1 Star 0 Fork 5.3K

Yj / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ts-parameterless-configuration.md 362 Bytes
一键复制 编辑 原始数据 按行查看 历史
zengyawen 提交于 2022-01-29 22:23 . update docs

无构造参数配置

组件的接口定义不包含必选构造参数,组件后面的“()”中不需要配置任何内容。例如,Divider组件不包含构造参数:

Column() {
    Text('item 1')
    Divider() // No parameter configuration of the divider component
    Text('item 2')
}
1
https://gitee.com/yj404/docs.git
git@gitee.com:yj404/docs.git
yj404
docs
docs
master

搜索帮助