Skip to content

Commit

Permalink
refactor: replace lodash.merge with lodash-es.merge in multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Sep 26, 2024
1 parent 664b932 commit e1ba3c1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/form/src/layouts/DrawerForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import type { DrawerProps, FormProps } from 'antd';
import { ConfigProvider, Drawer } from 'antd';
import classNames from 'classnames';
import merge from 'lodash.merge';
import { merge } from 'lodash-es';
import useMergedState from 'rc-util/es/hooks/useMergedState';
import { noteOnce } from 'rc-util/es/warning';
import React, {
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/layouts/ModalForm/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FormProps, ModalProps } from 'antd';
import { ConfigProvider, Modal } from 'antd';
import merge from 'lodash.merge';
import { merge } from 'lodash-es';
import useMergedState from 'rc-util/es/hooks/useMergedState';
import { noteOnce } from 'rc-util/es/warning';
import React, {
Expand Down
2 changes: 1 addition & 1 deletion packages/table/src/Store/Provide.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { TableColumnType } from 'antd';
import merge from 'lodash.merge';
import { merge } from 'lodash-es';
import useMergedState from 'rc-util/es/hooks/useMergedState';
import { noteOnce } from 'rc-util/es/warning';
import {
Expand Down
1 change: 0 additions & 1 deletion packages/utils/src/transformKeySubmitValue/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ const loopRunTransform = <T = Record<string, any>>(
dataFormatMap,
key as (number | string)[],
) as SearchTransformKeyFn;
``;

if (transformFunction && typeof transformFunction === 'function') {
finalValues = mergeValues(
Expand Down
2 changes: 2 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const moduleNameMapper = {} as Record<string, any>;
'field',
'card',
'provider',
'utils',
'descriptions',
'table',
'layout',
].forEach((shortName: string) => {
Expand Down

0 comments on commit e1ba3c1

Please sign in to comment.