Skip to content

Commit

Permalink
fix: 修正 lodash 引入 (#2893)
Browse files Browse the repository at this point in the history
  • Loading branch information
fennghuang authored and uyarn committed Nov 23, 2023
1 parent f97b0f7 commit b58c563
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/anchor/__tests__/anchor-link.test.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mount } from '@vue/test-utils';
import Vue from 'vue';
import { omit } from 'lodash';
import omit from 'lodash/omit';
import { AnchorItem } from '@/src/anchor/index.ts';

const defaultProvide = {
Expand Down
2 changes: 1 addition & 1 deletion src/anchor/anchor-item.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue, { VueConstructor } from 'vue';
import { ScopedSlotReturnValue } from 'vue/types/vnode';
import { isEmpty } from 'lodash';
import isEmpty from 'lodash/isEmpty';
import { VNode } from 'vue/types/umd';
import { ANCHOR_SHARP_REGEXP } from './utils';
import props from './anchor-item-props';
Expand Down
2 changes: 1 addition & 1 deletion src/anchor/anchor.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue, { VueConstructor } from 'vue';
import { ScopedSlotReturnValue } from 'vue/types/vnode';
import { isFunction } from 'lodash';
import isFunction from 'lodash/isFunction';
import { ANCHOR_SHARP_REGEXP, ANCHOR_CONTAINER, getOffsetTop } from './utils';
import {
on, off, getScroll, scrollTo, getScrollContainer,
Expand Down
2 changes: 1 addition & 1 deletion src/color-picker/panel/swatches.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
computed, defineComponent, PropType, ref,
} from 'vue';
import { DeleteIcon as TdDeleteIcon, AddIcon as TdAddIcon } from 'tdesign-icons-vue';
import { cloneDeep } from 'lodash';
import cloneDeep from 'lodash/cloneDeep';
import { Select as TSelect, Option as TOption } from '../../select';
import { Color } from '../utils';
import { useBaseClassName } from '../hooks';
Expand Down

0 comments on commit b58c563

Please sign in to comment.