AppSearchFooter.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <div :class="`${prefixCls}`">
  3. <AppSearchKeyItem :class="`${prefixCls}__item`" icon="ant-design:enter-outlined" />
  4. <span>{{ t('component.app.toSearch') }}</span>
  5. <AppSearchKeyItem :class="`${prefixCls}__item`" icon="ion:arrow-up-outline" />
  6. <AppSearchKeyItem :class="`${prefixCls}__item`" icon="ion:arrow-down-outline" />
  7. <span>{{ t('component.app.toNavigate') }}</span>
  8. <AppSearchKeyItem :class="`${prefixCls}__item`" icon="mdi:keyboard-esc" />
  9. <span>{{ t('common.closeText') }}</span>
  10. </div>
  11. </template>
  12. <script lang="ts">
  13. import { defineComponent } from 'vue';
  14. import AppSearchKeyItem from './AppSearchKeyItem.vue';
  15. import { useDesign } from '/@/hooks/web/useDesign';
  16. import { useI18n } from '/@/hooks/web/useI18n';
  17. export default defineComponent({
  18. name: 'AppSearchFooter',
  19. components: { AppSearchKeyItem },
  20. setup() {
  21. const { prefixCls } = useDesign('app-search-footer');
  22. const { t } = useI18n();
  23. return {
  24. prefixCls,
  25. t,
  26. };
  27. },
  28. });
  29. </script>
  30. <style lang="less" scoped>
  31. @prefix-cls: ~'@{namespace}-app-search-footer';
  32. .@{prefix-cls} {
  33. position: relative;
  34. display: flex;
  35. height: 44px;
  36. padding: 0 16px;
  37. font-size: 12px;
  38. color: #666;
  39. background: rgb(255 255 255);
  40. border-radius: 0 0 16px 16px;
  41. box-shadow: 0 -1px 0 0 #e0e3e8, 0 -3px 6px 0 rgba(69, 98, 155, 0.12);
  42. align-items: center;
  43. flex-shrink: 0;
  44. &__item {
  45. display: flex;
  46. width: 20px;
  47. height: 18px;
  48. padding-bottom: 2px;
  49. margin-right: 0.4em;
  50. background: linear-gradient(-225deg, #d5dbe4, #f8f8f8);
  51. border-radius: 2px;
  52. box-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff,
  53. 0 1px 2px 1px rgba(30, 35, 90, 0.4);
  54. align-items: center;
  55. justify-content: center;
  56. &:nth-child(2),
  57. &:nth-child(3),
  58. &:nth-child(6) {
  59. margin-left: 14px;
  60. }
  61. }
  62. }
  63. </style>