diff --git a/src/components/FontAwesomeIcon/index.vue b/src/components/FontAwesomeIcon/index.vue index 89a7037..7aae758 100644 --- a/src/components/FontAwesomeIcon/index.vue +++ b/src/components/FontAwesomeIcon/index.vue @@ -12,6 +12,10 @@ import { FontAwesomeIconProps } from '@/components/FontAwesomeIcon/props'; const props = defineProps(FontAwesomeIconProps); + const emit = defineEmits<{ + (e: 'click'): void; + }>(); + const singleBeat = props.beat && !props.fade; const singleFade = !props.beat && props.fade; const BeatFade = props.beat && props.fade; @@ -108,15 +112,19 @@ color: props.color, 'font-size': props.size ? `${props.size}rpx` : false, }); + + const onClick = () => { + emit('click'); + };