fix 一些使用的小问题

This commit is contained in:
maxbad
2023-05-17 22:43:40 +08:00
parent 06292b603b
commit c967a5c8f0
4 changed files with 53 additions and 13 deletions

View File

@@ -43,15 +43,13 @@
<!--NRadioGroup-->
<template v-else-if="schema.component === 'NRadioGroup'">
<n-radio-group v-model:value="formModel[schema.field]">
<n-space>
<n-radio
v-for="item in schema.componentProps.options"
:key="item.value"
:value="item.value"
>
{{ item.label }}
</n-radio>
</n-space>
<n-radio-button
v-for="item in schema.componentProps.options"
:key="item.value"
:value="item.value"
>
{{ item.label }}
</n-radio-button>
</n-radio-group>
</template>
<!--动态渲染表单组件-->