SearchInput.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <b-form-group :label="$t('options.search.title')">
  3. <b-input-group>
  4. <template #append>
  5. <b-input-group-text>
  6. <svg viewBox="0 0 19 19">
  7. <circle cx="7.5" cy="7.5" r="4" />
  8. <path d="M 10.5,10.5 L 15.5,15.5" />
  9. </svg>
  10. </b-input-group-text>
  11. </template>
  12. <b-form-input
  13. :value="value" @input="$emit('input', $event)" id="search-input"
  14. trim
  15. />
  16. </b-input-group>
  17. </b-form-group>
  18. </template>
  19. <script>
  20. export default {
  21. name: 'SearchInput',
  22. props: {
  23. value: { type: String, required: true }
  24. }
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. .form-control[type='text'] {
  29. border-color: $black;
  30. border-right: 0;
  31. height: calc(1.75em + #{2 * $border-width});
  32. }
  33. .input-group-text {
  34. border-color: $black;
  35. background-color: $white;
  36. padding: 0;
  37. }
  38. svg {
  39. display: inline-block;
  40. width: 19px;
  41. height: 19px;
  42. align-self: center;
  43. margin-right: .25rem;
  44. path,
  45. circle {
  46. fill: none;
  47. stroke: $black;
  48. stroke-width: 2px;
  49. stroke-linecap: round;
  50. }
  51. }
  52. </style>