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

主应用将element-ui传给子应用,子应用报错 #17

Open
daichunlin1995 opened this issue Apr 8, 2020 · 3 comments
Open

主应用将element-ui传给子应用,子应用报错 #17

daichunlin1995 opened this issue Apr 8, 2020 · 3 comments

Comments

@daichunlin1995
Copy link

warn $listeners and $attrs is readonly

error

@hql7
Copy link
Owner

hql7 commented Apr 8, 2020 via email

@daichunlin1995
Copy link
Author

好 谢谢

@mango-csl
Copy link

mango-csl commented Jun 28, 2020

library
预期效果:
目前我们项目element版本都是同一个版本
想要只用main项目里下载一次element,子应用就不用重复下载

目前的做法
所有项目的element都是通过 webpack 的 externals 去window上获取,
主应用负责引入,但是会出现 同样的问题“warn $listeners and $attrs is readonly”

library的方式跟这个是类似吧?

这个问题是由于vue.use 是单实例的原因?

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

3 participants