Skip to content

Commit

Permalink
fix: lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
dineug committed Sep 1, 2021
1 parent 034bef3 commit 747b194
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@/config';

import { EditorView } from '@codemirror/view';
import { debounce } from 'lodash';
import debounce from 'lodash/debounce';
import { observer } from 'mobx-react-lite';
import { FunctionalComponent } from 'preact';
import { useCallback, useRef, useState } from 'preact/hooks';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { get } from 'lodash';
import get from 'lodash/get';
import { render } from 'preact';
import { fromEvent, Subject, Subscription } from 'rxjs';
import { createGlobalStyle, StyleSheetManager } from 'styled-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EditorView } from '@codemirror/view';
import { round } from 'lodash';
import round from 'lodash/round';
import { observer } from 'mobx-react-lite';
import { FunctionalComponent } from 'preact';
import { useEffect, useRef, useState } from 'preact/hooks';
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-generate-template/src/core/helper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { cloneDeep, pick } from 'lodash';
import camelCase from 'lodash/camelCase';
import cloneDeep from 'lodash/cloneDeep';
import pick from 'lodash/pick';
import upperFirst from 'lodash/upperFirst';
import * as R from 'ramda';
import { ERDEditorContext } from 'vuerd';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cloneDeep } from 'lodash';
import cloneDeep from 'lodash/cloneDeep';
import { observe, reaction } from 'mobx';
import { Ref } from 'preact';
import { useEffect, useRef } from 'preact/hooks';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cloneDeep } from 'lodash';
import cloneDeep from 'lodash/cloneDeep';
import { observe, reaction } from 'mobx';
import { Ref } from 'preact';
import { useEffect, useRef } from 'preact/hooks';
Expand Down
4 changes: 2 additions & 2 deletions packages/vuerd/src/core/diff/helper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import _ from 'lodash';
import isEqual from 'lodash/isEqual';

import { getLatestSnapshot } from '@/core/contextmenu/export.menu';
import { Diff } from '@/core/diff';
Expand Down Expand Up @@ -73,7 +73,7 @@ export function calculateDiff(
else if (
oldColumn?.dataType !== newColumn.dataType ||
oldColumn?.name !== newColumn.name ||
!_.isEqual(oldColumn?.option, newColumn.option)
!isEqual(oldColumn?.option, newColumn.option)
) {
diffs.push({
type: 'column',
Expand Down

0 comments on commit 747b194

Please sign in to comment.