Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在具体项目中使用没有懒加载效果 #20

Open
xlkit456852 opened this issue Dec 30, 2018 · 0 comments
Open

在具体项目中使用没有懒加载效果 #20

xlkit456852 opened this issue Dec 30, 2018 · 0 comments

Comments

@xlkit456852
Copy link

xlkit456852 commented Dec 30, 2018

<vue-lazy-component>
    <div class="module-title1">
           <div class="left-block">
                   热销新品
            </div>
      </div>
    <product-block></product-block>
    <div slot="skeleton">abcd</div>
</vue-lazy-component>

基本代码如上方所示。运行后没有懒加载效果,都是直接加载出来了。另外有一个疑问,比如我上面的product-block是import进来的组件,那是不是需要去掉这个组件的import还有Components:{}里的定义呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant