Blame view

test/routers/more.vue 1.37 KB
84a351df   梁灏   Layout support re...
1
2
3
4
5
6
7
8
9
10
  <style>
      .ivu-col div.aaaaa{
          height: 100px;
          line-height: 100px;
          text-align: center;
          color: #fff;
          background: rgba(0, 153, 229, .9);
      }
      .ivu-col:nth-child(odd) div.aaaaa{
          background: rgba(0, 153, 229, .7);
7fa943eb   梁灏   init
11
12
13
      }
  </style>
  <template>
84a351df   梁灏   Layout support re...
14
15
16
17
18
      <Row>
          <i-col :xs="2" :sm="4" :md="6" :lg="8"><div class="aaaaa">Col 1</div></i-col>
          <i-col :xs="20" :sm="16" :md="12" :lg="8"><div class="aaaaa">Col 2</div></i-col>
          <i-col :xs="2" :sm="4" :md="6" :lg="8"><div class="aaaaa">Col 3</div></i-col>
      </Row>
7fa943eb   梁灏   init
19
      <br><br>
84a351df   梁灏   Layout support re...
20
21
22
23
24
      <Row>
          <i-col :xs="{ span: 5, offset: 1 }" :lg="{ span: 6, offset: 2 }"><div class="aaaaa">Col 1</div></i-col>
          <i-col :xs="{ span: 11, offset: 1 }" :lg="{ span: 6, offset: 2 }"><div class="aaaaa">Col 2</div></i-col>
          <i-col :xs="{ span: 5, offset: 1 }" :lg="{ span: 6, offset: 2 }"><div class="aaaaa">Col 3</div></i-col>
      </Row>
6e572d44   梁灏   fixed #133
25
26
27
      <i-button @click="start">Start</i-button>
      <i-button @click="finish">Finish</i-button>
      <i-button @click="error">Error</i-button>
7fa943eb   梁灏   init
28
29
  </template>
  <script>
7fa943eb   梁灏   init
30
      export default {
6e572d44   梁灏   fixed #133
31
32
33
34
35
36
37
38
39
40
41
          methods: {
              start () {
                  this.$Loading.start();
              },
              finish () {
                  this.$Loading.finish();
              },
              error () {
                  this.$Loading.error();
              }
          }
7fa943eb   梁灏   init
42
      }
e1134de2   jingsam   not bundle vue in...
43
  </script>