import { reactive, defineComponent } from "vue"; import { getRoutes, plugin, ApplyPluginsType } from "@@/core/coreExports"; import BaseLayout from "./views/BaseLayout.vue"; import { fillMenuData } from "./helpers"; const userConfig = reactive({{{REPLACE_USER_CONFIG}}}); const Layout = defineComponent({ name: 'Layout', setup(){ const runtimeConfig = plugin.applyPlugins({ key: "layout", type: ApplyPluginsType.modify, initialValue: {}, }); const localeShared = plugin.getShared("locale"); const routeConfig = getRoutes(); userConfig.menus = fillMenuData(userConfig.menus, routeConfig); return () => { const slots = { customHeader: () => { if (runtimeConfig.customHeader) { return ( ); } return null; }, locale: () => { if (localeShared) { return ; } return null; }, }; return ; }; } }) export default Layout;