Equal-UI / Equal

Equal UI is a Vue 3 UI library empowered by Tailwindcss
https://equal-ui.github.io/Equal/
MIT License
1.21k stars 67 forks source link

[ Feature Request ] onClickPrefix and onClickSuffix events #272

Closed Laravelka closed 1 year ago

Laravelka commented 2 years ago

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

Hi, can you add onClickPrefix and onClickSuffix events for input?

Describe alternatives you've considered

<span v-if="prefixIcon" class="it-input-icon-wrapper" @click="emit('clickPrefix', $event')">

<span v-if="suffixIcon" class="it-input-icon-wrapper" @click="emit('clickSuffix', $event')">

Additional context

No response

quatrochan commented 1 year ago

Input prefix and suffix now has slots. You can use onClick on the lement in slot