Merge pull request #3621 from syntacticsolutions/patch-1

Update Icon.vue
This commit is contained in:
Aresn 2018-05-16 11:04:31 +08:00 committed by GitHub
commit 9372fe8d1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
<template> <template>
<i :class="classes" :style="styles"></i> <i :class="classes" :style="styles" @click="handleClick"></i>
</template> </template>
<script> <script>
const prefixCls = 'ivu-icon'; const prefixCls = 'ivu-icon';
@ -28,6 +28,11 @@
return style; return style;
} }
},
methods: {
handleClick (event) {
this.$emit('click', event);
}
} }
}; };
</script> </script>