|
|
@ -54,7 +54,7 @@ function RouterBase(props: { id: string; children: ReactNode }) { |
|
|
|
api.set({ |
|
|
|
api.set({ |
|
|
|
width: "100%", |
|
|
|
width: "100%", |
|
|
|
}); |
|
|
|
}); |
|
|
|
api({ |
|
|
|
api.start({ |
|
|
|
height: `${routeMeta?.height ?? 0}px`, |
|
|
|
height: `${routeMeta?.height ?? 0}px`, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else if (oldData?.height === undefined && data.height !== undefined) { |
|
|
|
} else if (oldData?.height === undefined && data.height !== undefined) { |
|
|
@ -63,7 +63,7 @@ function RouterBase(props: { id: string; children: ReactNode }) { |
|
|
|
width: `${routeMeta?.width ?? 0}px`, |
|
|
|
width: `${routeMeta?.width ?? 0}px`, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
api({ |
|
|
|
api.start({ |
|
|
|
height: `${routeMeta?.height ?? 0}px`, |
|
|
|
height: `${routeMeta?.height ?? 0}px`, |
|
|
|
width: `${routeMeta?.width ?? 0}px`, |
|
|
|
width: `${routeMeta?.width ?? 0}px`, |
|
|
|
}); |
|
|
|
}); |
|
|
|