mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-11 12:57:10 +08:00
chore: 新增关于项目菜单(该菜单从动态路由调整为静态,且不再需要鉴权)
This commit is contained in:
37
src/components/GiIframe/index.vue
Normal file
37
src/components/GiIframe/index.vue
Normal file
@@ -0,0 +1,37 @@
|
||||
<template>
|
||||
<a-spin class="gi-iframe" :loading="loading">
|
||||
<iframe class="iframe" :src="props.src" @load="onLoad"></iframe>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
||||
<script lang='ts' setup>
|
||||
defineOptions({ name: 'GiIframe' })
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
src: '',
|
||||
})
|
||||
|
||||
interface Props {
|
||||
src: string
|
||||
}
|
||||
|
||||
const loading = ref(true)
|
||||
|
||||
const onLoad = () => {
|
||||
loading.value = false
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.gi-iframe {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.iframe {
|
||||
border: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user