Bilibili-Evolved/registry/lib/components/style/custom-navbar/iframe/IframePopup.vue
2023-02-20 05:26:39 +08:00

22 lines
560 B
Vue

<template>
<iframe :src="item.src" frameborder="0" :width="item.width" :height="item.height"></iframe>
</template>
<script lang="ts">
import type { PropType } from 'vue'
import type { NavbarIframeConfig } from './iframe'
import { popperMixin } from '../mixins'
import { CustomNavbarItem } from '../custom-navbar-item'
export default Vue.extend({
name: 'IframePopup',
mixins: [popperMixin],
props: {
item: {
type: CustomNavbarItem as unknown as PropType<CustomNavbarItem & NavbarIframeConfig>,
required: true,
},
},
})
</script>