Commit fc640135d697aa9b890a03dc6dd6d23788a826ca
1 parent
e9dd4dab
Tabs add on-visible-change event
Tabs add on-visible-change event
Showing
3 changed files
with
8 additions
and
13 deletions
Show diff stats
package.json
src/components/dropdown/dropdown.vue
test/routers/dropdown.vue
1 | 1 | <template> |
2 | - <Dropdown> | |
2 | + <Dropdown @on-visible-change="v"> | |
3 | 3 | <a href="javascript:void(0)"> |
4 | 4 | 下拉菜单 |
5 | 5 | <Icon type="arrow-down-b"></Icon> |
... | ... | @@ -10,16 +10,6 @@ |
10 | 10 | <Dropdown-item disabled>豆汁儿</Dropdown-item> |
11 | 11 | <Dropdown-item>冰糖葫芦</Dropdown-item> |
12 | 12 | <Dropdown-item divided>北京烤鸭</Dropdown-item> |
13 | - <Dropdown-item>驴打滚</Dropdown-item> | |
14 | - <Dropdown-item>炸酱面</Dropdown-item> | |
15 | - <Dropdown-item disabled>豆汁儿</Dropdown-item> | |
16 | - <Dropdown-item>冰糖葫芦</Dropdown-item> | |
17 | - <Dropdown-item divided>北京烤鸭</Dropdown-item> | |
18 | - <Dropdown-item>驴打滚</Dropdown-item> | |
19 | - <Dropdown-item>炸酱面</Dropdown-item> | |
20 | - <Dropdown-item disabled>豆汁儿</Dropdown-item> | |
21 | - <Dropdown-item>冰糖葫芦</Dropdown-item> | |
22 | - <Dropdown-item divided>北京烤鸭</Dropdown-item> | |
23 | 13 | </Dropdown-menu> |
24 | 14 | </Dropdown> |
25 | 15 | <Dropdown style="margin-left: 20px"> |
... | ... | @@ -38,6 +28,10 @@ |
38 | 28 | </template> |
39 | 29 | <script> |
40 | 30 | export default { |
41 | - | |
31 | + methods: { | |
32 | + v (data) { | |
33 | + console.log(data) | |
34 | + } | |
35 | + } | |
42 | 36 | } |
43 | 37 | </script> | ... | ... |