父组件
子组件
<iframe :src="props.src" width="100%" height="100%" frameborder="0" id="_iframe" ></iframe> 接收参数 const props = defineProps({ src: { type: String, required: true }, }); 定义回传 const emit = defineEmits(['backFrame']) 回传操作 const clickBack = ()=>{ emit('backFrame',true) }
标签:传参,const,回传,vue3,组件,true From: https://www.cnblogs.com/jqynr/p/17434599.html