Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

34 rindas
622 B

  1. <template>
  2. <div class="entries">
  3. <span class="entry" v-for="entry in entries"
  4. @click="$emit('select', entry.value)"
  5. >{{entry.text}}</span>
  6. </div>
  7. </template>
  8. <style scoped>
  9. .entries {
  10. display: flex;
  11. flex-flow: column;
  12. position: absolute;
  13. left: 0;
  14. background: var(--secondary-bg);
  15. width: 100%;
  16. margin-top: 5px;
  17. z-index: 3;
  18. border: 1px solid black;
  19. top: 100%;
  20. }
  21. .entry {
  22. border-bottom: 1px solid var(--text);
  23. padding: 5px;
  24. cursor: pointer;
  25. }
  26. </style>
  27. <script setup>
  28. const props = defineProps(['entries'])
  29. const emits = defineEmits(['select'])
  30. </script>