ApplicationInputSwitch.vue 650 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <div>
  3. <LimitedTextField v-if="type === 'text-box-limited'" :highlight="highlight" :options="options"/>
  4. <TextField v-else-if="type === 'text-box'" />
  5. <LineInput v-else-if="type === 'line'" />
  6. <span v-else>= OOPS, this input type '{{ type }}' has to be implemented.</span>
  7. </div>
  8. </template>
  9. <script>
  10. import LimitedTextField from './inputtypes/LimitedTextField.vue'
  11. import TextField from './inputtypes/TextField.vue'
  12. import LineInput from './inputtypes/LineInput.vue'
  13. export default {
  14. props: [
  15. 'type',
  16. 'highlight',
  17. 'options',
  18. ],
  19. components: {
  20. LimitedTextField,
  21. TextField,
  22. LineInput,
  23. },
  24. }
  25. </script>