Closed chumager closed 1 year ago
Hi @chumager 👋
Sorry, but I consider this lib to be feature-done, and I don't plan on adding new features to it.
Like I mentioned in the README's disclaimer: I built this for a very specific case I had, but I believe it's not a good idea.
Now, in case you want to fork and extend, or build your own thing, I read your code and a little bit of the repo you linked and:
export
and labels for component logic, so my lib works with the AST of that code in order to do the merge.script
tag), so in order to use things like the extensions
, you'll need to actually process the template.Hope that helps!
Hi how are you? I've been looking for something like your plugin. I've a similar plugin for vue 2, but it allows to change some parts of the extended template, and the script changes are made with the
extends
attribute.In my case I've a generic input base component, who does all what is needed to use a input, show data and it's details. Some of my components dos almost nothing, for example change the formatter option, convert the data, others changes everything, the input section, the section that shows the value and the detail section, but all keeps the same base logic.
Here are some examples: String.js: Here I only change some functions to set a different formatter and reaction to keypress
TimeFrame.vue This one changes the way the data is visualized and the way the input is rendered, so I can display it as a mini form instead a simple input.
GenericInput.vue This is the base for all inputs and have a lot of sections that I can change according each component needs.
Do you think is there anyway con accomplish what I need with your module?
The plugin repository is https://github.com/mrodal/vue-inheritance-loader
Thanks in advance.