diff --git a/components/_util/reactivePick.ts b/components/_util/reactivePick.ts index 4911106cc..c4164470e 100644 --- a/components/_util/reactivePick.ts +++ b/components/_util/reactivePick.ts @@ -1,5 +1,6 @@ import type { UnwrapRef } from 'vue'; import { reactive, toRef } from 'vue'; +import fromPairs from 'lodash-es/fromPairs'; /** * Reactively pick fields from a reactive object @@ -10,5 +11,5 @@ export function reactivePick( obj: T, ...keys: K[] ): { [S in K]: UnwrapRef } { - return reactive(Object.fromEntries(keys.map(k => [k, toRef(obj, k)]))) as any; + return reactive(fromPairs(keys.map(k => [k, toRef(obj, k)]))) as any; } diff --git a/components/alert/index.tsx b/components/alert/index.tsx index 714926af0..1dfae9a68 100644 --- a/components/alert/index.tsx +++ b/components/alert/index.tsx @@ -168,7 +168,7 @@ const Alert = defineComponent({