We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
H5
https://github.com/Mr-sgreen/taro-bug 浏览器版本: Chrome 96.0.4664.110 使用框架: Vue 3
Taro.showModal({ title: '温馨提示', content: '记得按时吃饭', showCancel: false, confirmColor: '#276FF5', confirmText: '知道了', });
正常弹出Modal
无法弹出Modal,查看控制台报错: showModal:fail parameter error: parameter.cancelText should be String instead of Undefined
Taro CLI 3.3.17 environment info: System: OS: Windows 10 Binaries: Node: 14.15.5 - E:\Program Files\nodejs\node.EXE npm: 6.14.11 - E:\Program Files\nodejs\npm.CMD
1.猜测要么是ts的定义文件没更新为不允许为undefined 2.要么是内部代码没处理好,要么是我npm版本太低?导致编译出错?
The text was updated successfully, but these errors were encountered:
同样报错的字段还有: cancelColor confirmColor confirmText
Sorry, something went wrong.
之前好像是如果不传cancelText默认是为 ’取消‘ 的
官网的文档目前 cancelText cancelColor confirmColor confirmText 这几个字段也是显示非必填
@ZakaryCode @Chen-jj 目前React也有类似的问题
重复错误 #10949
No branches or pull requests
相关平台
H5
复现仓库
https://github.com/Mr-sgreen/taro-bug
浏览器版本: Chrome 96.0.4664.110
使用框架: Vue 3
复现步骤
Taro.showModal({
title: '温馨提示',
content: '记得按时吃饭',
showCancel: false,
confirmColor: '#276FF5',
confirmText: '知道了',
});
期望结果
正常弹出Modal
实际结果
无法弹出Modal,查看控制台报错: showModal:fail parameter error: parameter.cancelText should be String instead of Undefined
环境信息
补充信息
1.猜测要么是ts的定义文件没更新为不允许为undefined
2.要么是内部代码没处理好,要么是我npm版本太低?导致编译出错?
The text was updated successfully, but these errors were encountered: