Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

33 行
607 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. }
  20. .entry {
  21. border-bottom: 1px solid var(--text);
  22. padding: 5px;
  23. cursor: pointer;
  24. }
  25. </style>
  26. <script setup>
  27. const props = defineProps(['entries'])
  28. const emits = defineEmits(['select'])
  29. </script>