|
@@ -14,7 +14,7 @@ interface Props extends IconObject {
|
|
|
const props = defineProps<Props>();
|
|
|
|
|
|
defineEmits<{
|
|
|
- click: [];
|
|
|
+ click: [e: MouseEvent];
|
|
|
}>();
|
|
|
|
|
|
const iconClass = computed(() => {
|
|
@@ -31,5 +31,5 @@ const iconStyle = computed<CSSProperties>(() => {
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <i :class="iconClass" :style="iconStyle" @click.stop="$emit('click')"></i>
|
|
|
+ <i :class="iconClass" :style="iconStyle" @click="$emit('click', $event)"></i>
|
|
|
</template>
|