vue-dynamic-forms icon indicating copy to clipboard operation
vue-dynamic-forms copied to clipboard

Is there way to import `dynamic-form` in one component instead of global app.use() ?

Open vutran6853 opened this issue 3 years ago • 4 comments

Describe the bug Is there way to import dynamic-form in one component instead of global app.use()?

vutran6853 avatar Jun 17 '21 04:06 vutran6853

Hi, @vutran6853 the library is intended to be added as a plugin. What would be the use-case to only add it on a component, performance?

alvarosabu avatar Sep 24 '21 14:09 alvarosabu

Yes, startup performance. Would be great to just pull this in where/when needed

ADCJustinH avatar Oct 22 '21 19:10 ADCJustinH

I totally see the use case, I guess I didn't think of it in the beginning, I will need to figure out how it can be exported without using the Plugin

alvarosabu avatar Oct 25 '21 09:10 alvarosabu

I got it to work after startup by importing it dynamically then just adding it via app.use(). Seems to work fine but I'm not an expert so perhaps this is causing issues I'm not seeing yet.

ADCJustinH avatar Oct 25 '21 14:10 ADCJustinH