mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-12 04:03:44 +08:00
fix 一些使用的小问题
This commit is contained in:
@@ -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>
|
||||
<!--动态渲染表单组件-->
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user