Add event
This commit is contained in:
parent
f7e39bcc34
commit
d84c48e0fa
|
@ -10,10 +10,10 @@
|
||||||
style="--primary: yellow; --secondary: green; --font: #ff6600; --circle: #111111"
|
style="--primary: yellow; --secondary: green; --font: #ff6600; --circle: #111111"
|
||||||
value='{"sections": [
|
value='{"sections": [
|
||||||
{"name": "Personal", "intro": "Jaöaöd", "fields": [
|
{"name": "Personal", "intro": "Jaöaöd", "fields": [
|
||||||
{"name": "Vorname", "type": "text", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": "", "required": true},
|
{"name": "Vorname", "type": "TextField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": "", "required": true},
|
||||||
{"name": "Geschlecht", "type": "select", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": null, "required": true, "options": ["A","Bb","Cc"]},
|
{"name": "Geschlecht", "type": "SelectField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": null, "required": true, "options": ["A","Bb","Cc"]},
|
||||||
{"name": "Essgewohnheiten", "type": "radio", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": null, "required": true, "options": ["A","Bb","Cc"]},
|
{"name": "Essgewohnheiten", "type": "RadioField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": null, "required": true, "options": ["A","Bb","Cc"]},
|
||||||
{"name": "Nachname", "type": "text", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": "", "required": true}
|
{"name": "Nachname", "type": "TextField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": "", "required": true}
|
||||||
]},
|
]},
|
||||||
{"name": "Veranstaltung", "intro": "Jaöaöd", "fields": [
|
{"name": "Veranstaltung", "intro": "Jaöaöd", "fields": [
|
||||||
]},
|
]},
|
||||||
|
|
|
@ -110,9 +110,9 @@ const {back, next, backable, nextable} = useNav(active, v.value.sections.length)
|
||||||
|
|
||||||
function resolveComponentName(field) {
|
function resolveComponentName(field) {
|
||||||
return {
|
return {
|
||||||
text: FieldText,
|
TextField: FieldText,
|
||||||
select: FieldSelect,
|
SelectField: FieldSelect,
|
||||||
radio: FieldRadio,
|
RadioField: FieldRadio,
|
||||||
}[field.type];
|
}[field.type];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue