摘要: 简单使用 <!-- 非活跃的组件将会被缓存! --> <KeepAlive> <component :is="activeComponent" /> </KeepAlive> 讲解 默认会缓存内部的所有组件实例,但我们可以通过 include 和 exclude prop 来定制该行为。 prop 阅读全文
posted @ 2023-01-10 19:28 LC蜗牛 阅读(329) 评论(0) 推荐(0) 编辑