From 9f6bb4cb68d232a22a418873f3a3ff6c76a7aaed Mon Sep 17 00:00:00 2001 From: duqingquan Date: Tue, 3 Jan 2023 19:48:42 +0800 Subject: [PATCH] =?UTF-8?q?uts=20=E7=BB=84=E4=BB=B6=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=8C=81=E7=BB=AD=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/plugin/uts-component.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/plugin/uts-component.md b/docs/plugin/uts-component.md index 0daad4ac3..c3c5e4bdf 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 -- GitLab