fix: destructing import from lodash cause dist too large in esm version (#788)

This commit is contained in:
Simona 2020-12-02 18:14:33 +08:00 committed by GitHub
parent 8718f2bb6e
commit 8f084d0e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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 = {}) {

View File

@ -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'

View File

@ -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'

View File

@ -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,