mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
fix(front): pass width and height props to slot in Pixi component for better flexibility
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user