diff --git a/src/Eventform.ce.vue b/src/Eventform.ce.vue index 85cae22..bb0ddd2 100644 --- a/src/Eventform.ce.vue +++ b/src/Eventform.ce.vue @@ -120,7 +120,8 @@ import {camelCase} from 'change-case'; import Navigation from './components/Navigation.vue'; import useNav from './composables/useNav.js'; import FieldText from './components/fields/Text.vue'; -import FieldSelect from './components/fields/Select.vue'; +import FieldTextarea from './components/fields/Textarea.vue'; +import FieldDropdown from './components/fields/Dropdown.vue'; import FieldRadio from './components/fields/Radio.vue'; import EditIcon from './components/icons/EditIcon.vue'; import DeleteIcon from './components/icons/DeleteIcon.vue'; @@ -156,7 +157,8 @@ const {back, next, backable, nextable} = useNav(active, v.value.sections.length) function resolveComponentName(field) { return { TextField: FieldText, - SelectField: FieldSelect, + TextareaField: FieldTextarea, + DropdownField: FieldDropdown, RadioField: FieldRadio, }[field.type]; } diff --git a/src/components/fields/Select.vue b/src/components/fields/Dropdown.vue similarity index 100% rename from src/components/fields/Select.vue rename to src/components/fields/Dropdown.vue diff --git a/src/components/fields/Textarea.vue b/src/components/fields/Textarea.vue new file mode 100644 index 0000000..029f93e --- /dev/null +++ b/src/components/fields/Textarea.vue @@ -0,0 +1,41 @@ +