Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taro.showModal 使用时 cancelText 未定义 #5720

Closed
chenxinbin opened this issue Mar 17, 2020 · 3 comments
Closed

Taro.showModal 使用时 cancelText 未定义 #5720

chenxinbin opened this issue Mar 17, 2020 · 3 comments
Assignees

Comments

@chenxinbin
Copy link

问题描述

使用showModal时,默认取消按钮文本显示为undefined。

复现步骤

如下面代码所示,代码在微信小程序中正常,但是在支付宝小程序中 取消按钮 文本显示为 undefined, 必须在js代码中写 cancelText: '取消', 才可以。

`    Taro.showModal({
      title: '删除确认',
      content: '确认删除吗?删除后,数据将丢失!如果队列不为空或状态已开启则无法删除!',
    }).then(res => {})`

期望行为

期待支付宝和微信平台一致,不需要显式定义 cancelText

报错信息

无报错

系统信息

C:\Users\xinbin>taro info
👽 Taro v2.0.5

Taro CLI 2.0.5 environment info:
System:
OS: Windows 10
Binaries:
Node: 12.16.1 - C:\Program Files\nodejs\node.EXE
npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD

@taro-bot
Copy link

taro-bot bot commented Mar 17, 2020

CC @Chen-jj

@taro-bot
Copy link

taro-bot bot commented Mar 17, 2020

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 29, 2020

应该是支付宝 API 的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants