Commit 9372fe8d1ca4e1e4c7a781078b16b0b16d62fc40

Authored by Aresn
Committed by GitHub
2 parents 7a62123a 9272508e

Merge pull request #3621 from syntacticsolutions/patch-1

Update Icon.vue
Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
src/components/icon/icon.vue
1 <template> 1 <template>
2 - <i :class="classes" :style="styles"></i> 2 + <i :class="classes" :style="styles" @click="handleClick"></i>
3 </template> 3 </template>
4 <script> 4 <script>
5 const prefixCls = 'ivu-icon'; 5 const prefixCls = 'ivu-icon';
@@ -28,6 +28,11 @@ @@ -28,6 +28,11 @@
28 28
29 return style; 29 return style;
30 } 30 }
  31 + },
  32 + methods: {
  33 + handleClick (event) {
  34 + this.$emit('click', event);
  35 + }
31 } 36 }
32 }; 37 };
33 </script> 38 </script>