摘要:
思路: keep-alive应用场景介绍 <keep-alive> 不会在函数式组件中正常工作,因为它们没有缓存实例。结合router,缓存部分页面 activated 和 deactivate 生命周期钩子 include string或正则,只有名称匹配的组件会被缓存 2.1.0+ exclud 阅读全文
posted @ 2019-10-31 18:32
front-gl
阅读(1385)
评论(2)
推荐(0)
摘要:
vue 模板代码: 1 <div class="content-wrap clearfix" :class="{slideIn: showIn, slideOut: showOut}"> 2 <!--创建设备模型窗口one--> 3 <div class="contentOne" key="one" 阅读全文
posted @ 2019-10-31 17:10
front-gl
阅读(2549)
评论(0)
推荐(0)
摘要:
注意: 这里的 <transition-group> 的子元素不能使用 v-for 的index当做key (Emitted value instead of an instance of Error) Do not use v-for index as key on <transition-gro 阅读全文
posted @ 2019-10-31 16:17
front-gl
阅读(583)
评论(0)
推荐(0)

浙公网安备 33010602011771号