From 6af68085ff6615e1ec3a5dd18c761250800d6fca Mon Sep 17 00:00:00 2001 From: LiuHao <liuhaoai545@gmail.com> Date: 星期二, 06 六月 2023 22:23:43 +0800 Subject: [PATCH] update 修改页面代码 去除ele的引入以及vue的类型声明 --- src/views/tool/gen/genInfoForm.vue | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/views/tool/gen/genInfoForm.vue b/src/views/tool/gen/genInfoForm.vue index ab6e714..bfb24f1 100644 --- a/src/views/tool/gen/genInfoForm.vue +++ b/src/views/tool/gen/genInfoForm.vue @@ -223,7 +223,7 @@ <script setup lang="ts"> import { listMenu } from '@/api/system/menu'; -import { ComponentInternalInstance, PropType } from 'vue'; +import { propTypes } from "@/utils/propTypes"; interface MenuOptionsType { menuId: number | string; @@ -236,14 +236,8 @@ const { proxy } = getCurrentInstance() as ComponentInternalInstance; const props = defineProps({ - info: { - type: Object as PropType<any>, - default: null - }, - tables: { - type: Array as PropType<any[]>, - default: null - } + info: propTypes.any.def(null), + tables: propTypes.any.def(null) }); const infoForm = computed(() => props.info); @@ -268,7 +262,7 @@ } } const setSubTableColumns = (value: string) => { - table.value.forEach(item => { + table.value.forEach((item: any) => { const name = item.tableName; if (value === name) { subColumns.value = item.columns; -- Gitblit v1.9.3