searchBox.vue 741 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class="searchBox">
  3. <div v-for="(item, index) in list" :key="index" class="row">
  4. <searchForm
  5. :data="item"
  6. :loading="loading"
  7. @change="$emit('change')"
  8. @getOption="(key, q, utilName) => $emit('getOption', key, q, utilName)"
  9. />
  10. </div>
  11. </div>
  12. </template>
  13. <script>
  14. import searchForm from './searchForm'
  15. export default {
  16. components: {
  17. searchForm
  18. },
  19. props: {
  20. list: {
  21. type: Array,
  22. required: false,
  23. default: () => []
  24. }
  25. },
  26. data() {
  27. return {
  28. loading: false
  29. }
  30. }
  31. }
  32. </script>
  33. <style scoped lang="scss">
  34. .searchBox {
  35. .row {
  36. width: 810px;
  37. margin-top: 15px;
  38. &:first-child {
  39. margin-top: 0;
  40. }
  41. }
  42. }
  43. </style>