From 585d893cbf6c169f8b3ed38a88276f4dc7c6a1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=98=E8=85=BE=E7=AC=94=E8=AE=B0?= Date: Tue, 14 Apr 2020 13:55:49 +0800 Subject: [PATCH] Update prompt.md --- docs/api/ui/prompt.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/api/ui/prompt.md b/docs/api/ui/prompt.md index 0621cd7fda..4779d1a864 100644 --- a/docs/api/ui/prompt.md +++ b/docs/api/ui/prompt.md @@ -43,7 +43,10 @@ uni.showToast({ **Tips** -App端可通过[plus.nativeUI.toast API](https://www.html5plus.org/doc/zh_cn/nativeui.html#plus.nativeUI.toast)实现更多功能。 +- App端可通过[plus.nativeUI.toast API](https://www.html5plus.org/doc/zh_cn/nativeui.html#plus.nativeUI.toast)实现更多功能。 +- `showToast` 和 `showLoading` 是底层同一个(按的小程序的设计),所以 `showToast` 和 `showLoading` 会相互覆盖,而 `hideLoading` 也会关闭 `showToast` 。冲突解决方案: + + App:使用 [plus.nativeUI.toast](http://www.html5plus.org/doc/zh_cn/nativeui.html#plus.nativeUI.toast) 接口 + + 非App:其中一个使用自定义组件实现。 ### uni.hideToast() @@ -96,8 +99,7 @@ setTimeout(function () { **注意** -- `showToast` 和 `showLoading` 是底层同一个(按的小程序的设计),所以 `showToast` 和 `showLoading` 会相互覆盖,而 `hideLoading` 也会关闭 `showToast` 。 -- 冲突解决方案: +- `showToast` 和 `showLoading` 是底层同一个(按的小程序的设计),所以 `showToast` 和 `showLoading` 会相互覆盖,而 `hideLoading` 也会关闭 `showToast` 。冲突解决方案: + App:使用 [plus.nativeUI.toast](http://www.html5plus.org/doc/zh_cn/nativeui.html#plus.nativeUI.toast) 接口 + 非App:其中一个使用自定义组件实现。 -- GitLab