Blame view

test/routers/dropdown.vue 3.61 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
          <a href="javascript:void(0)">
6b71ba94   梁灏   update Dropdown
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
37
38
39
40
              hover 触发
              <Icon type="arrow-down-b"></Icon>
          </a>
          <Dropdown-menu slot="list">
              <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>炸酱面</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>
              <Dropdown-item>豆汁儿</Dropdown-item>
              <Dropdown-item>冰糖葫芦</Dropdown-item>
              <Dropdown-item>北京烤鸭</Dropdown-item>
          </Dropdown-menu>
      </Dropdown>
      <Dropdown trigger="click" @on-click="click" style="margin-left: 20px">
          <a href="javascript:void(0)">
79633f3c   梁灏   update Dropdown
41
              click 触发
ab8aaf95   梁灏   add Dropdown comp...
42
              <Icon type="arrow-down-b"></Icon>
79633f3c   梁灏   update Dropdown
43
          </a>
ab8aaf95   梁灏   add Dropdown comp...
44
          <Dropdown-menu slot="list">
79633f3c   梁灏   update Dropdown
45
              <Dropdown-item>驴打滚</Dropdown-item>
745bcbc2   梁灏   update Dropdown
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
              <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
71
72
73
              <Dropdown-item>豆汁儿</Dropdown-item>
              <Dropdown-item>冰糖葫芦</Dropdown-item>
              <Dropdown-item>北京烤鸭</Dropdown-item>
ab8aaf95   梁灏   add Dropdown comp...
74
75
76
77
78
          </Dropdown-menu>
      </Dropdown>
  </template>
  <script>
      export default {
745bcbc2   梁灏   update Dropdown
79
80
81
82
83
          methods: {
              click (data) {
                  console.log(data)
              }
          }
ab8aaf95   梁灏   add Dropdown comp...
84
      }
79633f3c   梁灏   update Dropdown
85
  </script>