Answer the question
In order to leave comments, you need to log in
How to organize access to vue components from other components?
Good afternoon, colleagues.
Please tell me how to be in this situation:
there is an application in php (the engine for the site), it has different modules (a different number for different sites), and there is an admin module that builds the main admin interface and has a bunch of vue components for this (buttons , data grids, etc.). But each module has its own component, which builds an interface for editing module data. The structure looks like this:
admin-module
vue
Приложение админки с базовыми компонентами
some-module
vue
Компонент для редактирования данных
import InDefaultButton from "../../../vuecp/assets/vue/src/componets/buttons/InDefaultButton";
export default {
components: {InDefaultButton}
}
Answer the question
In order to leave comments, you need to log in
There are at least two options:
1. Use non-vue-cli for the build, or upgrade the config so that the build does not try to connect the eslint-loader, which is not there, but takes it from places where it is.
2. Make a package for vue components from the admin panel, publish and use. Or do not publish, but simply link if there is a ban on it.
Most likely there are more options)
PS Some late answer =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question