Skip to content

Commit

Permalink
Update actionsheet.vue
Browse files Browse the repository at this point in the history
1、便于多个菜单公用一个 method,可以通过 item 内容 判定点击的是哪个 action 。
  • Loading branch information
twoer authored and Leopoldthecoder committed Apr 10, 2017
1 parent 147eada commit 98cd2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/actionsheet/src/actionsheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
methods: {
itemClick(item) {
if (item.method && typeof item.method === 'function') {
item.method();
item.method(item);
}
this.currentValue = false;
}
Expand Down

0 comments on commit 98cd2ee

Please sign in to comment.