diff --git a/src/components/partials/form/FormField.vue b/src/components/partials/form/FormField.vue
index 6b2927f..d818f1e 100644
--- a/src/components/partials/form/FormField.vue
+++ b/src/components/partials/form/FormField.vue
@@ -1,12 +1,11 @@
-
+
@@ -16,7 +15,6 @@
diff --git a/src/router.js b/src/router.js
index 29ed6df..a750242 100644
--- a/src/router.js
+++ b/src/router.js
@@ -7,10 +7,10 @@ Vue.use(VueRouter);
* Uncomment this section and use "load()" if you want
* to lazy load routes.
*/
-function load (component) {
+/* function load (component) {
// '@' is aliased to src/components
return () => import(`@/${component}.vue`)
-}
+} */
export default new VueRouter({
/*
@@ -26,6 +26,5 @@ export default new VueRouter({
*/
routes: [
- { path: '/', component: load('TestForm') }
]
});
diff --git a/templates/form.vue b/templates/form.vue
index 9962e78..65baccd 100644
--- a/templates/form.vue
+++ b/templates/form.vue
@@ -3,10 +3,8 @@
@@ -25,13 +23,11 @@
return {
form: [
{
- type: 'input',
- model: null,
- validation: {},
- config: {
- fieldProps: {},
- fieldInputProps: {}
- },
+ type: 'input', // will resolve to `q-${type}`
+ value: null, // initial value of model
+ validation: {}, // input validation using Vuelidate
+ field: {}, // QField properties
+ fieldInput: {} // `q-${type}` properties
}
]
};