Skip to content

Commit

Permalink
Merge pull request #332 from xg4/develop
Browse files Browse the repository at this point in the history
chore(util): 修改 lodash 引入方式
  • Loading branch information
honkinglin authored Feb 8, 2022
2 parents aeffdf1 + 556a18b commit 52acbbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/menu/hooks/useMenuContext.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { noop } from 'lodash';
import noop from 'lodash/noop';
import { useState, ReactNode } from 'react';
import { MenuState, SetMenuState, MenuMode } from '../MenuContext';
import checkSubMenuChildExpanded from '../_util/checkSubMenuChildExpanded';
Expand Down
2 changes: 1 addition & 1 deletion src/select/base/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import isFunction from 'lodash/isFunction';
import get from 'lodash/get';
import isString from 'lodash/isString';

import { isNumber } from 'lodash';
import isNumber from 'lodash/isNumber';
import { useLocaleReceiver } from '../../locale/LocalReceiver';
import useConfig from '../../_util/useConfig';
import composeRefs from '../../_util/composeRefs';
Expand Down
3 changes: 2 additions & 1 deletion src/select/util/helper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ReactElement } from 'react';
import { isPlainObject, get } from 'lodash';
import isPlainObject from 'lodash/isPlainObject';
import get from 'lodash/get';
import OptionGroup from '../base/OptionGroup';
import Option from '../base/Option';

Expand Down

0 comments on commit 52acbbe

Please sign in to comment.