SoFunction
Updated on 2025-04-12

iview adds a click event to the radio button component

As shown below:

<RadioGroup v-model="">
          <Radio label="phone">Merchant phone number</Radio>
          <Radio label="leaderPhone">Phone number of person in charge</Radio>
          <span @click="inputPhone()"><Radio label="newPhone">Enter a new phone</Radio></span>
</RadioGroup>

If you want to add a click event to the radio button of iview, it will not take effect on RadioGroup or Radio. At this time, you can wrap a tag outside the component and then add an event, which will be perfectly solved.

The above example of the iView adding click events to the radio button component is all the content I share with you. I hope you can give you a reference and I hope you can support me more.