feat: 各应用的设计器隔离
This commit is contained in:
@@ -85,7 +85,7 @@ function transformComponent(
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="relative h-full">
|
||||
<div class="relative h-full" style="height: calc(100vh - 126px)">
|
||||
<IFrameRouterView />
|
||||
<RouterView v-slot="{ Component, route }">
|
||||
<Transition :name="getTransitionName(route)" appear mode="out-in">
|
||||
|
||||
@@ -63,7 +63,7 @@ const initPostmate = async () => {
|
||||
console.log('ctx.parent', ctx.parent);
|
||||
console.log('ctx.parent.innerHeight', ctx.parent.innerHeight);
|
||||
ctx.frame.style.height = `${ctx.parent.innerHeight - 38 - 88}px`;
|
||||
ctx.frame.style.minHeight = `800px`;
|
||||
// ctx.frame.style.minHeight = `800px`;
|
||||
ctx.frame.style.width = '100%';
|
||||
// @ts-ignore 忽略 console
|
||||
console.log(`${props.name} 连接成功`, ctx);
|
||||
|
||||
@@ -20,6 +20,7 @@ const props = withDefaults(
|
||||
payload?: Record<string, any>;
|
||||
projectId: number;
|
||||
route: RouteRecordRaw;
|
||||
router: Router;
|
||||
sync: boolean;
|
||||
url: string;
|
||||
}>(),
|
||||
|
||||
Reference in New Issue
Block a user