Blame view

examples/routers/dropdown.vue 821 Bytes
ab8aaf95   梁灏   add Dropdown comp...
1
  <template>
2d74744d   梁灏   update Dropdown
2
      <div>
70d5a4ab   梁灏   fixed #425
3
          <Dropdown @on-click="handleClick">
2d74744d   梁灏   update Dropdown
4
5
6
7
8
              <a href="javascript:void(0)">
                  下拉菜单
                  <Icon type="arrow-down-b"></Icon>
              </a>
              <Dropdown-menu slot="list">
70d5a4ab   梁灏   fixed #425
9
10
11
12
13
                  <Dropdown-item name="1">驴打滚</Dropdown-item>
                  <Dropdown-item name="2">炸酱面</Dropdown-item>
                  <Dropdown-item name="3" disabled>豆汁儿</Dropdown-item>
                  <Dropdown-item name="4">冰糖葫芦</Dropdown-item>
                  <Dropdown-item name="5" divided>北京烤鸭</Dropdown-item>
2d74744d   梁灏   update Dropdown
14
15
16
              </Dropdown-menu>
          </Dropdown>
      </div>
ab8aaf95   梁灏   add Dropdown comp...
17
18
19
  </template>
  <script>
      export default {
70d5a4ab   梁灏   fixed #425
20
21
22
23
24
          methods: {
              handleClick (val) {
                  console.log(val)
              }
          }
ab8aaf95   梁灏   add Dropdown comp...
25
      }
79633f3c   梁灏   update Dropdown
26
  </script>