src/components/iFrame/index.vue
@@ -1,14 +1,4 @@ <template> <div v-loading="loading" :style="'height:' + height"> <iframe :src="url" frameborder="no" style="width: 100%; height: 100%" scrolling="auto" /> </div> </template> <script setup> <script setup lang="ts"> const props = defineProps({ src: { type: String, @@ -29,3 +19,9 @@ }; }) </script> <template> <div v-loading="loading" :style="'height:' + height"> <iframe :src="url" frameborder="no" style="width: 100%; height: 100%" scrolling="auto" /> </div> </template>