feat(projects): multi language buttons support hiding. (#683)
This commit is contained in:
parent
214341ee0b
commit
d7aebb7dfa
@ -40,7 +40,12 @@ const { isFullscreen, toggle } = useFullscreen();
|
|||||||
<div class="h-full flex-y-center justify-end">
|
<div class="h-full flex-y-center justify-end">
|
||||||
<GlobalSearch />
|
<GlobalSearch />
|
||||||
<FullScreen v-if="!appStore.isMobile" :full="isFullscreen" @click="toggle" />
|
<FullScreen v-if="!appStore.isMobile" :full="isFullscreen" @click="toggle" />
|
||||||
<LangSwitch :lang="appStore.locale" :lang-options="appStore.localeOptions" @change-lang="appStore.changeLocale" />
|
<LangSwitch
|
||||||
|
v-if="themeStore.header.multilingual.visible"
|
||||||
|
:lang="appStore.locale"
|
||||||
|
:lang-options="appStore.localeOptions"
|
||||||
|
@change-lang="appStore.changeLocale"
|
||||||
|
/>
|
||||||
<ThemeSchemaSwitch
|
<ThemeSchemaSwitch
|
||||||
:theme-schema="themeStore.themeScheme"
|
:theme-schema="themeStore.themeScheme"
|
||||||
:is-dark="themeStore.darkMode"
|
:is-dark="themeStore.darkMode"
|
||||||
|
@ -127,6 +127,9 @@ const isWrapperScrollMode = computed(() => themeStore.layout.scrollMode === 'wra
|
|||||||
placeholder="SoybeanAdmin"
|
placeholder="SoybeanAdmin"
|
||||||
/>
|
/>
|
||||||
</SettingItem>
|
</SettingItem>
|
||||||
|
<SettingItem key="9" :label="$t('theme.header.multilingual.visible')">
|
||||||
|
<NSwitch v-model:value="themeStore.header.multilingual.visible" />
|
||||||
|
</SettingItem>
|
||||||
</TransitionGroup>
|
</TransitionGroup>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -109,6 +109,9 @@ const local: App.I18n.Schema = {
|
|||||||
breadcrumb: {
|
breadcrumb: {
|
||||||
visible: 'Breadcrumb Visible',
|
visible: 'Breadcrumb Visible',
|
||||||
showIcon: 'Breadcrumb Icon Visible'
|
showIcon: 'Breadcrumb Icon Visible'
|
||||||
|
},
|
||||||
|
multilingual: {
|
||||||
|
visible: 'Display multilingual button'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tab: {
|
tab: {
|
||||||
|
@ -109,6 +109,9 @@ const local: App.I18n.Schema = {
|
|||||||
breadcrumb: {
|
breadcrumb: {
|
||||||
visible: '显示面包屑',
|
visible: '显示面包屑',
|
||||||
showIcon: '显示面包屑图标'
|
showIcon: '显示面包屑图标'
|
||||||
|
},
|
||||||
|
multilingual: {
|
||||||
|
visible: '显示多语言按钮'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tab: {
|
tab: {
|
||||||
|
@ -27,6 +27,9 @@ export const themeSettings: App.Theme.ThemeSetting = {
|
|||||||
breadcrumb: {
|
breadcrumb: {
|
||||||
visible: true,
|
visible: true,
|
||||||
showIcon: true
|
showIcon: true
|
||||||
|
},
|
||||||
|
multilingual: {
|
||||||
|
visible: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tab: {
|
tab: {
|
||||||
|
8
src/typings/app.d.ts
vendored
8
src/typings/app.d.ts
vendored
@ -53,6 +53,11 @@ declare namespace App {
|
|||||||
/** Whether to show the breadcrumb icon */
|
/** Whether to show the breadcrumb icon */
|
||||||
showIcon: boolean;
|
showIcon: boolean;
|
||||||
};
|
};
|
||||||
|
/** Multilingual */
|
||||||
|
multilingual: {
|
||||||
|
/** Whether to show the multilingual */
|
||||||
|
visible: boolean;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
/** Tab */
|
/** Tab */
|
||||||
tab: {
|
tab: {
|
||||||
@ -363,6 +368,9 @@ declare namespace App {
|
|||||||
visible: string;
|
visible: string;
|
||||||
showIcon: string;
|
showIcon: string;
|
||||||
};
|
};
|
||||||
|
multilingual: {
|
||||||
|
visible: string;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
tab: {
|
tab: {
|
||||||
visible: string;
|
visible: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user