diff --git a/packages/select/src/useSelect.ts b/packages/select/src/useSelect.ts index 258ae24942..032e78dab5 100644 --- a/packages/select/src/useSelect.ts +++ b/packages/select/src/useSelect.ts @@ -11,7 +11,7 @@ import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '@element-plus/utils/constants' import { t } from '@element-plus/locale' import isServer from '@element-plus/utils/isServer' import scrollIntoView from '@element-plus/utils/scroll-into-view' -import { debounce as lodashDebounce } from 'lodash' +import lodashDebounce from 'lodash/debounce' import { isKorean } from '@element-plus/utils/isDef' import { getValueByPath, diff --git a/packages/table/src/store/helper.ts b/packages/table/src/store/helper.ts index bef9b40a6b..bac1091cfa 100644 --- a/packages/table/src/store/helper.ts +++ b/packages/table/src/store/helper.ts @@ -1,5 +1,5 @@ import Store from './index' -import { debounce } from 'lodash' +import debounce from 'lodash/debounce' import { Table } from '../table.type' export function createStore(table: Table, initialState = {}) { diff --git a/packages/table/src/table-body/events-helper.ts b/packages/table/src/table-body/events-helper.ts index a0ff1b4ff1..97f428eca5 100644 --- a/packages/table/src/table-body/events-helper.ts +++ b/packages/table/src/table-body/events-helper.ts @@ -1,7 +1,7 @@ import { getCurrentInstance, VNode, ref, h } from 'vue' import { getStyle, hasClass } from '@element-plus/utils/dom' import { getCell, getColumnByCell } from '../util' -import { debounce } from 'lodash' +import debounce from 'lodash/debounce' import { TableBodyProps } from './table-body' import { Table, AnyObject, TableColumnCtx } from '../table.type' diff --git a/packages/table/src/table.vue b/packages/table/src/table.vue index 7cbb5384a6..3a766e5cc2 100644 --- a/packages/table/src/table.vue +++ b/packages/table/src/table.vue @@ -269,7 +269,7 @@ import TableLayout from './table-layout' import TableHeader from './table-header/index' import TableBody from './table-body/index' import TableFooter from './table-footer/index' -import { debounce } from 'lodash' +import debounce from 'lodash/debounce' import useUtils from './table/utils-helper' import useStyle from './table/style-helper' import { TableProps, Table } from './table.type' diff --git a/packages/table/src/table/style-helper.ts b/packages/table/src/table/style-helper.ts index e8617fc43a..ef78044b8f 100644 --- a/packages/table/src/table/style-helper.ts +++ b/packages/table/src/table/style-helper.ts @@ -3,7 +3,7 @@ import { addResizeListener, removeResizeListener, } from '@element-plus/utils/resize-event' -import { throttle } from 'lodash' +import throttle from 'lodash/throttle' import { parseHeight } from '../util' import { TableProps,