-
Notifications
You must be signed in to change notification settings - Fork 258
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
Dialog和Toast函数形式无法使用 #2428
Comments
我看官网的demo是正常的,需要更详细的信息 |
因为官网是h5, 官网toast组件介绍最上面写着,taro内不能使用函数式调用,并且没有介绍在小程序内使用需要提前挂载一个dom节点 |
对话框那里没写着不能使用,还是用不了,是不是也得像上面那样封装一层 |
看Dialog文档入参介绍,open和close方法都有id入参,组件库源码里也有selector相关逻辑,https://github.com/jdf2e/nutui-react/blob/next/src/packages/dialog/dialog.taro.tsx |
确实存在这个问题,按照官方demo是无法使用的 |
NutUI React 包名
@nutui/nutui-react
NutUI React 版本号
2.6.4
平台
weapp
重现链接
https://github.com/jdf2e/nutui-react/issues/new?assignees=&labels=&projects=&template=bug_report_template.yml
重现步骤
官方文档直接粘贴过去都没用
期望的结果是什么?
出现弹窗
实际的结果是什么?
点击事件触发,弹窗未出现
环境信息
Binaries:
Node: 18.17.0 - E:\nvm\node.js\node.EXE
Yarn: 1.22.22 - E:\nvm\node_global\yarn.CMD
npm: 9.6.7 - E:\nvm\node.js\npm.CMD
npmPackages:
@tarojs/cli: 3.6.28 => 3.6.28
@tarojs/components: 3.6.28 => 3.6.28
@tarojs/helper: 3.6.28 => 3.6.28
@tarojs/plugin-framework-react: 3.6.28 => 3.6.28
@tarojs/plugin-html: 3.6.28 => 3.6.28
@tarojs/plugin-platform-alipay: 3.6.28 => 3.6.28
@tarojs/plugin-platform-h5: 3.6.28 => 3.6.28
@tarojs/plugin-platform-jd: 3.6.28 => 3.6.28
@tarojs/plugin-platform-qq: 3.6.28 => 3.6.28
@tarojs/plugin-platform-swan: 3.6.28 => 3.6.28
@tarojs/plugin-platform-tt: 3.6.28 => 3.6.28
@tarojs/plugin-platform-weapp: 3.6.28 => 3.6.28
@tarojs/react: 3.6.28 => 3.6.28
@tarojs/runtime: 3.6.28 => 3.6.28
@tarojs/shared: 3.6.28 => 3.6.28
@tarojs/taro: 3.6.28 => 3.6.28
@tarojs/taro-loader: 3.6.28 => 3.6.28
@tarojs/webpack5-runner: 3.6.28 => 3.6.28
babel-preset-taro: 3.6.28 => 3.6.28
eslint-config-taro: 3.6.28 => 3.6.28
react: ^18.0.0 => 18.3.1
其他补充信息
No response
The text was updated successfully, but these errors were encountered: