index.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div :class="['search-result-default', !isPC && 'search-result-default-h5']">
  3. <div class="search-result-default-main">
  4. <Icon
  5. :file="SearchDefaultIcon"
  6. width="88px"
  7. height="75px"
  8. />
  9. <div class="default-text">
  10. {{ TUITranslateService.t("TUISearch.暂无搜索结果") }}
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script setup lang="ts">
  16. import { TUITranslateService } from '@tencentcloud/chat-uikit-engine';
  17. import { isPC } from '../../../../utils/env';
  18. import Icon from '../../../common/Icon.vue';
  19. import SearchDefaultIcon from '../../../../assets/icon/search-default.svg';
  20. </script>
  21. <style scoped lang="scss">
  22. .search-result-default {
  23. width: 100%;
  24. flex: 1;
  25. display: flex;
  26. justify-content: center;
  27. align-items: center;
  28. &-h5 {
  29. background-color: #f4f4f4;
  30. }
  31. &-main {
  32. display: flex;
  33. flex-direction: column;
  34. text-align: center;
  35. justify-content: center;
  36. align-items: center;
  37. .default-text {
  38. font-family: "PingFang SC", sans-serif;
  39. font-size: 14px;
  40. font-weight: 400;
  41. line-height: 20px;
  42. color: #666;
  43. }
  44. }
  45. }
  46. </style>