基于vue3.0和element-plus的组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
533 B

<template>
<iframe ref="iframe" :src="src" :style="iframeStyle"></iframe>
</template>
<script lang="ts" setup>
import { useStore } from "vuex";
import { reactive, onMounted, ref } from "vue";
import { useI18n } from "vue3-i18n";
const { t } = useI18n();
const { state, commit, dispatch } = useStore();
const props = defineProps({
src: {
type: String,
default: '',
},
});
const iframeStyle = {
height: '100%',
width: '100%',
};
onMounted(() => { });
</script>
<style lang="scss" scoped></style>