forms
forms copied to clipboard
refactor(forms): Migrate Forms.vue to Vue 3 Composition API
refactor(forms): Migrate Forms.vue to Vue 3 Composition API
- Converted component to use Vue 3's Composition API with setup()
- Removed duplicate function declarations and fixed syntax issues
- Updated lifecycle hooks to use onMounted/onUnmounted
- Fixed reactivity using ref and computed
- Cleaned up event handling and component structure
- Ensured compatibility with Vue 3 and Nextcloud ecosystem
Hi @nfebe
really nice, thanks for your efforts! 🎉
Before we merge this, I'd like to merge the other open PRs #2737 and #2748.
Hi @Chartman123 No worries at all, this is still a very rough draft.
hi @nfebe
I've also started the migration and used your work as a base. you could also have a look at this branch here: https://github.com/nextcloud/forms/tree/refactor/vue3
I've also started the migration and used your work as a base. you could also have a look at this branch here: https://github.com/nextcloud/forms/tree/refactor/vue3
Hi @Chartman123 just worked on at least getting this to build on vue 3 and making the creat form thingy work. I will pause and we sync and then decide how to proceed.
My branch is building, but I still have problems to get the edit view working as we had a .sync there that adds a two way binding for all question props. And inside the QuestionMultiple the same for the options...