mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 20:58:22 +08:00
fix: destructing import from lodash cause dist too large in esm version (#788)
This commit is contained in:
parent
8718f2bb6e
commit
8f084d0e08
@ -11,7 +11,7 @@ import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '@element-plus/utils/constants'
|
|||||||
import { t } from '@element-plus/locale'
|
import { t } from '@element-plus/locale'
|
||||||
import isServer from '@element-plus/utils/isServer'
|
import isServer from '@element-plus/utils/isServer'
|
||||||
import scrollIntoView from '@element-plus/utils/scroll-into-view'
|
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 { isKorean } from '@element-plus/utils/isDef'
|
||||||
import {
|
import {
|
||||||
getValueByPath,
|
getValueByPath,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Store from './index'
|
import Store from './index'
|
||||||
import { debounce } from 'lodash'
|
import debounce from 'lodash/debounce'
|
||||||
import { Table } from '../table.type'
|
import { Table } from '../table.type'
|
||||||
|
|
||||||
export function createStore(table: Table, initialState = {}) {
|
export function createStore(table: Table, initialState = {}) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { getCurrentInstance, VNode, ref, h } from 'vue'
|
import { getCurrentInstance, VNode, ref, h } from 'vue'
|
||||||
import { getStyle, hasClass } from '@element-plus/utils/dom'
|
import { getStyle, hasClass } from '@element-plus/utils/dom'
|
||||||
import { getCell, getColumnByCell } from '../util'
|
import { getCell, getColumnByCell } from '../util'
|
||||||
import { debounce } from 'lodash'
|
import debounce from 'lodash/debounce'
|
||||||
import { TableBodyProps } from './table-body'
|
import { TableBodyProps } from './table-body'
|
||||||
import { Table, AnyObject, TableColumnCtx } from '../table.type'
|
import { Table, AnyObject, TableColumnCtx } from '../table.type'
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ import TableLayout from './table-layout'
|
|||||||
import TableHeader from './table-header/index'
|
import TableHeader from './table-header/index'
|
||||||
import TableBody from './table-body/index'
|
import TableBody from './table-body/index'
|
||||||
import TableFooter from './table-footer/index'
|
import TableFooter from './table-footer/index'
|
||||||
import { debounce } from 'lodash'
|
import debounce from 'lodash/debounce'
|
||||||
import useUtils from './table/utils-helper'
|
import useUtils from './table/utils-helper'
|
||||||
import useStyle from './table/style-helper'
|
import useStyle from './table/style-helper'
|
||||||
import { TableProps, Table } from './table.type'
|
import { TableProps, Table } from './table.type'
|
||||||
|
@ -3,7 +3,7 @@ import {
|
|||||||
addResizeListener,
|
addResizeListener,
|
||||||
removeResizeListener,
|
removeResizeListener,
|
||||||
} from '@element-plus/utils/resize-event'
|
} from '@element-plus/utils/resize-event'
|
||||||
import { throttle } from 'lodash'
|
import throttle from 'lodash/throttle'
|
||||||
import { parseHeight } from '../util'
|
import { parseHeight } from '../util'
|
||||||
import {
|
import {
|
||||||
TableProps,
|
TableProps,
|
||||||
|
Loading…
Reference in New Issue
Block a user