Blame view

examples/routers/loading-bar.vue 717 Bytes
f97e5bb0   梁灏   support LoadingBar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <template>
      <div>
          <i-button @click.native="start">Start</i-button>
          <i-button @click.native="finish">Finish</i-button>
          <i-button @click.native="error">Error</i-button>
      </div>
  </template>
  <script>
      export default {
          methods: {
              start () {
                  this.$Loading.start();
              },
              finish () {
                  this.$Loading.finish();
              },
              error () {
                  this.$Loading.error();
              }
          },
          created () {
a35fb299   梁灏   update LoadingBar...
22
23
24
25
26
  //            this.$Loading.config({
  //                color: '#5cb85c',
  //                failedColor: '#f0ad4e',
  //                height: 5
  //            });
f97e5bb0   梁灏   support LoadingBar
27
28
29
          }
      }
  </script>