Add event
This commit is contained in:
parent
f7e39bcc34
commit
d84c48e0fa
|
@ -10,10 +10,10 @@
|
|||
style="--primary: yellow; --secondary: green; --font: #ff6600; --circle: #111111"
|
||||
value='{"sections": [
|
||||
{"name": "Personal", "intro": "Jaöaöd", "fields": [
|
||||
{"name": "Vorname", "type": "text", "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": "Essgewohnheiten", "type": "radio", "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": "Vorname", "type": "TextField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": "", "required": true},
|
||||
{"name": "Geschlecht", "type": "SelectField", "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": "TextField", "columns": {"mobile": 2, "tablet": 3, "desktop": 6}, "default": "", "required": true}
|
||||
]},
|
||||
{"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) {
|
||||
return {
|
||||
text: FieldText,
|
||||
select: FieldSelect,
|
||||
radio: FieldRadio,
|
||||
TextField: FieldText,
|
||||
SelectField: FieldSelect,
|
||||
RadioField: FieldRadio,
|
||||
}[field.type];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue