A
A
Alexander Savenko2020-08-19 14:06:17
Vue.js
Alexander Savenko, 2020-08-19 14:06:17

How to customize a Vue component from a finished project?

Hello!
Suppose a company developed its own Dashboard, this Dashboard was sold. The company that bought this Dashboard wants to make changes to it. For example, on one of the pages add new buttons. How can I add such support to the project being sold? You can’t do without slots in the components, because then the company’s developers need to assemble their pages themselves, but what if this very complex component was with a page depth of 10? On page 10, you just need to add a new button .... Now it's done so that webpack replaces this page with a page from the customer's project, but then we lose the appearance of new changes in the main project for this page.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Talalaev, 2020-08-19
@neuotq

Don't know. It's all kind of tedious.
In this case, you have two options.
Or you work with setting technical specifications for the creators and all innovations through them.
Either you make a copy of the main part (pages or parent components), and all nested components are, as it were, your component library that you connect comes out.
Thus, when updating, it will be easier and you can calmly make your changes, considering their assembly as a sample.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question