From 9c674f44fae5e14b5336612acb43b9d4e3704545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=98=E8=85=BE=E7=AC=94=E8=AE=B0?= Date: Thu, 9 Apr 2020 12:02:42 +0800 Subject: [PATCH] Update prompt.md --- docs/api/ui/prompt.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/api/ui/prompt.md b/docs/api/ui/prompt.md index 4f46ebc91..0621cd7fd 100644 --- a/docs/api/ui/prompt.md +++ b/docs/api/ui/prompt.md @@ -93,13 +93,13 @@ setTimeout(function () { uni.hideLoading(); }, 2000); ``` - -**注意** - -- `showToast` 和 `showLoading` 是底层同一个(按的小程序的设计),所以 `showToast` 和 `showLoading` 会相互覆盖,而 `hideLoading` 也会关闭 `showToast` 。 -- 冲突解决方案: - + App:使用 `plus` 接口或者 `uni.showToast` 配置 `position` 参数 - + 非App:其中一个使用自定义组件实现。 + +**注意** + +- `showToast` 和 `showLoading` 是底层同一个(按的小程序的设计),所以 `showToast` 和 `showLoading` 会相互覆盖,而 `hideLoading` 也会关闭 `showToast` 。 +- 冲突解决方案: + + App:使用 [plus.nativeUI.toast](http://www.html5plus.org/doc/zh_cn/nativeui.html#plus.nativeUI.toast) 接口 + + 非App:其中一个使用自定义组件实现。 ### uni.showModal(OBJECT) -- GitLab