yyg1378265336
2025-02-27 1384174f03c9a009cfbb3ae99aaeec21f177e4c2
src/components/Form/src/hooks/useAutoFocus.ts
@@ -1,5 +1,9 @@
import type { ComputedRef, Ref } from 'vue';
import type { FormSchema, FormActionType, FormProps } from '../types/form';
import {
  type FormSchemaInner as FormSchema,
  type FormActionType,
  type FormProps,
} from '../types/form';
import { unref, nextTick, watchEffect } from 'vue';
@@ -29,7 +33,7 @@
    const firstItem = schemas[0];
    // Only open when the first form item is input type
    if (!firstItem.component.includes('Input')) {
    if (!firstItem.component || !firstItem.component.includes('Input')) {
      return;
    }