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

怎么动态注册components下面所有文件的组件实例 #1391

Closed
ChYuanJinlin opened this issue Aug 4, 2023 · 3 comments
Closed

怎么动态注册components下面所有文件的组件实例 #1391

ChYuanJinlin opened this issue Aug 4, 2023 · 3 comments
Labels

Comments

@ChYuanJinlin
Copy link

Clear and concise description of the problem

我我想动态获取components下面所有文件的组件实例,这个要怎么搞

Suggested solution

vite 可以用import.meta.glob 但是这个不行

Alternative

No response

Additional context

No response

@github-actions github-actions bot added the stale label Aug 20, 2023
@github-actions
Copy link

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 7 days.

@Mister-Hope
Copy link
Member

Sounds to be the same problem as #1226.

Try import.meta.glob('@source/.vuepress/compnoents/**) and see if it works.

@github-actions github-actions bot removed the stale label Aug 20, 2023
@Mister-Hope
Copy link
Member

Any update?

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

No branches or pull requests

2 participants