Blame view

test/routers/dropdown.vue 977 Bytes
871ed4d8   梁灏   init Tabs component
1
2
3
  <style>
  
  </style>
ab8aaf95   梁灏   add Dropdown comp...
4
  <template>
871ed4d8   梁灏   init Tabs component
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
      <Dropdown trigger="click">
          <a href="javascript:void(0)">
              北京小吃
              <Icon type="arrow-down-b"></Icon>
          </a>
          <Dropdown-menu slot="list">
              <Dropdown-item>炸酱面</Dropdown-item>
              <Dropdown placement="right-start" trigger="click">
                  <Dropdown-item>
                      北京烤鸭
                      <Icon type="ios-arrow-right"></Icon>
                  </Dropdown-item>
                  <Dropdown-menu slot="list">
                      <Dropdown-item>挂炉烤鸭</Dropdown-item>
                      <Dropdown-item>焖炉烤鸭</Dropdown-item>
                  </Dropdown-menu>
              </Dropdown>
              <Dropdown-item>冰糖葫芦</Dropdown-item>
          </Dropdown-menu>
      </Dropdown>
ab8aaf95   梁灏   add Dropdown comp...
25
26
27
  </template>
  <script>
      export default {
745bcbc2   梁灏   update Dropdown
28
29
30
31
32
          methods: {
              click (data) {
                  console.log(data)
              }
          }
ab8aaf95   梁灏   add Dropdown comp...
33
      }
79633f3c   梁灏   update Dropdown
34
  </script>