From c198c2a9476aaade0a979fafed47c5f6a051b483 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Tue, 19 Dec 2023 18:50:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20uts=20=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/plugin/_sidebar.md | 12 +- docs/plugin/uts-component.md | 1666 ++++++++++++++++++++++++++++++ docs/plugin/uts-for-android.md | 1483 ++++++++++++++++++++++++++ docs/plugin/uts-for-ios.md | 844 +++++++++++++++ docs/plugin/uts-ios-cocoapods.md | 293 ++++++ docs/plugin/uts-plugin.md | 1140 ++++++++++++++++++++ docs/plugin/uts-uni-api.md | 102 ++ 7 files changed, 5534 insertions(+), 6 deletions(-) create mode 100644 docs/plugin/uts-component.md create mode 100644 docs/plugin/uts-for-android.md create mode 100644 docs/plugin/uts-for-ios.md create mode 100644 docs/plugin/uts-ios-cocoapods.md create mode 100644 docs/plugin/uts-plugin.md create mode 100644 docs/plugin/uts-uni-api.md diff --git a/docs/plugin/_sidebar.md b/docs/plugin/_sidebar.md index e51ec602..ada5b42b 100644 --- a/docs/plugin/_sidebar.md +++ b/docs/plugin/_sidebar.md @@ -2,10 +2,10 @@ * [插件市场介绍](https://uniapp.dcloud.net.cn/plugin/plugin-ext-introduction.html) * [uni_modules](https://uniapp.dcloud.net.cn/plugin/uni_modules.html) * uts插件 - * [uts插件开发入门](https://uniapp.dcloud.net.cn/plugin/uts-plugin.html) - * [uts页面组件开发入门](https://uniapp.dcloud.net.cn/plugin/uts-component.html) - * [uts中使用uni api](https://uniapp.dcloud.net.cn/plugin/uts-uni-api.html) - * [Android平台uts开发指南](https://uniapp.dcloud.net.cn/plugin/uts-for-android.html) - * [iOS平台uts开发指南](https://uniapp.dcloud.net.cn/plugin/uts-for-ios.html) - * [使用CocoaPods依赖](https://uniapp.dcloud.net.cn/plugin/uts-ios-cocoapods.html) + * [uts插件开发入门](uts-plugin.md) + * [uts页面组件开发入门](uts-component.md) + * [uts中使用uni api](uts-uni-api.md) + * [Android平台uts开发指南](uts-for-android.md) + * [iOS平台uts开发指南](uts-for-ios.md) + * [使用CocoaPods依赖](uts-ios-cocoapods.md) * [插件作者专区](https://uniapp.dcloud.net.cn/plugin/publish.html) diff --git a/docs/plugin/uts-component.md b/docs/plugin/uts-component.md new file mode 100644 index 00000000..55ab656d --- /dev/null +++ b/docs/plugin/uts-component.md @@ -0,0 +1,1666 @@ +# UTS 组件开发 + +> 需HBuilderX 3.6.18 及之后版本 + +> app平台目前支持nvue/uvue,暂不支持vue + +UTS组件,是UTS插件的一个分支。UTS插件提供了原生API的扩展,而UTS组件提供了原生UI组件的开发模式。 + +组件是一种独立,可复用的UI单元,用于单独封装和承担一定的代码逻辑。 + +组件与插件的区别在于:前者以标签的形式,对外提供UI封装;后者则只提供API,虽然API可能涉及UI,但仍然是API,无法以标签方式在页面模板中引用。 + +比如`