no message
Former-commit-id: 4f5d58af36c36cb2a375eb932b7926fb1e6437a6 [formerly 4f5d58af36c36cb2a375eb932b7926fb1e6437a6 [formerly 4f5d58af36c36cb2a375eb932b7926fb1e6437a6 [formerly 4f5d58af36c36cb2a375eb932b7926fb1e6437a6 [formerly 27c2c007b86a719d8e0cf153729ec7f89d4481c8 [formerly 3d5521c206fdf7418777ff568c84d4d31ccc71ee]]]]] Former-commit-id: 74e26f1c75253b7344cbed374ea6d99720081a49 Former-commit-id: 5c1ac12c8278fdba00a1cd0ccea4c55283dbd809 Former-commit-id: a72db53fea17ac5560d54c450af5613a8b07a3ad [formerly b1367c6b58b1d1d007375c96b5558fc4abe2d8ae] Former-commit-id: 34d43e2940d019782f545d5d88bfd99ed843be47 Former-commit-id: f9f560337e93212b72d3b52da671a7a84db111a5 Former-commit-id: 960d7f8ba732bcc24bd8eef55750f47aeccc42ef Former-commit-id: 2446af93c045f9613a7a6050820e79781ac7285a Former-commit-id: e01fd38d83f55ea1253c311f4434cbb907dfc581
This commit is contained in:
19
src/layout/header-aside/components/header-locales/index.vue
Normal file
19
src/layout/header-aside/components/header-locales/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<el-dropdown
|
||||
placement="bottom"
|
||||
size="small"
|
||||
@command="command => $i18n.locale = command">
|
||||
<el-button class="d2-mr btn-text can-hover" type="text">
|
||||
<d2-icon name="language" style="font-size: 16px;"/>
|
||||
</el-button>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item
|
||||
v-for="(language, index) in $languages"
|
||||
:key="index"
|
||||
:command="language.value">
|
||||
<d2-icon :name="$i18n.locale === language.value ? 'dot-circle-o' : 'circle-o'" class="d2-mr-5"/>
|
||||
{{ language.label }}
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</template>
|
||||
Reference in New Issue
Block a user