mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
23 lines
472 B
Vue
23 lines
472 B
Vue
<script setup lang="ts">
|
|
import type { NavbarIframeConfig } from './iframe'
|
|
import type { CustomNavbarItem } from '../custom-navbar-item'
|
|
import { usePopup } from '../mixins'
|
|
|
|
const props = defineProps<{
|
|
item: CustomNavbarItem & NavbarIframeConfig
|
|
container: HTMLElement
|
|
}>()
|
|
|
|
const { el } = usePopup(props)
|
|
</script>
|
|
|
|
<template>
|
|
<iframe
|
|
ref="el"
|
|
:src="item.src"
|
|
frameborder="0"
|
|
:width="item.width"
|
|
:height="item.height"
|
|
></iframe>
|
|
</template>
|