commit | author | age
|
9bcb19
|
1 |
<template> |
I |
2 |
<a-dropdown> |
|
3 |
<span class="action global-lang"> |
|
4 |
<a-icon type="global" style="font-size: 16px"/> |
|
5 |
</span> |
|
6 |
<a-menu slot="overlay" style="width: 150px;" @click="SwitchLang"> |
|
7 |
<a-menu-item key="zh-CN"> |
|
8 |
<a rel="noopener noreferrer"> |
|
9 |
<span role="img" aria-label="简体中文">🇨🇳</span> 简体中文 |
|
10 |
</a> |
|
11 |
</a-menu-item> |
|
12 |
<a-menu-item key="zh-TW"> |
|
13 |
<a rel="noopener noreferrer"> |
|
14 |
<span role="img" aria-label="繁体中文">🇭🇰</span> 繁体中文 |
|
15 |
</a> |
|
16 |
</a-menu-item> |
|
17 |
<a-menu-item key="en-US"> |
|
18 |
<a rel="noopener noreferrer"> |
|
19 |
<span role="img" aria-label="English">🇬🇧</span> English |
|
20 |
</a> |
|
21 |
</a-menu-item> |
|
22 |
<a-menu-item key="pt-BR"> |
|
23 |
<a rel="noopener noreferrer"> |
|
24 |
<span role="img" aria-label="Português">🇧🇷</span> Português |
|
25 |
</a> |
|
26 |
</a-menu-item> |
|
27 |
</a-menu> |
|
28 |
</a-dropdown> |
|
29 |
</template> |
|
30 |
|
|
31 |
<script> |
|
32 |
// import { mixin as langMixin } from '@/store/i18n-mixin' |
|
33 |
|
|
34 |
export default { |
|
35 |
name: 'LangSelect', |
|
36 |
// mixins: [langMixin], |
|
37 |
data () { |
|
38 |
return {} |
|
39 |
}, |
|
40 |
methods: { |
|
41 |
// SwitchLang (row) { |
|
42 |
// this.setLang(row.key) |
|
43 |
// } |
|
44 |
} |
|
45 |
} |
|
46 |
</script> |