diff --git a/docs/plugin/uts-component.md b/docs/plugin/uts-component.md index 0daad4ac36e522e35909baf4bc03554a0204ba8c..c3c5e4bdf1f70ee3aa09c9671e1656747f6c08cc 100644 --- a/docs/plugin/uts-component.md +++ b/docs/plugin/uts-component.md @@ -44,11 +44,16 @@ UTS组件,与Vue组件区别在于,它秉承了UTS的跨平台特性,统 以lottie动画组件为例,本章节提到全部示例源码可以在Hello UTS 中找到 -#### 3.1 目录结构 +#### 3.1 创建组件 -组件的目录结构和插件一样: +UTS组件的创建过程与UTS插件一样。 -![生命周期](https://native-res.dcloud.net.cn/images/uts/component/image1.png) +选中 项目目录/uni_modules 右键 新建组件 + +#### 3.2 目录结构 + + +![目录结构](https://native-res.dcloud.net.cn/images/uts/component/image1.png) 入口文件是index.vue