antvis / F2

📱📈An elegant, interactive and flexible charting library for mobile.
https://f2.antv.vision/zh
MIT License
7.89k stars 649 forks source link

关于Vue3 Vite 无法接入F2问题,一点解决方法 #1748

Open parmery opened 1 year ago

parmery commented 1 year ago

Reproduction link

https://github.com/antvis/F2/issues/1742

Steps to reproduce

"vue": "^3.2.47", "vant": "^4.0.11", "@antv/f2": "^4.0.41",

根据文档中的示例,跑不通, 各种提示问题。 因为在大概2周前使用vue3 成功接入,感觉接入F2应该是没有问题。

有看到第二个例子 https://github.com/antvis/FEngine/tree/master/packages/f-vue/examples/vite

发现一个问题 在网站文档引入的是@antv/f-vue 而在 上面的例子中却引入的是 @antv/f2-vue 更改后正确使用,各位使用F2 4.X的可以尝试一下

Environment Info
f2 4.0.41
System windows 11
Browser chrome
ZhengZhiQI commented 1 year ago

感谢,有用