Files
ko-grammar/docs/.vitepress/theme/components/Frame.vue
T
2026-03-25 13:02:29 +07:00

31 lines
445 B
Vue

<template>
<div :class="$style.container">
<iframe
:class="$style.iframe"
:src="src"
frameborder="0"
width="100%"
height="100%"
></iframe>
</div>
</template>
<script setup lang="ts">
defineProps<{ src: string }>();
</script>
<style module>
.container {
padding-bottom: 120%;
position: relative;
}
.iframe {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
</style>