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

checker 组件,无法点击checker-item,点击报错 #2147

Closed
WebpandaLin opened this issue Oct 31, 2017 · 10 comments
Closed

checker 组件,无法点击checker-item,点击报错 #2147

WebpandaLin opened this issue Oct 31, 2017 · 10 comments

Comments

@WebpandaLin
Copy link

之前测试是可以点击的,样式什么的都有,今天突然就点击报错了,百度过了,好像要改到源码,求教作者君和各位大神,谢谢
image

@airyland
Copy link
Owner

非报错,仅仅是 chrome 的提示,暂时可以不关注。

@WebpandaLin
Copy link
Author

作者君回答我问题好激动!!不好点击怎么办,我把deno里的checker示例代码复制到项目里还是不好点击;但是在使用checker组件的时候我只修改了样式,为啥会这样呢
image
这是代码截图,是不是我写的有问题?但是一开始是可以用的啊...

@airyland
Copy link
Owner

airyland commented Oct 31, 2017

<checker> 里子元素只能是 checker-item,demo 里应该没有在 checker 里加 div 的情况。
帖文字版代码,不要截图。

@WebpandaLin
Copy link
Author

demo是没有这样的,是项目效果图和demo展示的样式不一样后修改的,需要做成这样的
image
所以就写成了checker里嵌套div这种的

@Jayson1004
Copy link

我也是在checker里面加div是可以的

个人
公司

@Jayson1004
Copy link

_20171031141722
_20171031141738

@WebpandaLin
Copy link
Author

问题已经解决了
dz 8 a s3 2o 9ymog 7i
问了主任,主任说是因为全边框的时候这种方式的绝对定位布局覆盖了整个框子,后来把vux-1px去掉之后就可以点击了

@WebpandaLin
Copy link
Author

image

@airyland
Copy link
Owner

你提问时直接上完整代码应该可以省下很多时间。。

@WebpandaLin
Copy link
Author

没想到边框会影响,以为不好点击只是组件的问题...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants