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

当我把z-paging的ref用zPaging命名变量时,页面怎么都不会触发查询 #182

Open
kobelhn opened this issue Jan 8, 2025 · 1 comment

Comments

@kobelhn
Copy link

kobelhn commented Jan 8, 2025

编译平台
使用HbuilderX还是npm方式编译出现的问题?(如:HbuilderX)
npm
VUE版本
在vue2还是vue3中出现的问题,是nvue还是vue?(如:vue2+nvue)
vue3
运行平台
在运行到哪个平台中出现的问题?(如:App、微信小程序、h5)
微信小程序
z-paging版本
在哪个版本的z-paging中出现的问题?
2.8.4
问题描述
请详细描述问题,最好说明复现步骤,尽可能附上代码或截图
image
第一次用,当我把z-paging的ref用zPaging命名变量时,页面怎么都不会触发查询,z-paging无法正常使用,但是换一个变量名就可以了,谁能解释下为什么吗?

@SmileZXLee
Copy link
Owner

可能是因为zPaging这个变量名和组件名相同(zPaging同时也是一个组件)而导致的冲突,换个名就行。

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