fix(front): pass width and height props to slot in Pixi component for better flexibility

This commit is contained in:
keven1024
2025-08-14 11:53:34 +08:00
parent 60af6d2023
commit e41d7a6305

View File

@@ -41,7 +41,7 @@ defineExpose({
<template>
<div ref="containerRef" class="w-full h-full">
<Application :width="width" :height="height" :resolution="resolution" ref="app" autoDensity antialias :backgroundAlpha="0">
<slot />
<slot :width="width" :height="height" />
</Application>
</div>
</template>