Blame view

examples/routers/tabs.vue 1.83 KB
30510c3d   梁灏   support Tabs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  <style>
      .demo-tabs-style1 > .ivu-tabs-card > .ivu-tabs-content {
          height: 120px;
          margin-top: -16px;
      }
  
      .demo-tabs-style1 > .ivu-tabs-card > .ivu-tabs-content > .ivu-tabs-tabpane {
          background: #fff;
          padding: 16px;
      }
  
      .demo-tabs-style1 > .ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab {
          border-color: transparent;
      }
  
      .demo-tabs-style1 > .ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab-active {
          border-color: #fff;
      }
      .demo-tabs-style2 > .ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab{
          border-radius: 0;
          background: #fff;
      }
      .demo-tabs-style2 > .ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab-active{
          border-top: 1px solid #3399ff;
      }
      .demo-tabs-style2 > .ivu-tabs.ivu-tabs-card > .ivu-tabs-bar .ivu-tabs-tab-active:before{
          content: '';
          display: block;
          width: 100%;
          height: 1px;
          background: #3399ff;
          position: absolute;
          top: 0;
          left: 0;
      }
  </style>
17f52abf   梁灏   update Tabs
37
  <template>
30510c3d   梁灏   support Tabs
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
      <Row :gutter="32">
          <i-col span="12" class="demo-tabs-style1" style="background: #e3e8ee;padding:16px;">
              <Tabs type="card">
                  <Tab-pane label="标签一">标签一的内容</Tab-pane>
                  <Tab-pane label="标签二">标签二的内容</Tab-pane>
                  <Tab-pane label="标签三">标签三的内容</Tab-pane>
              </Tabs>
          </i-col>
          <i-col span="12" class="demo-tabs-style2">
              <Tabs type="card">
                  <Tab-pane label="标签一">标签一的内容</Tab-pane>
                  <Tab-pane label="标签二">标签二的内容</Tab-pane>
                  <Tab-pane label="标签三">标签三的内容</Tab-pane>
              </Tabs>
          </i-col>
      </Row>
17f52abf   梁灏   update Tabs
54
55
56
  </template>
  <script>
      export default {
7a737482   梁灏   fixed #206
57
  
17f52abf   梁灏   update Tabs
58
      }
8778b343   梁灏   init Menu components
59
  </script>