Преглед на файлове

fix: pass attrs down to canvas (#422)

Alvaro Saburido преди 1 година
родител
ревизия
aeab3e8632
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      playground/src/components/TheExperience.vue
  2. 1 0
      src/components/TresCanvas.vue

+ 1 - 0
playground/src/components/TheExperience.vue

@@ -35,6 +35,7 @@ watchEffect(() => {
   <TresCanvas
     v-bind="gl"
     ref="canvas"
+    class="awiwi"
   >
     <TresPerspectiveCamera
       :position="[7, 7, 7]"

+ 1 - 0
src/components/TresCanvas.vue

@@ -181,6 +181,7 @@ onMounted(() => {
   <canvas
     ref="canvas"
     :data-scene="scene.uuid"
+    v-bind="$attrs"
     :style="{
       display: 'block',
       width: '100%',