vue----component动态组件

    动态组件
通过component标签 的is属性来进行组件的切换
is的属性值决定要显示的组件,所以将is的属性值设置为data中的值,以便于动态变化
<template>
    <div class="app">
            <component :is="组件名称">
 
            </component>
    </div>
</template>
 
原文地址:https://www.cnblogs.com/SRH151219/p/10416625.html