Skip to content

Commit

Permalink
update select lang icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lqsong committed Sep 25, 2021
1 parent e794cad commit 6d639d1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/assets/iconsvg/language-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/components/SelectLang/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<el-dropdown @command="changeLang">
<span class="dropDown">
<i class="el-icon-football"></i>
<!-- <i class="el-icon-football"></i> -->
<icon-svg type="language-outline" ></icon-svg>
</span>
<template #dropdown>
<el-dropdown-menu class="menu">
Expand All @@ -19,6 +20,7 @@
import { defineComponent, WritableComputedRef } from "vue";
import { setI18nLanguage } from "@/config/i18n";
import { useI18n } from "vue-i18n";
import IconSvg from "@/components/IconSvg";
interface SelectLangSetupData {
locales: string[];
languageLabels: {[key: string]: string};
Expand All @@ -29,6 +31,9 @@ interface SelectLangSetupData {
export default defineComponent({
name: 'SelectLang',
components: {
IconSvg
},
setup(): SelectLangSetupData {
const { locale } = useI18n();
Expand Down
6 changes: 4 additions & 2 deletions src/layouts/IndexLayout/components/RightTop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ export default defineComponent({
.indexlayout-top-selectlang {
padding-left: 10px;
.dropDown {
i {
i,
.svg-icon {
font-size: 16px;
color: #c0c4cc;
}
Expand Down Expand Up @@ -240,7 +241,8 @@ export default defineComponent({
}
.indexlayout-top-selectlang {
.dropDown {
i {
i,
.svg-icon {
color: $heading-color;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/layouts/UserLayout/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export default defineComponent({
::v-deep(.el-dropdown) {
.dropDown {
i {
i,
.svg-icon {
color: #ffffff;
font-size: 16px;
}
Expand Down

0 comments on commit 6d639d1

Please sign in to comment.