mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix: 修复layout的bug
This commit is contained in:
parent
b3dbbe187c
commit
3e3ee6a4b4
@ -43,7 +43,7 @@
|
|||||||
</f-layout>
|
</f-layout>
|
||||||
</f-layout>
|
</f-layout>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="currentNavigation === 'left-right'">
|
<template v-else-if="currentNavigation === 'left-right'">
|
||||||
<f-aside
|
<f-aside
|
||||||
v-model:collapsed="collapsedRef"
|
v-model:collapsed="collapsedRef"
|
||||||
:fixed="isFixedSidebar"
|
:fixed="isFixedSidebar"
|
||||||
|
@ -21,9 +21,14 @@ const Layout = defineComponent({
|
|||||||
const filledMenuRef = computed(() => fillMenu(menusRef.value, getRoutes()));
|
const filledMenuRef = computed(() => fillMenu(menusRef.value, getRoutes()));
|
||||||
|
|
||||||
const localeShared = plugin.getShared('locale');
|
const localeShared = plugin.getShared('locale');
|
||||||
|
|
||||||
|
const renderCustom = config.renderCustom;
|
||||||
|
|
||||||
|
delete config.renderCustom;
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
const slots = {
|
const slots = {
|
||||||
renderCustom: config.renderCustom,
|
renderCustom,
|
||||||
locale: () => {
|
locale: () => {
|
||||||
if (localeShared) {
|
if (localeShared) {
|
||||||
return <localeShared.SelectLang></localeShared.SelectLang>;
|
return <localeShared.SelectLang></localeShared.SelectLang>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user