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

svg路径path点击无效 #106

Open
aliang888 opened this issue Jun 20, 2022 · 1 comment
Open

svg路径path点击无效 #106

aliang888 opened this issue Jun 20, 2022 · 1 comment

Comments

@aliang888
Copy link

aliang888 commented Jun 20, 2022

svg子元素path点击事件无效,翻遍网络,没有找到解决办法
找到的解决方法是设置path的宽度,高度,但这样子太不科学了吧
比如说,中国地图,那么多路径,省,市,区不可能一个个去设置width,height啊
这些路径都是不规则的啊,没有其它解决办法了吗?
@dntzhang

@dntzhang
Copy link
Owner

只能根据path算出一个 box。box就有 width和height了

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