Fetch the repository succeeded.
This action will force synchronization from OpenHarmony/docs, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
本文档将介绍组件的基本概念以及如何按照规范定义组件。
OpenHarmony软件以组件(bundle)作为基本单元,从系统角度看,凡是运行在OpenHarmony上的软件都可以定义为组件;一般来讲,根据组件的应用范围,可以分为:
从形式上看,组件是为复用而生,一切可以复用的模块都可以定义为组件,可以分为:
原则上应尽可能划分为细颗粒度的组件,以满足最大限度的复用。主要考虑以下几点:
组件的依赖关系分为两种:必选依赖和可选依赖。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。