baggachipz / q-form-builder

Form Building using drag-and-drop. Uses Quasar Framework and Vue.
MIT License
150 stars 39 forks source link

Can't use as a component #2

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi, that form builder looks very promising, exactly what I need. However I can't make it work following ReadMe.

I have installed it with npm, used template example ( copy - paste), but looks like import QFormBuilder from 'q-form-builde doesn't give component, rather it gives object with different components for field types. so I am getting error: [Vue warn]: Failed to mount component: template or render function not defined.

does it work as an npm package ? or I have to make it manually from your code ?

baggachipz commented 4 years ago

I've had problems running it as a npm package, due to including vue twice because of the dependency. I'm trying to get that to work but so far only can when actually including the libraries in the project and using them that way. Have you tried that?

ghost commented 4 years ago

I did make it work by copying files to my project as a vue component. Are you going to develop it further? I think you should as it's has big potential. I am having warning Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props

I will try to change it. I really like it, I will add option for compact render for q-inputs.

iabukai commented 4 years ago

I faced the same issue. I can agree with @uneasymusic. It could be a great tool