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
微信小程序
小程序基础库: 2.16.0 使用框架: React
<van-dialog useTitleSlot useSlot title="标题" show={this.state.show} cancelButtonText={data.cancelButtonText} cancelButtonColor="#999999" confirmButtonText={data.confirmButtonText} confirmButtonColor="#AD9174" showCancelButton beforeClose={this.beforeClose} onCancel={() => this.onParticipate(false)} onConfirm={this.onConfirm.bind(this)} />
当 传递 beforeClose 切值是一个函数的同时。这个 值在vant 的组件中就还是 null 如果不是 函数。则有效 使用ref查看组件传递 发现没有这个属性
props 函数有效
无效
Taro CLI 3.1.4 environment info: System: OS: macOS 10.15.7 Shell: 3.2.57 - /bin/bash Binaries: Node: 12.18.3 - ~/.nvm/versions/node/v12.18.3/bin/node Yarn: 1.22.10 - ~/.nvm/versions/node/v12.18.3/bin/yarn npm: 7.5.6 - ~/.nvm/versions/node/v12.18.3/bin/npm
The text was updated successfully, but these errors were encountered:
我想是taro重写的渲染机制把 函数 给过滤掉了或者当成了 事件?但是我不清楚这部分代码在哪里。所以不清楚了。只是我的假设
Sorry, something went wrong.
@LengYXin 找到解决办法了吗?
No branches or pull requests
相关平台
微信小程序
小程序基础库: 2.16.0
使用框架: React
复现步骤
当 传递 beforeClose 切值是一个函数的同时。这个 值在vant 的组件中就还是 null 如果不是 函数。则有效
使用ref查看组件传递 发现没有这个属性
期望结果
props 函数有效
实际结果
无效
环境信息
The text was updated successfully, but these errors were encountered: