组件介绍

组件(Component)是构建页面的核心,每个组件通过对数据和方法的简单封装,实现独立的可视、可交互功能单元。组件之间相互独立,随取随用,也可以在需求相同的地方重复使用。

组件分类

根据组件的功能,可以分为以下四大类:

组件类型

主要组件

基础组件

text、image、progress、rating、span、marquee、image-animator、divider、search、menu、chart

容器组件

div、list、list-item、stack、swiper、tabs、tab-bar、tab-content、list-item-group、refresh、dialog

画布组件

canvas