摘要: component 注意:component动态组渲染组件时,当切换组件后,之前的组件会被销毁,用户之前在该组件的数据也会被清除,所以我们会使用<keep-alive>包裹动态组件,此时失活的组件会被缓存,当它被在此渲染的时候能够保留之前用户的数据 Keep-alive Props: include 阅读全文
posted @ 2019-03-24 17:01 Byhua 阅读(4281) 评论(1) 推荐(0) 编辑