fix(Form): may scroll to incorrect field after submitted (#8159)

This commit is contained in:
neverland
2021-02-14 19:34:36 +08:00
committed by GitHub
parent c6e65f4fd6
commit 8cbf153073
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ export const inBrowser = typeof window !== 'undefined';
// unknown type for Vue prop
export const UnknownProp = (null as unknown) as PropType<unknown>;
export type ComponentInstance = ComponentPublicInstance<any>;
// eslint-disable-next-line
export type ComponentInstance = ComponentPublicInstance<{}, any>;
export function isDef<T>(val: T): val is NonNullable<T> {
return val !== undefined && val !== null;