我目前在将原始HTML(实体表单)传递到用于语法高亮显示的插槽时遇到问题。
想象一下像这样的插槽;
<template v-slot:code-snippet>{{ product.title }}</template>
我收到错误
[Vue warn]: Property or method 'product' is not defined on the instance but referenced during render
下降到{{ product.title }}
的原因-删除它即可正常工作。
无论如何,我可以告诉实例停止尝试渲染这些“属性”,因为它将被解释为纯文本吗?
致谢