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>
<!--动态渲染表单组件-->

View File

@@ -196,7 +196,7 @@
createdAt: string;
status: number;
name: string;
index: string;
id: number;
children?: RowData[];
};
const data = ref([]);
@@ -318,7 +318,7 @@
},
];
const rowKey = (row: RowData) => row.index;
const rowKey = (row: RowData) => row.id;
function addTable() {
showModal.value = true;