Merge pull request #3621 from syntacticsolutions/patch-1
Update Icon.vue
This commit is contained in:
commit
9372fe8d1c
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<i :class="classes" :style="styles"></i>
|
||||
<i :class="classes" :style="styles" @click="handleClick"></i>
|
||||
</template>
|
||||
<script>
|
||||
const prefixCls = 'ivu-icon';
|
||||
|
@ -28,6 +28,11 @@
|
|||
|
||||
return style;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleClick (event) {
|
||||
this.$emit('click', event);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue