Skip to content

Commit

Permalink
fix incorrect default handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kipash committed Nov 2, 2023
1 parent ba49081 commit 0044433
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions documentation/.vuepress/components/sample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
export default {
props: {
src: String,
split: Boolean = false,
noRoom: Boolean = false
split: {
type: Boolean,
default: false
},
noRoom: {
type: Boolean,
default: false
}
},
data() {
return {
Expand Down Expand Up @@ -58,7 +64,7 @@ export default {
<div>
<iframe :src="sanitizedUrl" ref="frame1"
allow="xr; xr-spatial-tracking; camera; microphone; fullscreen;display-capture"></iframe>
<iframe v-if="split" :src="sanitizedUrl" ref="frame2"
<iframe v-if="split === true" :src="sanitizedUrl" ref="frame2"
allow="xr; xr-spatial-tracking; camera; microphone; fullscreen;display-capture"></iframe>
</div>
</template>
Expand Down

0 comments on commit 0044433

Please sign in to comment.