xunleif2e / vue-lazy-component

🐌 Vue.js 2.x 组件级懒加载方案-Vue.js 2.x component level lazy loading solution
MIT License
1.02k stars 139 forks source link

loading属性能控制slot内容加载么 #4

Closed delenzhang closed 5 years ago

delenzhang commented 6 years ago
<div v-if="isInit" key="component">
      <slot :loading="loading"></slot>
  </div>
binggg commented 6 years ago

现在其实是用isInit控制加载,loading这个是用来传递数据的,父组件可以获取到VueLazyComponent组件内的loading状态