|
@@ -7,7 +7,7 @@ export default {
|
|
|
<script setup lang="ts">
|
|
|
import router from '@/router'
|
|
|
import { ElMessage, ElMessageBox, type DialogProps } from 'element-plus'
|
|
|
-import type { AdvancedForm, BasicForm, ICRUD, formSlot } from '@/types/form'
|
|
|
+import type { AdvancedForm, BasicForm, ICRUD, FormSlot } from '@/types/form'
|
|
|
import type { VXEComponent, VxeToolbarProps, VxeToolbarEventProps } from 'vxe-table'
|
|
|
|
|
|
interface CustomTable {
|
|
@@ -198,7 +198,7 @@ const handleFormSuccess = () => {
|
|
|
}
|
|
|
|
|
|
// 构造表单插槽
|
|
|
-const formSlots = ref<formSlot[]>([])
|
|
|
+const formSlots = ref<FormSlot[]>([])
|
|
|
if (props.formConfig.advanced) {
|
|
|
props.formConfig.formItems.forEach((item: any) => {
|
|
|
item.group.forEach((subItem: any) => Array.prototype.push.apply(formSlots.value, subItem.slots))
|