Blame view

examples/routers/tabs.vue 592 Bytes
753720d9   梁灏   Tabs add prop bef...
1
  <template>
5b143a2b   梁灏   fixed #5401 , clo...
2
3
4
5
6
7
8
9
      <div>
          <Button @click="showSecond = !showSecond">change</Button>
          <Tabs value="name1">
              <TabPane label="标签一" name="name1" :index="1">标签一的内容</TabPane>
              <TabPane label="标签二" name="name2" :index="2" v-if="showSecond">标签二的内容</TabPane>
              <TabPane label="标签三" name="name3" :index="3">标签三的内容</TabPane>
          </Tabs>
      </div>
17f52abf   梁灏   update Tabs
10
  </template>
3e3ac4f5   梁灏   release 2.0.0-rc.7
11
  <script>
17f52abf   梁灏   update Tabs
12
      export default {
087ad37d   梁灏   update Tabs
13
14
          data () {
              return {
5b143a2b   梁灏   fixed #5401 , clo...
15
                  showSecond: false
be3fbd24   marxy   Tabs add scroll
16
17
18
              }
          }
      }
8778b343   梁灏   init Menu components
19
  </script>