This commit is contained in:
pipipi-pikachu 2020-12-12 20:31:06 +08:00
parent 19cdb80c1e
commit 6220a73641
2 changed files with 1 additions and 36 deletions

View File

@ -12,7 +12,7 @@ export default {
type: String,
required: true,
},
}
},
}
</script>

View File

@ -1,35 +0,0 @@
<template>
<iframe
class="iframe-wrapper"
frameborder="0"
allowfullscreen="true"
:src="src"
:width="width"
:height="height"
></iframe>
</template>
<script lang="ts">
export default {
name: 'iframe-wrapper',
props: {
src: {
type: String,
required: true,
},
width: {
type: Number,
},
height: {
type: Number,
},
},
}
</script>
<style lang="scss" scoped>
.iframe-wrapper {
transform-origin: 0 0;
display: block;
}
</style>