fix: incorrect radio button display

This commit is contained in:
Lykin 2024-02-21 22:23:49 +08:00
parent 3057012710
commit 7cf842ed4c
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ const onUpdate = (val) => {
<template>
<n-form-item :label="$t('dialogue.field.conflict_handle')">
<n-radio-group :value="props.type" @update:value="(val) => emit('update:type', val)">
<n-radio-button v-for="(op, i) in updateOption" :key="i" :label="op.label" :value="$t(op.value)" />
<n-radio-button v-for="(op, i) in updateOption" :key="i" :label="$t(op.label)" :value="op.value" />
</n-radio-group>
</n-form-item>
<n-form-item

View File

@ -32,7 +32,7 @@ const onUpdate = (val) => {
<template>
<n-form-item :label="$t('interface.type')">
<n-radio-group :value="props.type" @update:value="(val) => emit('update:type', val)">
<n-radio-button v-for="(op, i) in insertOption" :key="i" :label="op.label" :value="$t(op.value)" />
<n-radio-button v-for="(op, i) in insertOption" :key="i" :label="$t(op.label)" :value="op.value" />
</n-radio-group>
</n-form-item>
<n-form-item :label="$t('dialogue.field.element')" required>

View File

@ -48,7 +48,7 @@ const onUpdate = () => {
<template>
<n-form-item :label="$t('interface.type')">
<n-radio-group :value="props.type" @update:value="(val) => emit('update:type', val)">
<n-radio-button v-for="(op, i) in updateOption" :key="i" :label="op.label" :value="$t(op.value)" />
<n-radio-button v-for="(op, i) in updateOption" :key="i" :label="$t(op.label)" :value="op.value" />
</n-radio-group>
</n-form-item>
<n-form-item