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

全局inject无效 #6

Open
vm0100 opened this issue Aug 26, 2019 · 0 comments
Open

全局inject无效 #6

vm0100 opened this issue Aug 26, 2019 · 0 comments

Comments

@vm0100
Copy link

vm0100 commented Aug 26, 2019

wux: { config: { inject: true } }
如果是这样 将inject设置为true则没问题,但是 如果将jnject设置为如inject: ["icon", "toast", "dialog", "loading"],那么这些组件不会注入到usingComponents

应该将inject:[] 做全局注入,数组中组件应注入到每个页面

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

1 participant