Showing
1 changed file
with
8 additions
and
1 deletions
| ... | @@ -13,6 +13,7 @@ | ... | @@ -13,6 +13,7 @@ |
| 13 | :key="option" | 13 | :key="option" |
| 14 | :label="option" | 14 | :label="option" |
| 15 | class="mr-8" | 15 | class="mr-8" |
| 16 | + @change="() => emit('change', option)" | ||
| 16 | > | 17 | > |
| 17 | {{ option }} | 18 | {{ option }} |
| 18 | </nut-radio> | 19 | </nut-radio> |
| ... | @@ -89,7 +90,13 @@ const emit = defineEmits([ | ... | @@ -89,7 +90,13 @@ const emit = defineEmits([ |
| 89 | * @event update:modelValue | 90 | * @event update:modelValue |
| 90 | * @param {string} value - 选中的选项 | 91 | * @param {string} value - 选中的选项 |
| 91 | */ | 92 | */ |
| 92 | - 'update:modelValue' | 93 | + 'update:modelValue', |
| 94 | + /** | ||
| 95 | + * 选项变化事件 | ||
| 96 | + * @event change | ||
| 97 | + * @param {string} value - 选中的选项 | ||
| 98 | + */ | ||
| 99 | + 'change' | ||
| 93 | ]) | 100 | ]) |
| 94 | 101 | ||
| 95 | /** | 102 | /** | ... | ... |
-
Please register or login to post a comment