fix: iframe

pull/216/head
xingyu4j 2025-09-22 18:31:02 +08:00
parent be1250e71a
commit ac82b49425
1 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,7 @@ interface IFrameProps {
src: string;
}
const props = defineProps<IFrameProps>();
defineProps<IFrameProps>();
const loading = ref(true);
const height = ref('');
@ -22,15 +22,14 @@ onMounted(() => {
init();
}, 300);
});
// TODO @使 vben
</script>
<template>
<div v-loading="loading" :style="`height:${height}`">
<iframe
ref="frameRef"
:src="props.src"
style="width: 100%; height: 100%"
:src="src"
class="h-full w-full"
frameborder="no"
scrolling="auto"
></iframe>