From 3a8ae55e6c8ee7a888b77880cf44173000154022 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Thu, 11 Jul 2024 04:15:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=94=AF=E6=8C=81=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/component/editor.md | 2 ++ docs/component/label.md | 2 ++ docs/component/map.md | 6 ++++++ docs/component/movable-area.md | 8 ++++++++ docs/component/movable-view.md | 8 ++++++++ docs/component/picker.md | 4 ++++ 6 files changed, 30 insertions(+) diff --git a/docs/component/editor.md b/docs/component/editor.md index e6ff7c12..195ad192 100644 --- a/docs/component/editor.md +++ b/docs/component/editor.md @@ -4,6 +4,8 @@ +App平台推荐使用web-view来加载网页版的富文本编辑器。不限于uni-app的editor组件,使用任意网页版富文本编辑器都可以。 + diff --git a/docs/component/label.md b/docs/component/label.md index f24e0eee..f721deed 100644 --- a/docs/component/label.md +++ b/docs/component/label.md @@ -4,6 +4,8 @@ +App平台可以用view加事件来替代label。 + diff --git a/docs/component/map.md b/docs/component/map.md index 3020edd7..a056ac96 100644 --- a/docs/component/map.md +++ b/docs/component/map.md @@ -4,6 +4,12 @@ +App平台解决方式: +1. [插件市场有三方插件](https://ext.dcloud.net.cn/search?q=%E5%9C%B0%E5%9B%BE&orderBy=Relevance&uni-appx=1) +2. 使用web-view中的地图 + +也欢迎到需求墙投票:[https://vote.dcloud.net.cn/#/?name=uni-app%20x](https://vote.dcloud.net.cn/#/?name=uni-app%20x) + diff --git a/docs/component/movable-area.md b/docs/component/movable-area.md index 36464b54..fb35c825 100644 --- a/docs/component/movable-area.md +++ b/docs/component/movable-area.md @@ -4,6 +4,14 @@ +之所以有movable-area和movable-view,是因为逻辑层和视图层分离,从视图层发送数据给逻辑层,处理后再传回视图层会产生损耗,导致拖动卡顿。 + +于是通过一个框架实现好的组件,在视图层内部处理拖动,避免来回通信。 + +在uni-app和小程序上确实存在这个问题,但在uni-app x的web和app上其实都不存在通信损耗。 + +在hello uni-app x里有示例,可以自由的监听view的拖动并移动其位置。[详见](https://gitcode.net/dcloud/hello-uni-app-x/-/blob/alpha/pages/component/general-event/touch-event.uvue) + diff --git a/docs/component/movable-view.md b/docs/component/movable-view.md index cfbf2edf..36c441a5 100644 --- a/docs/component/movable-view.md +++ b/docs/component/movable-view.md @@ -4,6 +4,14 @@ +之所以有movable-area和movable-view,是因为逻辑层和视图层分离,从视图层发送数据给逻辑层,处理后再传回视图层会产生损耗,导致拖动卡顿。 + +于是通过一个框架实现好的组件,在视图层内部处理拖动,避免来回通信。 + +在uni-app和小程序上确实存在这个问题,但在uni-app x的web和app上其实都不存在通信损耗。 + +在hello uni-app x里有示例,可以自由的监听view的拖动并移动其位置。[详见](https://gitcode.net/dcloud/hello-uni-app-x/-/blob/alpha/pages/component/general-event/touch-event.uvue) + diff --git a/docs/component/picker.md b/docs/component/picker.md index 88ee2369..0a5697c0 100644 --- a/docs/component/picker.md +++ b/docs/component/picker.md @@ -4,6 +4,10 @@ +App平台可改用[picker-view](picker-view.md)。 + +主流的uni-app x三方ui库中,基本都有封装好的弹出组件。包括uni ui的[uni-data-picker](https://ext.dcloud.net.cn/plugin?id=3796)也支持uni-app x,可以随意装载城市或其他数据。 + -- GitLab