You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.
Question Description: https://weex.apache.org/en/docs/modules/modal.html#confirm and https://weex.apache.org/en/docs/modules/modal.html#prompt In these two examples, There should be no duration, but okTitle or cancelTitle. Both of these are modal dialogs and there is no possibility of a duration parameter. In addition, if the modal.confirm callback has a Boolean result, it means that clicking OK or cancel is better, so the code is more versatile and logically more reasonable.
Please give us a PR, thanks.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://weex.apache.org/zh/docs/modules/modal.html#confirm
和
https://weex.apache.org/zh/docs/modules/modal.html#prompt
这两个样例中,不应该出现duration,而应该以okTitle或cancelTitle。
这两个都是模态对话框,不可能有duration参数的。
另,modal.confirm的callback若以布尔型结果,表示点击确定或取消为更好,这样代码通用性更强,逻辑上也更合理。
The text was updated successfully, but these errors were encountered: