refactor: type/注释优化 去除大量any

This commit is contained in:
dap
2025-01-10 14:02:21 +08:00
parent 6e3b468303
commit 9f6bee86f0
81 changed files with 710 additions and 367 deletions

View File

@@ -1,7 +1,9 @@
<script setup lang="ts">
import type { Ref } from 'vue';
import type { Column, GenInfo } from '#/api/tool/gen/model';
import { inject, onMounted, type Ref } from 'vue';
import { inject, onMounted } from 'vue';
import { useVbenForm } from '@vben/common-ui';
import { $t } from '@vben/locales';

View File

@@ -1,6 +1,8 @@
import type { FormSchemaGetter } from '#/adapter/form';
import { getPopupContainer } from '@vben/utils';
import { type FormSchemaGetter, z } from '#/adapter/form';
import { z } from '#/adapter/form';
export const formSchema: FormSchemaGetter = () => [
{

View File

@@ -1,12 +1,15 @@
<script setup lang="ts">
import type { Ref } from 'vue';
import type { VxeGridProps } from '#/adapter/vxe-table';
import type { GenInfo } from '#/api/tool/gen/model';
import { inject, type Ref, unref } from 'vue';
import { inject, unref } from 'vue';
import { message, Space } from 'ant-design-vue';
import { cloneDeep } from 'lodash-es';
import { useVbenVxeGrid, type VxeGridProps } from '#/adapter/vxe-table';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { editSave } from '#/api/tool/gen';
import { toCurrentStep } from '../mitt';