<template><section class="demo-loading"><h1 class="demo-title">Loading 加载</h1><example-block title="渐变深色spinner">
                <van-loading class="some-customized-class"></van-loading>

              </example-block><example-block title="渐变浅色spinner">
                <div class="demo-loading__example demo-loading__example--with-bg">
  <van-loading class="some-customized-class" :color="'white'"></van-loading>
</div>



              </example-block><example-block title="单色spinner">
                <van-loading class="circle-loading" :type="'circle'" :color="'white'"></van-loading>
<van-loading class="circle-loading" :type="'circle'" :color="'black'"></van-loading>

              </example-block></section></template>
<style>
@component-namespace demo {
  @b loading {
    .van-loading {
      margin: 0 auto;
    }

    .circle-loading {
      margin: 20px auto;
    }

    .demo-loading__example--with-bg {
      background-color: rgba(17, 17, 17, 0.7);
      margin: 0 auto;
      width: 120px;
      padding: 45px 0;
      border-radius: 10px;
    }
  }
}
</style>
<script>
import Vue from "vue";import ExampleBlock from "components/example-block";Vue.component("example-block", ExampleBlock);</script>