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

uni-popup-dialog 输入值数据双向绑定初始化在微信小程序端不生效 #876

Open
cssmagic opened this issue Apr 10, 2024 · 6 comments

Comments

@cssmagic
Copy link

cssmagic commented Apr 10, 2024

关于 “uni-popup-dialog 输入值数据双向绑定初始化” 这个问题,之前 PR #869 做了一版修复,在 H5 端可以正常使用了。

但实测发现微信小程序端还是没有效果。(暂时没有验证其他小程序端和 App 端。)

@18148764734
Copy link
Contributor

可能是npm包不是最新的,你下载插件市场最新的插件然后覆盖掉npm包里面的popup插件试试,插件市场上的我测试了小程序没问题

@cssmagic
Copy link
Author

我是用同一套代码和依赖编译出的 H5 和小程序。我也奇怪为什么效果不一样。

我再试试。谢谢回复。

@18148764734
Copy link
Contributor

我是用同一套代码和依赖编译出的 H5 和小程序。我也奇怪为什么效果不一样。

我再试试。谢谢回复。

更新到最新版还会复现该问题吗

@cssmagic
Copy link
Author

cssmagic commented May 8, 2024

抱歉,最近还没来得及详细确认。

初步怀疑是我本地 pnpm 更新依赖不生效的问题,因为另一个项目也出现类似现象。

@cssmagic
Copy link
Author

cssmagic commented May 8, 2024

今日简单测试:

我把 node_modules 目录删掉,换了一个包管理器(原来是 Yarn,现在换成 pnpm),重新安装依赖,重新构建,仍然是相同现象——H5 端可以,微信小程序端不行。

我看了本地安装的 @dcloudio/uni-ui 依赖,版本是正确的 1.5.5

也看了本地的 ./node_modules/@dcloudio/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue 文件,代码内容是正确的。

@cssmagic
Copy link
Author

cssmagic commented May 8, 2024

你下载插件市场最新的插件然后覆盖掉npm包里面的popup插件试试

抱歉,我对相关操作不熟悉,这个项目也是用 Node 方式开发的,所以暂时没有按这个方式测试。

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