Blame view

test/routers/dropdown.vue 1.89 KB
ab8aaf95   梁灏   add Dropdown comp...
1
  <template>
5557dd66   梁灏   update Dropdown
2
      <Dropdown trigger="hover" @on-click="click" style="margin-left: 20px">
79633f3c   梁灏   update Dropdown
3
4
          <a href="javascript:void(0)">
              click 触发
ab8aaf95   梁灏   add Dropdown comp...
5
              <Icon type="arrow-down-b"></Icon>
79633f3c   梁灏   update Dropdown
6
          </a>
ab8aaf95   梁灏   add Dropdown comp...
7
          <Dropdown-menu slot="list">
79633f3c   梁灏   update Dropdown
8
              <Dropdown-item>驴打滚</Dropdown-item>
745bcbc2   梁灏   update Dropdown
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
              <Dropdown placement="right-start">
                  <Dropdown-item>
                      炸酱面
                      <Icon type="arrow-right-b"></Icon>
                  </Dropdown-item>
                  <Dropdown-menu slot="list">
                      <Dropdown-item>驴打滚</Dropdown-item>
                      <Dropdown-item>炸酱面</Dropdown-item>
                      <Dropdown-item>豆汁儿</Dropdown-item>
                      <Dropdown placement="right-start">
                          <Dropdown-item>
                              冰糖葫芦
                              <Icon type="arrow-right-b"></Icon>
                          </Dropdown-item>
                          <Dropdown-menu slot="list">
                              <Dropdown-item>驴打滚</Dropdown-item>
                              <Dropdown-item key="123">炸酱面</Dropdown-item>
                              <Dropdown-item>豆汁儿</Dropdown-item>
                              <Dropdown-item>冰糖葫芦</Dropdown-item>
                              <Dropdown-item>北京烤鸭</Dropdown-item>
                          </Dropdown-menu>
                      </Dropdown>
                      <Dropdown-item>北京烤鸭</Dropdown-item>
                  </Dropdown-menu>
              </Dropdown>
79633f3c   梁灏   update Dropdown
34
35
36
              <Dropdown-item>豆汁儿</Dropdown-item>
              <Dropdown-item>冰糖葫芦</Dropdown-item>
              <Dropdown-item>北京烤鸭</Dropdown-item>
ab8aaf95   梁灏   add Dropdown comp...
37
38
39
40
41
          </Dropdown-menu>
      </Dropdown>
  </template>
  <script>
      export default {
745bcbc2   梁灏   update Dropdown
42
43
44
45
46
          methods: {
              click (data) {
                  console.log(data)
              }
          }
ab8aaf95   梁灏   add Dropdown comp...
47
      }
79633f3c   梁灏   update Dropdown
48
  </script>