Vue.js Vue3:iframe srcdoc中的插槽?
有没有办法在iframe的Vue.js Vue3:iframe srcdoc中的插槽?,vue.js,vue-component,Vue.js,Vue Component,有没有办法在iframe的srcdoc属性中使用插槽的内容 AppIframe.vue <template> // html... <iframe srcdoc="<slot></slot>"></iframe> // html... </template> <script> export default {}; </script> //h
srcdoc
属性中使用插槽的内容
AppIframe.vue
<template>
// html...
<iframe srcdoc="<slot></slot>"></iframe>
// html...
</template>
<script>
export default {};
</script>
//html。。。
//html。。。
导出默认值{};