Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/rust/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vue.js Vue3:iframe srcdoc中的插槽?_Vue.js_Vue Component - Fatal编程技术网

Vue.js Vue3:iframe srcdoc中的插槽?

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

有没有办法在iframe的
srcdoc
属性中使用插槽的内容

AppIframe.vue

<template>
    // html...

    <iframe srcdoc="<slot></slot>"></iframe>

    // html...
</template>

<script>
    export default {};
</script>

//html。。。
//html。。。
导出默认值{};