有没有可能引入同样的证监会?我的意思是这样的:
test.vue:
<template>
<ul v-for="(item, index) in menuLevel">
<li>
{{item.name}}
<test :data="item" v-if="item.children && item.children.length"></test>
</li>
</ul>
</template>发布于 2017-07-11 20:02:14
是的,您可以在Recursive Components下的文档中了解它。
您需要确保在component options对象中指定了组件的name,这样就都设置好了。
https://stackoverflow.com/questions/45034036
复制相似问题