因为v-show的本质是设置标签display:none,但组件并非是一个标签,所以无法使用v-show控制组件

错误用法:

 

正确用法:

 

posted on 2022-05-19 14:44  小飞人uup  阅读(301)  评论(2)    收藏  举报