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