26 lines
389 B
Vue
26 lines
389 B
Vue
|
|
<script setup lang="ts">
|
||
|
|
import { onActivated, onMounted } from 'vue';
|
||
|
|
|
||
|
|
interface Props {
|
||
|
|
url: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
defineProps<Props>();
|
||
|
|
|
||
|
|
onMounted(() => {
|
||
|
|
console.log('mounted');
|
||
|
|
});
|
||
|
|
|
||
|
|
onActivated(() => {
|
||
|
|
console.log('activated');
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<div class="h-full">
|
||
|
|
<iframe id="iframePage" class="size-full" :src="url"></iframe>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<style scoped></style>
|