jkchao / vue-loading

😄 vue-loading 😊
https://jkchao.github.io/vue-loading/
473 stars 64 forks source link

Position #15

Open robertnicjoo opened 6 years ago

robertnicjoo commented 6 years ago
  1. How can I show spinner in middle (center) of screen?
  2. How to use loading on pages without dynamic data? Example Main page or login/register pages, there are no dynamic data to use v-if/v-show i just want to show loading before page elements load.
jkchao commented 6 years ago

@robertnicjoo 1:

<template>
  <div class="box">
    <vue-loading ...></vue-loading>
  </div>
</template>

then you can write some css about box, to make the spinner in middle (center) of screen.

  1. In this question, it can not help you, maybe you should use Skeleton Screen.
gnibeux commented 5 years ago

我也有相同的问题,外层加上div class=‘box’将loading位置修改,但loading一直不消失了。。。

jkchao commented 5 years ago

@gnibeux loading 的消失,你可以用 v-if/v-show 来控制的呀