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

Can I use src import on SFC custom block? #269

Open
Ocyss opened this issue Dec 6, 2023 · 2 comments
Open

Can I use src import on SFC custom block? #269

Ocyss opened this issue Dec 6, 2023 · 2 comments
Labels
⚡️ enhancement improvement over an existing feature

Comments

@Ocyss
Copy link

Ocyss commented Dec 6, 2023

Because I wrote a lot of route.meta values, my .vue file is very long, and I don’t change route.meta often, so I plan to split it and put it in a separate yaml file. Moreover, it bothers me that the yaml in sfc is highlighted but not formatted, so I think it would be more convenient and elegant to put it in a separate yaml file.

But I found that route sfc does not support src to import a file. Can you help me?

image

@posva
Copy link
Owner

posva commented Dec 6, 2023

I don’t think it makes sense to extract the route into a different file because one of the points of using this is to have the route information next to the page component

@Ocyss
Copy link
Author

Ocyss commented Dec 7, 2023

I don’t think it makes sense to extract the route into a different file because one of the points of using this is to have the route information next to the page component

What you said makes sense, but my routing files are arranged according to folder/index.vue, so I want to put the routing information files together in the same folder.

@settings settings bot removed the enhancement label Feb 21, 2024
@posva posva added the ⚡️ enhancement improvement over an existing feature label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡️ enhancement improvement over an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants